AnyLogic
Expand
Font size
Enclosing class:
Elevator<A extends Agent>

public static interface Elevator.Call<T extends Agent>
Class describing elevator call at certain level

Method Summary

Modifier and TypeMethodDescription
ElevatorDirectiongetDirection()
Returns call direction.
LevelgetLevel()
Returns level this call came from
List<T>getWaitingPeds()
Returns list of pedestrians waiting for elevator on the level to move in specified direction

Method Details

getLevel

Level getLevel()
Returns level this call came from
Returns:
level this call came from

getDirection

ElevatorDirection getDirection()
Returns call direction. Valid values are:
  • ELEVATOR_DIRECTION_UP
  • ELEVATOR_DIRECTION_DOWN
Returns:
call direction

getWaitingPeds

List<T> getWaitingPeds()
Returns list of pedestrians waiting for elevator on the level to move in specified direction
Returns:
list of pedestrians waiting for elevator on the level to move in specified direction