|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDelaySim.Entry
public class Entry
A class describing entries in the scheduling lists of the simulation algorithms. An entry is described by the time of the associated event, and the index of the reaction involved in the event.
Field Summary | |
---|---|
int |
idx
reaction involved in the event |
double |
time
time of the event |
Constructor Summary | |
---|---|
Entry(double time,
int reaction)
Create an event-object happening at time 'time' and involving reaction 'reaction' |
Method Summary | |
---|---|
int |
compareTo(Entry o)
compare two Entry objects on their 'time' value |
java.lang.String |
toString()
Return a string representation of this event |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double time
public int idx
Constructor Detail |
---|
public Entry(double time, int reaction)
time
- the time of the eventreaction
- the reaction involvedMethod Detail |
---|
public int compareTo(Entry o)
compareTo
in interface java.lang.Comparable<Entry>
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |