Cabin - modelint/types GitHub Wiki

The compartment that conveys passengers up and down a Shaft is known as a Cabin. It is sometimes (in the United States, at least) informally referred to as an “elevator”. Our British friends call it a “lift”. Since either term may also refer to the entire, er... lifting system, we use Cabin as the formal term for the enclosed box of people that goes up and down.

Identifiers

  1. Shaft

The concept of a single Cabin in a Shaft is unlikely to change. So, for convenience, the Shaft ID is appropriated as the Cabin ID. (It’s easier to keep track of a population if you can refer to the S2 Door, Cabin and Shaft, for example).

Attributes

Travel direction

This is the intended travel direction of the Cabin which biases selection of the next destination Floor. It is sometimes, but not always the current direction of Cabin movement.

The elevator dispatching algorithm tries to keep each Cabin going in the same direction until there are no more Floors to service in that direction. The Cabin then reverses its Travel direction.

images/cabin-10.png

In the above example, the Cabin starts off with an up Travel direction. But a search upward finds only calls in the opposite direction, so the furthest is selected and the Travel direction is toggled downward, even though the Cabin will be moving upward. The Cabin has effectively decided to ignore upward calls until all downward calls are serviced. So we can see that the Travel direction truly represents a Cabin’s decision of which direction it wants to travel.

Type: Direction