fipaos.agent.task.event
Class ChildFailureEvent

java.lang.Object
  |
  +--fipaos.agent.task.event.TaskEvent
        |
        +--fipaos.agent.task.event.ChildFailureEvent

public class ChildFailureEvent
extends TaskEvent

Represents an unprocessed event indicating that a child-Task has failed


Constructor Summary
ChildFailureEvent(Task child, java.lang.Throwable reason)
          Create event
 
Method Summary
 Task getChildTask()
          Get the child-Task that has failed
 java.lang.Throwable getFailureReason()
          Get the Exception associated with the failure
 void removeReferences()
          Removes all references to other objects to aid garbage collection
 
Methods inherited from class fipaos.agent.task.event.TaskEvent
getTimeSinceTimestamp, getTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildFailureEvent

public ChildFailureEvent(Task child,
                         java.lang.Throwable reason)
Create event
Parameters:
child - Child-Task that has failed
reason - Exception associated with failure
Method Detail

getChildTask

public Task getChildTask()
Get the child-Task that has failed
Returns:
Child task that has failed

getFailureReason

public java.lang.Throwable getFailureReason()
Get the Exception associated with the failure
Returns:
Failure Exception

removeReferences

public void removeReferences()
Removes all references to other objects to aid garbage collection
Overrides:
removeReferences in class TaskEvent