input
Class MessageDeleteEvent

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

public class MessageDeleteEvent
extends MessageEvent

External event for deleting 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
MessageDeleteEvent(int host, java.lang.String id, double time, boolean drop)
          Creates a message delete event
 
Method Summary
 void processEvent(World world)
          Deletes the message
 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

MessageDeleteEvent

public MessageDeleteEvent(int host,
                          java.lang.String id,
                          double time,
                          boolean drop)
Creates a message delete event

Parameters:
host - Where to delete the message
id - ID of the message
time - Time when the message is deleted
Method Detail

processEvent

public void processEvent(World world)
Deletes the message

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