public class MPlan extends MParameterElement
Modifier and Type | Field and Description |
---|---|
protected MBody |
body
The plan body.
|
protected MCondition |
contextcondition
The context condition.
|
protected UnparsedExpression |
precondition
The precondition.
|
protected int |
priority
The plan priority.
|
protected MTrigger |
trigger
The trigger.
|
protected MTrigger |
waitqueue
The waitqueue trigger.
|
parameters
CAPABILITY_SEPARATOR, description, name
Constructor and Description |
---|
MPlan()
Bean Constructor.
|
MPlan(java.lang.String name,
MBody body,
MTrigger trigger,
MTrigger waitqueue,
int priority)
Create a new belief.
|
Modifier and Type | Method and Description |
---|---|
MBody |
getBody()
Get the body.
|
MCondition |
getContextCondition()
Get the contextcondition.
|
UnparsedExpression |
getPrecondition()
Get the precondition.
|
int |
getPriority()
Get the priority.
|
MTrigger |
getTrigger()
Get the trigger.
|
MTrigger |
getWaitqueue()
Get the waitqueue.
|
void |
setBody(MBody body)
Set the body.
|
void |
setContextCondition(MCondition contextcondition)
The contextcondition to set.
|
void |
setPrecondition(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.
|
addParameter, getParameter, getParameters, hasParameter, hasParameterIgnoreCase, setParameters
equals, getCapabilityName, getDescription, getElementName, getName, hashCode, internalName, setDescription, setFlatName, setName, toString
protected MTrigger trigger
protected MTrigger waitqueue
protected MBody body
protected int priority
protected UnparsedExpression precondition
protected MCondition contextcondition
public MBody getBody()
public void setBody(MBody body)
body
- The body to set.public MTrigger getTrigger()
public void setTrigger(MTrigger trigger)
trigger
- The trigger to set.public MTrigger getWaitqueue()
public void setWaitqueue(MTrigger waitqueue)
waitqueue
- The waitqueue to set.public int getPriority()
public void setPriority(int priority)
priority
- The priority to set.public UnparsedExpression getPrecondition()
public void setPrecondition(UnparsedExpression precondition)
public MCondition getContextCondition()
public void setContextCondition(MCondition contextcondition)
contextcondition
- The contextcondition to set