FAQ Database Discussion Community

Referring to Objects by an ID? (Java)

i'm not a Java-Newbie but I can't get my head around a problem occured recently. I have to simulate a road system in Java. For sake of proper OOP, I've got a class Car and a class Street (and several others to manage the whole simulation of course^^). I already...

how to simulate a traffic scenario for cars

im trying to do a project about routing cars through cities, the idea is to know the amount of cars that are on the streets so the vehicle can be routed through the less congested route. For that i would need to install a gps on every car of the...