Package sim.engine

Class Schedule.Key

java.lang.Object
sim.engine.Schedule.Key
All Implemented Interfaces:
Serializable, Comparable
Enclosing class:
Schedule

protected static class Schedule.Key extends Object implements Comparable, Serializable
Timestamps stored as keys in the heap. Comps are comparable by their time first, and their ordering second.
See Also:
  • Constructor Details

    • Key

      public Key(double time, int ordering)
  • Method Details

    • getOrdering

      public int getOrdering()
    • getTime

      public double getTime()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(Object obj)
      Specified by:
      compareTo in interface Comparable