br.pucrio.inf.les.bdijade.plan
Interface PlanBody


public interface PlanBody

This interface defines a PlanBody. Plans are executed as behaviors ( Behaviour), but executed in the BDI context, these behaviors should also implement this interface.

Author:
ingrid

Method Summary
 PlanInstance.EndState getEndState()
          Returns the end state of the execution of this plan.
 void init(PlanInstance planInstance)
          Initializes the PlanBody.
 

Method Detail

getEndState

PlanInstance.EndState getEndState()
Returns the end state of the execution of this plan.

Returns:
the end state of this plan, or null if it has not finished yet.

init

void init(PlanInstance planInstance)
Initializes the PlanBody. It is invoked just after its instantiation.

Parameters:
planInstance - the plan instance that contains contextual information for this plan body.