|
|||||||||
| 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 java.lang.String |
interfaceId
What is the interface number for this event |
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,
java.lang.String interf,
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
protected java.lang.String interfaceId
| Constructor Detail |
|---|
public ConnectionEvent(int from,
int to,
java.lang.String interf,
boolean up,
double time)
from - End point of connectionto - Another end of connectioninterf - The number of interface for the connectionup - If true, this was a "connection up" event, if false, this
was a "connection down" eventtime - Time when the Connection event occurs| Method Detail |
|---|
public void processEvent(World world)
ExternalEvent
processEvent in class ExternalEventworld - 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 | ||||||||