spur-sim / spur

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

Block Exclusive Zone #57

Closed peterlai1 closed 1 year ago

peterlai1 commented 1 year ago

Description

A new class of entities in Spur, with its position in the overall architecture similar to that of the Jitter class, i.e., like a property attached to a component. When there is a "critical" / "exclusive" section of components that can collectively only hold a single train at a time, an instance of the "block exclusive zone" (BEZ) class will be associated with each component (specified in the input file as an extra field in each component, similar to how jitter is specified). The BEZ instance will be identified uniquely by name.

If the critical section is occupied, additional trains attempting to enter it (i.e., the direction of travel is into the section) will be held and placed into a queue in the BEZ instance. Once a train leaves the critical section, the section is free. The next train in the queue is allowed through, which could be entering from either end of the section.

Parameters

Logic

peterlai1 commented 1 year ago

Closed as completed (PR #68)