input
Class MessageCreateEvent
java.lang.Object
input.ExternalEvent
input.MessageEvent
input.MessageCreateEvent
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ExternalEvent>
public class MessageCreateEvent
- extends MessageEvent
External event for creating a message.
- See Also:
- Serialized Form
Constructor Summary |
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 |
Method Summary |
void |
processEvent(World world)
Creates the message this event represents. |
java.lang.String |
toString()
Returns a String representation of the event |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MessageCreateEvent
public 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
- Parameters:
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 created
processEvent
public void processEvent(World world)
- Creates the message this event represents.
- 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 MessageEvent
- Returns:
- a String representation of the event