Simulates how pedestrians are transported by an escalator, or a travelator. The escalator/travelator itself is drawn graphically with the specific space markup shape escalator group.
Escalator typically transports pedestrians to another level. You do not need to add PedChangeLevel block to simulate the "changing level" operation when pedestrians take escalators, PedEscalator block moves pedestrians to another level automatically.
Demo model: Escalator
int size() - Returns number of pedestrians inside the block.
long countPeds() - Returns total number of pedestrians passed through this block.
void cancel(Agent ped) - Causes the specified pedestrian to leave the block immediately via ccl port. Applies only if the pedestrian has not entered the escalator yet.
void cancelAll() - Causes all pedestrians who have not entered the escalator to leave the block immediately via ccl port.
boolean contains(Agent ped) - Returns true if the specified pedestrian is currently inside the block, and false otherwise.
Set<Agent> getPeds() - Returns a non-modifiable collection of pedestrians currently located in this block.