input
Class MessageCreateEvent

java.lang.Object
  extended by input.ExternalEvent
      extended by input.MessageEvent
          extended by 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

Field Summary
 
Fields inherited from class input.MessageEvent
fromAddr, id, toAddr
 
Fields inherited from class input.ExternalEvent
time
 
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 input.ExternalEvent
compareTo, getTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 message
to - Where the message is destined to
id - ID of the message
size - Size of the message
responseSize - Size of the requested response message or 0 if no response is requested
time - Time, when the message is created
Method Detail

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