Menu

Commit [r703]  Maximize  Restore  History

Code cleanup in Vehicle.java: combined the methods chooseNextLink() and findNextLink() into one, chooseNextLink(). Added checks in Vehicle.java to ensure the Vehicle really drives along an existing path in the network, and does not jump from one link to another link without a common node. Issue an error when the route cannot be followed for whatever reason and remove the agent from the sim.

Switched Vehicle.java to log4j.
Added Test-Cases for checking how wrong routes are handled.

mrieser 2008-02-21

changed /matsim/trunk/src/org/matsim/mobsim/Vehicle.java
changed /matsim/trunk/test/src/org/matsim/mobsim/QueueSimulationTest.java
changed /matsim/trunk/test/src/org/matsim/withinday/WithindayAgentTestOccupiedVehicle.java
/matsim/trunk/src/org/matsim/mobsim/Vehicle.java Diff Switch to side-by-side view
Loading...
/matsim/trunk/test/src/org/matsim/mobsim/QueueSimulationTest.java Diff Switch to side-by-side view
Loading...
/matsim/trunk/test/src/org/matsim/withinday/WithindayAgentTestOccupiedVehicle.java Diff Switch to side-by-side view
Loading...