fipaos.agent.task.event
Class ChildFailureEvent

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, Throwable reason)
          Create event

Method Summary
 TaskgetChildTask()
          Get the child-Task that has failed
 ThrowablegetFailureReason()
          Get the Exception associated with the failure
 voidremoveReferences()
          Removes all references to other objects to aid garbage collection

Methods inherited from class fipaos.agent.task.event.TaskEvent
getTimeSinceTimestamp, getTimestamp

Constructor Detail

ChildFailureEvent

public ChildFailureEvent(Task child, 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 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

Association Links

to Class java.lang.Throwable

Exception associated with failure

to Class fipaos.agent.task.Task

child-Task that has failed