public abstract class MessageEvent extends ExternalEvent
| Modifier and Type | Field and Description |
|---|---|
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
|
time| Constructor and Description |
|---|
MessageEvent(int from,
int to,
java.lang.String id,
double time)
Creates a message event
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString()
Returns a String representation of the event
|
compareTo, getTime, processEventprotected int fromAddr
protected int toAddr
protected java.lang.String id
public MessageEvent(int from,
int to,
java.lang.String id,
double time)
from - Where the message comes fromto - Who the message goes toid - ID of the messagetime - Time when the message event occurspublic java.lang.String toString()
ExternalEventtoString in class ExternalEvent