Package jadex.bdi.model
Class MCondition
java.lang.Object
jadex.bdi.model.MElement
jadex.bdi.model.MCondition
Model element for conditions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConstructorInfoThe target constructor.protected List<jadex.rules.eca.EventType>The events this condition depends on.protected jadex.common.UnparsedExpressionExpression.protected jadex.common.MethodInfoThe target method.Fields inherited from class jadex.bdi.model.MElement
CAPABILITY_SEPARATOR, description, name -
Constructor Summary
ConstructorsConstructorDescriptionBean Constructor.MCondition(jadex.common.UnparsedExpression exp) Create a new mcondition.MCondition(String name, List<jadex.rules.eca.EventType> events) Create a new mcondition. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEvent(jadex.rules.eca.EventType event) Add an event.Get the ctarget.List<jadex.rules.eca.EventType>Get the events.jadex.common.UnparsedExpressionGet the expression.jadex.common.MethodInfoGet the mtarget.voidinitEvents(MParameterElement owner) Init the event, when loaded from xml.voidsetConstructorTarget(ConstructorInfo ctarget) Set the ctarget.voidThe events to set.voidsetExpression(jadex.common.UnparsedExpression expression) Set the expression.voidsetMethodTarget(jadex.common.MethodInfo mtarget) Set the mtarget.Methods inherited from class jadex.bdi.model.MElement
equals, getCapabilityName, getDescription, getElementName, getName, hashCode, internalName, setDescription, setFlatName, setName, toString
-
Field Details
-
events
The events this condition depends on. -
mtarget
protected jadex.common.MethodInfo mtargetThe target method. -
ctarget
The target constructor. -
expression
protected jadex.common.UnparsedExpression expressionExpression.
-
-
Constructor Details
-
MCondition
public MCondition()Bean Constructor. -
MCondition
public MCondition(jadex.common.UnparsedExpression exp) Create a new mcondition. -
MCondition
Create a new mcondition.
-
-
Method Details
-
getMethodTarget
public jadex.common.MethodInfo getMethodTarget()Get the mtarget.- Returns:
- The mtarget.
-
setMethodTarget
public void setMethodTarget(jadex.common.MethodInfo mtarget) Set the mtarget.- Parameters:
mtarget- The mtarget to set.
-
getConstructorTarget
Get the ctarget.- Returns:
- The ctarget.
-
setConstructorTarget
Set the ctarget.- Parameters:
ctarget- The ctarget to set.
-
getEvents
Get the events.- Returns:
- The events.
-
initEvents
Init the event, when loaded from xml. -
setEvents
The events to set.- Parameters:
events- The events to set
-
addEvent
public void addEvent(jadex.rules.eca.EventType event) Add an event.- Parameters:
event- The event.
-
getExpression
public jadex.common.UnparsedExpression getExpression()Get the expression. -
setExpression
public void setExpression(jadex.common.UnparsedExpression expression) Set the expression.
-