sim.engine
Class Schedule.Key
java.lang.Object
sim.engine.Schedule.Key
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
- Enclosing class:
- Schedule
public static class Schedule.Key
- extends java.lang.Object
- implements java.lang.Comparable, java.io.Serializable
Timestamps stored as keys in the heap. Comps are comparable by their time first, and their ordering second.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Schedule.Key
public Schedule.Key(double time,
int ordering)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
compareTo
public int compareTo(java.lang.Object obj)
- Specified by:
compareTo
in interface java.lang.Comparable