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 MBody
The plan body.protected MCondition
The context condition.protected int
The declaration order for external plans in annotations.protected jadex.common.UnparsedExpression
The precondition.protected int
The plan priority.protected MTrigger
The trigger.protected MTrigger
The waitqueue trigger.Fields inherited from class jadex.bdi.model.MParameterElement
parameters
Fields 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.int
getOrder()
Get the declaration order.jadex.common.UnparsedExpression
Get the precondition.int
Get the priority.Get the trigger.Get the waitqueue.void
Set the body.void
setContextCondition
(MCondition contextcondition) The contextcondition to set.void
setOrder
(int order) Set the declaration ordervoid
setPrecondition
(jadex.common.UnparsedExpression precondition) Set the precondition.void
setPriority
(int priority) Set the priority.void
setTrigger
(MTrigger trigger) Set the trigger.void
setWaitqueue
(MTrigger waitqueue) Set the waitqueue.Methods inherited from class jadex.bdi.model.MParameterElement
addParameter, getParameter, getParameters, hasParameter, hasParameterIgnoreCase, setParameters
Methods 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.
-