next up previous contents
Next: Vehicle class Up: Plans following in the Previous: Plans following in the   Contents


Plans

In our micro-simulation, travelers follow plans. In our do-it-yourself traffic simulation, we only look at cars. Cars have complete routes in their plans.

Route plans always include variants of the following information:

StartTime, StartLoc, Node1, Node2, ..., EndLoc.

In terms of programming, this means:

  1. We need a mechanism to read plans.

  2. We need a data structure (``parking queue'') where to keep vehicles/plans until their starting time.

  3. We need a data structure (''waiting queue'') where to keep vehicles/plans which are beyond their starting time, but have not been able to move into the traffic because of congestion.

  4. We need a mechanism to move vehicles from the parking queue to the waiting queue.

  5. We need a mechanism to move vehicles from the waiting queue on to the start link.

  6. We need a mechanism to move vehicles across an intersection so that they follow plans.

In principle, the plans file can contain the whole daily plan for each individual traveler in the simulation. For the time being, we will however identify car trips and vehicles, and skip the remaining information in the plans file, if any.




Implementation


next up previous contents
Next: Vehicle class Up: Plans following in the Previous: Plans following in the   Contents
2004-02-02