|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinput.ExternalEvent
input.ConnectionEvent
public class ConnectionEvent
A connection up/down event.
Field Summary | |
---|---|
protected int |
fromAddr
address of the node the (dis)connection is from |
protected boolean |
isUp
Is this a "connection up" event |
protected int |
toAddr
address of the node the (dis)connection is to |
Fields inherited from class input.ExternalEvent |
---|
time |
Constructor Summary | |
---|---|
ConnectionEvent(int from,
int to,
boolean up,
double time)
Creates a new connection event |
Method Summary | |
---|---|
void |
processEvent(World world)
Processes the external event. |
java.lang.String |
toString()
Returns a String representation of the event |
Methods inherited from class input.ExternalEvent |
---|
compareTo, getTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int fromAddr
protected int toAddr
protected boolean isUp
Constructor Detail |
---|
public ConnectionEvent(int from, int to, boolean up, double time)
from
- End point of connectionto
- Another end of connectionup
- If true, this was a "connection up" event, if false, this
was a "connection down" eventtime
- Time when the Connection event occursMethod Detail |
---|
public void processEvent(World world)
ExternalEvent
processEvent
in class ExternalEvent
world
- World where the actors of the event arepublic java.lang.String toString()
ExternalEvent
toString
in class ExternalEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |