input
Class ConnectionEvent

java.lang.Object
  extended by input.ExternalEvent
      extended by input.ConnectionEvent
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ExternalEvent>

public class ConnectionEvent
extends ExternalEvent

A connection up/down event.

See Also:
Serialized Form

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

fromAddr

protected int fromAddr
address of the node the (dis)connection is from


toAddr

protected int toAddr
address of the node the (dis)connection is to


isUp

protected boolean isUp
Is this a "connection up" event


interfaceId

protected java.lang.String interfaceId
What is the interface number for this event

Constructor Detail

ConnectionEvent

public ConnectionEvent(int from,
                       int to,
                       java.lang.String interf,
                       boolean up,
                       double time)
Creates a new connection event

Parameters:
from - End point of connection
to - Another end of connection
interf - The number of interface for the connection
up - If true, this was a "connection up" event, if false, this was a "connection down" event
time - Time when the Connection event occurs
Method Detail

processEvent

public void processEvent(World world)
Description copied from class: ExternalEvent
Processes the external event.

Overrides:
processEvent in class ExternalEvent
Parameters:
world - World where the actors of the event are

toString

public java.lang.String toString()
Description copied from class: ExternalEvent
Returns a String representation of the event

Overrides:
toString in class ExternalEvent
Returns:
a String representation of the event