sim.engine
Class Schedule.Key

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

protected 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

Constructor Summary
Schedule.Key(double time, int ordering)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object obj)
           
 int getOrdering()
           
 double getTime()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Schedule.Key

public Schedule.Key(double time,
                    int ordering)
Method Detail

getOrdering

public int getOrdering()

getTime

public double getTime()

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