spur-sim / spur

Simulation for Planning and Understanding Railways
MIT License
9 stars 4 forks source link

End-of-route handling #9

Closed wklumpen closed 3 years ago

wklumpen commented 3 years ago

Need to decide on what trains do after they finish a route. Do they remain stationary on the track? If so, they shouldn't technically release themselves from that portion of the resource.

This logic should be handled in the train running code.

wklumpen commented 3 years ago

I think the best way to do this, given that it's a queuing model, is to have trains not "disappear" from the network ever, but instead implement an infinite (or nearly infinite) capacity yard at the end of a location that absorbs the trains. That said, if trains are idle and are not scheduling more events the simulation will run its course and terminate.

This is already implemented and no additional change is required.