public interface Plan extends MetadataElement
| Modifier and Type | Interface and Description |
|---|---|
static class |
Plan.EndState
This enumeration represents the possible end states of a plan execution.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAchieve(Goal goal)
Verifies if a given goal can be achieved by this plan.
|
boolean |
canProcess(jade.lang.acl.ACLMessage message)
Verifies if the message can be processed by this plan.
|
PlanBody |
createPlanBody()
Instantiate the plan body of this plan, which is an implementation of the
PlanBody interface. |
java.lang.String |
getId()
Returns the id of this plan.
|
PlanLibrary |
getPlanLibrary()
Returns the plan library with which this plan is associated.
|
boolean |
isContextApplicable(Goal goal)
Verifies if the current context is valid for this plan execution.
|
void |
setPlanLibrary(PlanLibrary planLibrary)
Sets the plan library with which this plan is associated.
|
getMetadata, getMetadata, hasMetadata, putMetadata, removeMetadataboolean canAchieve(Goal goal)
goal - the goal to be verified.boolean canProcess(jade.lang.acl.ACLMessage message)
message - the message to be checked.PlanBody createPlanBody() throws PlanInstantiationException
PlanBody interface.PlanInstantiationException - if an error occurred during the instantiation process.java.lang.String getId()
PlanLibrary getPlanLibrary()
boolean isContextApplicable(Goal goal)
goal - the goal to be achieved whose conditions may be tested to
verify the applicability of this plan.void setPlanLibrary(PlanLibrary planLibrary)
planLibrary - the planLibrary to set.