|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--SimKit.Event
The Event class represents a simulation event (or message).
LPs communicate with each other by sending Events back and
forth. An Event is essentially a message sent from a source
LP to a destination LP.
Although users should derive specific event types from
this class, they may still use the class on its own
for generic events.
Extending this class ...
This class has no abstract methods.
LP
,
Simulation
Field Summary | |
protected LP |
fDestLP
The LP to which this event is destined. |
protected double |
fRecvTime
The simulation time the event was received. |
protected double |
fSendTime
The simulation time the event was sent. |
protected LP |
fSrcLP
The LP from which this event came. |
Constructor Summary | |
Event()
The Event constructor. |
Method Summary | |
LP |
destinationLP()
The destination LP is set when send_and_delete is called. |
double |
recvTime()
The receive time is set when send_and_delete is called. |
void |
send_and_delete(LP destLP,
double recvTime)
Schedule a message for execution by an LP at a specific simulation time. |
double |
sendTime()
Report the time the event was sent. |
void |
setDestLP(LP destination)
Set the destination LP of the event. |
LP |
sourceLP()
The source LP is set when send_and_delete is called. |
java.lang.String |
toString()
Returns a string with this Event's unique ID number, source LP, sendtime receivetime and destination LP. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected double fSendTime
protected double fRecvTime
protected LP fDestLP
protected LP fSrcLP
Constructor Detail |
public Event()
Method Detail |
public void send_and_delete(LP destLP, double recvTime)
destLP
- The LP to which the event is going to be sentrecvTime
- The simulation time when the event is
scheduled to execute.public final double sendTime()
public final double recvTime()
public final LP destinationLP()
public final LP sourceLP()
public void setDestLP(LP destination)
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 |