Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduling #12

Closed
wklumpen opened this issue Aug 5, 2021 · 1 comment
Closed

Scheduling #12

wklumpen opened this issue Aug 5, 2021 · 1 comment
Assignees
Labels
new-feature Request for new non-component, non-agent feature to be added
Milestone

Comments

@wklumpen
Copy link
Collaborator

wklumpen commented Aug 5, 2021

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.

@wklumpen wklumpen added the new-feature Request for new non-component, non-agent feature to be added label Aug 5, 2021
@wklumpen wklumpen added this to the SpurCore v0.0.1 milestone Aug 5, 2021
@wklumpen wklumpen self-assigned this Aug 5, 2021
@wklumpen wklumpen changed the title Implement scheduling Implement Scheduling Aug 5, 2021
@wklumpen wklumpen changed the title Implement Scheduling Scheduling Aug 5, 2021
@wklumpen
Copy link
Collaborator Author

Added route functionality, allowing each train to traverse a route which holds a schedule and the components that the route traverses.

@wklumpen wklumpen mentioned this issue Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature Request for new non-component, non-agent feature to be added
Projects
None yet
Development

No branches or pull requests

1 participant