java.lang.Object
org.simplesim.examples.elevator.shared.Request
All Implemented Interfaces:
Comparable<Request>

public class Request extends Object implements Comparable<Request>
Content of messages between elevator and visitor
  • Constructor Details

    • Request

      public Request(Agent v, int start, int dest, Time currTime)
  • Method Details

    • getVisitor

      public Agent getVisitor()
    • getStartingFloor

      public int getStartingFloor()
    • getDestinationFloor

      public int getDestinationFloor()
    • getArrivalTime

      public Time getArrivalTime()
    • setArrivalTime

      public void setArrivalTime(Time time)
    • isGoingUp

      public boolean isGoingUp()
    • isGoingDown

      public boolean isGoingDown()
    • getDirection

      public int getDirection()
    • getTravelTime

      public Time getTravelTime()
    • compareTo

      public int compareTo(Request other)
      Specified by:
      compareTo in interface Comparable<Request>
    • toString

      public String toString()
      Overrides:
      toString in class Object