Class ElevatorState

java.lang.Object
org.simplesim.examples.elevator.shared.ElevatorState
All Implemented Interfaces:
State

public final class ElevatorState extends Object implements State
Class containing all relevant variables of the elevator state
  • Constructor Details

    • ElevatorState

      public ElevatorState()
  • Method Details

    • getCurrentFloor

      public int getCurrentFloor()
    • setCurrentFloor

      public void setCurrentFloor(int value)
    • getDestinationFloor

      public int getDestinationFloor()
    • setDestinationFloor

      public void setDestinationFloor(int value)
    • getCabin

      public List<Request> getCabin()
    • getQueue

      public Queue<Request> getQueue(int floor)
    • addToQueue

      public void addToQueue(int floor, Request request)
    • removeFromQueue

      public void removeFromQueue(int floor, Request request)
    • getDirection

      public int getDirection()
    • setDirection

      public void setDirection(int value)
    • getArrivals

      public int getArrivals(int floor)
    • setArrivals

      public void setArrivals(int floor, int value)
    • getButton

      public int getButton(int floor)
    • setButton

      public void setButton(int floor, int value)
    • pressButton

      public void pressButton(int floor, int value)