fipaos.agent.task.event
Class TaskEvent

java.lang.Object
  |
  +--fipaos.agent.task.event.TaskEvent
Direct Known Subclasses:
ChildDoneEvent, ChildFailureEvent, ChildTimeoutEvent, ConversationUpdateEvent, InitialisedEvent, MessageDeliveryFailureEvent, MessageForEndedConversationEvent

public abstract class TaskEvent
extends java.lang.Object

This class represents an unprocessed event for a particular Task


Constructor Summary
TaskEvent()
           
 
Method Summary
 long getTimeSinceTimestamp()
          Returns the amount of time in milliseconds since this event was created
 long getTimestamp()
          Returns the time that this was created
 void removeReferences()
          Removes all references to other objects to aid garbage collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskEvent

public TaskEvent()
Method Detail

getTimestamp

public long getTimestamp()
Returns the time that this was created
Returns:
Time in milliseconds passed 1 Jan 1970

getTimeSinceTimestamp

public long getTimeSinceTimestamp()
Returns the amount of time in milliseconds since this event was created
Returns:
The time since this was created

removeReferences

public void removeReferences()
Removes all references to other objects to aid garbage collection