public class MessageCreateEvent extends MessageEvent
fromAddr, id, toAddrtime| Constructor and Description |
|---|
MessageCreateEvent(int from,
int to,
java.lang.String id,
int size,
int responseSize,
double time)
Creates a message creation event with a optional response request
|
| Modifier and Type | Method and Description |
|---|---|
void |
processEvent(World world)
Creates the message this event represents.
|
java.lang.String |
toString()
Returns a String representation of the event
|
compareTo, getTimepublic MessageCreateEvent(int from,
int to,
java.lang.String id,
int size,
int responseSize,
double time)
from - The creator of the messageto - Where the message is destined toid - ID of the messagesize - Size of the messageresponseSize - Size of the requested response message or 0 if
no response is requestedtime - Time, when the message is createdpublic void processEvent(World world)
processEvent in class ExternalEventworld - World where the actors of the event arepublic java.lang.String toString()
ExternalEventtoString in class MessageEvent