public class ConnectionEvent extends ExternalEvent
| Modifier and Type | Field and Description |
|---|---|
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
|
time| Constructor and Description |
|---|
ConnectionEvent(int from,
int to,
java.lang.String interf,
boolean up,
double time)
Creates a new connection event
|
| Modifier and Type | Method and Description |
|---|---|
void |
processEvent(World world)
Processes the external event.
|
java.lang.String |
toString()
Returns a String representation of the event
|
compareTo, getTimeprotected int fromAddr
protected int toAddr
protected boolean isUp
protected java.lang.String interfaceId
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 occurspublic void processEvent(World world)
ExternalEventprocessEvent in class ExternalEventworld - World where the actors of the event arepublic java.lang.String toString()
ExternalEventtoString in class ExternalEvent