input
Class MessageEvent

java.lang.Object
  extended by input.ExternalEvent
      extended by input.MessageEvent
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ExternalEvent>
Direct Known Subclasses:
MessageCreateEvent, MessageDeleteEvent, MessageRelayEvent

public abstract class MessageEvent
extends ExternalEvent

A message related external event

See Also:
Serialized Form

Field Summary
protected  int fromAddr
          address of the node the message is from
protected  java.lang.String id
          identifier of the message
protected  int toAddr
          address of the node the message is to
 
Fields inherited from class input.ExternalEvent
time
 
Constructor Summary
MessageEvent(int from, int to, java.lang.String id, double time)
          Creates a message event
 
Method Summary
 java.lang.String toString()
          Returns a String representation of the event
 
Methods inherited from class input.ExternalEvent
compareTo, getTime, processEvent
 
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 message is from


toAddr

protected int toAddr
address of the node the message is to


id

protected java.lang.String id
identifier of the message

Constructor Detail

MessageEvent

public MessageEvent(int from,
                    int to,
                    java.lang.String id,
                    double time)
Creates a message event

Parameters:
from - Where the message comes from
to - Who the message goes to
id - ID of the message
time - Time when the message event occurs
Method Detail

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