Package jadex.bdi.model
Class MPlan
java.lang.Object
jadex.bdi.model.MElement
jadex.bdi.model.MParameterElement
jadex.bdi.model.MPlan
Modelelement for a plan.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MBodyThe plan body.protected MConditionThe context condition.protected intThe declaration order for external plans in annotations.protected jadex.common.UnparsedExpressionThe precondition.protected intThe plan priority.protected MTriggerThe trigger.protected MTriggerThe waitqueue trigger.Fields inherited from class jadex.bdi.model.MParameterElement
parametersFields inherited from class jadex.bdi.model.MElement
CAPABILITY_SEPARATOR, description, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBody()Get the body.Get the contextcondition.intgetOrder()Get the declaration order.jadex.common.UnparsedExpressionGet the precondition.intGet the priority.Get the trigger.Get the waitqueue.voidSet the body.voidsetContextCondition(MCondition contextcondition) The contextcondition to set.voidsetOrder(int order) Set the declaration ordervoidsetPrecondition(jadex.common.UnparsedExpression precondition) Set the precondition.voidsetPriority(int priority) Set the priority.voidsetTrigger(MTrigger trigger) Set the trigger.voidsetWaitqueue(MTrigger waitqueue) Set the waitqueue.Methods inherited from class jadex.bdi.model.MParameterElement
addParameter, getParameter, getParameters, hasParameter, hasParameterIgnoreCase, setParametersMethods inherited from class jadex.bdi.model.MElement
equals, getCapabilityName, getDescription, getElementName, getName, hashCode, internalName, setDescription, setFlatName, setName, toString
-
Field Details
-
trigger
The trigger. -
waitqueue
The waitqueue trigger. -
body
The plan body. -
priority
protected int priorityThe plan priority. -
order
protected int orderThe declaration order for external plans in annotations. -
precondition
protected jadex.common.UnparsedExpression preconditionThe precondition. -
contextcondition
The context condition.
-
-
Constructor Details
-
Method Details
-
getBody
Get the body.- Returns:
- The body.
-
setBody
Set the body.- Parameters:
body- The body to set.
-
getTrigger
Get the trigger.- Returns:
- The trigger.
-
setTrigger
Set the trigger.- Parameters:
trigger- The trigger to set.
-
getWaitqueue
Get the waitqueue.- Returns:
- The waitqueue.
-
setWaitqueue
Set the waitqueue.- Parameters:
waitqueue- The waitqueue to set.
-
getPriority
public int getPriority()Get the priority.- Returns:
- The priority.
-
setPriority
public void setPriority(int priority) Set the priority.- Parameters:
priority- The priority to set.
-
getPrecondition
public jadex.common.UnparsedExpression getPrecondition()Get the precondition. -
setPrecondition
public void setPrecondition(jadex.common.UnparsedExpression precondition) Set the precondition. -
getContextCondition
Get the contextcondition.- Returns:
- The contextcondition
-
setContextCondition
The contextcondition to set.- Parameters:
contextcondition- The contextcondition to set
-
getOrder
public int getOrder()Get the declaration order.- Returns:
- the order
-
setOrder
public void setOrder(int order) Set the declaration order- Parameters:
order- the order to set.
-