You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need to implement a scheduling system. The schedule should be followed (as much as possible) on the agent level.
Proposed Approach
All trains are placed at the beginning of the simulation, and are given a set route and schedule (which would have to replace the current route list). Trains will timeout until their scheduled starting time, at which point they will move from component to component on their route (as they do now). Places where a scheduled time is enforced (such as a station), the train will have to check the current simulation time against the scheduled departure simulation time from those components.
This can be handled by creating a RouteItem object (or perhaps something with a better name) that holds both the component and the scheduled time. A value of None can indicate that this component is unscheduled; trains should traverse it as fast as they can.
The text was updated successfully, but these errors were encountered:
Need to implement a scheduling system. The schedule should be followed (as much as possible) on the agent level.
Proposed Approach
All trains are placed at the beginning of the simulation, and are given a set route and schedule (which would have to replace the current
route
list). Trains willtimeout
until their scheduled starting time, at which point they will move from component to component on their route (as they do now). Places where a scheduled time is enforced (such as a station), the train will have to check the current simulation time against the scheduled departure simulation time from those components.This can be handled by creating a
RouteItem
object (or perhaps something with a better name) that holds both thecomponent
and the scheduled time. A value ofNone
can indicate that this component is unscheduled; trains should traverse it as fast as they can.The text was updated successfully, but these errors were encountered: