public class MCondition extends MElement
Modifier and Type | Field and Description |
---|---|
protected ConstructorInfo |
ctarget
The target constructor.
|
protected java.util.List<jadex.rules.eca.EventType> |
events
The events this condition depends on.
|
protected jadex.bridge.modelinfo.UnparsedExpression |
expression
Expression.
|
protected jadex.commons.MethodInfo |
mtarget
The target method.
|
CAPABILITY_SEPARATOR, description, name
Constructor and Description |
---|
MCondition()
Bean Constructor.
|
MCondition(java.lang.String name,
java.util.List<jadex.rules.eca.EventType> events)
Create a new mcondition.
|
MCondition(jadex.bridge.modelinfo.UnparsedExpression exp)
Create a new mcondition.
|
Modifier and Type | Method and Description |
---|---|
void |
addEvent(jadex.rules.eca.EventType event)
Add an event.
|
ConstructorInfo |
getConstructorTarget()
Get the ctarget.
|
java.util.List<jadex.rules.eca.EventType> |
getEvents()
Get the events.
|
jadex.bridge.modelinfo.UnparsedExpression |
getExpression()
Get the expression.
|
jadex.commons.MethodInfo |
getMethodTarget()
Get the mtarget.
|
void |
initEvents(MParameterElement owner)
Init the event, when loaded from xml.
|
void |
setConstructorTarget(ConstructorInfo ctarget)
Set the ctarget.
|
void |
setEvents(java.util.List<jadex.rules.eca.EventType> events)
The events to set.
|
void |
setExpression(jadex.bridge.modelinfo.UnparsedExpression expression)
Set the expression.
|
void |
setMethodTarget(jadex.commons.MethodInfo mtarget)
Set the mtarget.
|
equals, getCapabilityName, getDescription, getElementName, getName, hashCode, internalName, setDescription, setFlatName, setName, toString
protected java.util.List<jadex.rules.eca.EventType> events
protected jadex.commons.MethodInfo mtarget
protected ConstructorInfo ctarget
protected jadex.bridge.modelinfo.UnparsedExpression expression
public MCondition()
public MCondition(jadex.bridge.modelinfo.UnparsedExpression exp)
public MCondition(java.lang.String name, java.util.List<jadex.rules.eca.EventType> events)
public jadex.commons.MethodInfo getMethodTarget()
public void setMethodTarget(jadex.commons.MethodInfo mtarget)
mtarget
- The mtarget to set.public ConstructorInfo getConstructorTarget()
public void setConstructorTarget(ConstructorInfo ctarget)
ctarget
- The ctarget to set.public java.util.List<jadex.rules.eca.EventType> getEvents()
public void initEvents(MParameterElement owner)
public void setEvents(java.util.List<jadex.rules.eca.EventType> events)
events
- The events to setpublic void addEvent(jadex.rules.eca.EventType event)
event
- The event.public jadex.bridge.modelinfo.UnparsedExpression getExpression()
public void setExpression(jadex.bridge.modelinfo.UnparsedExpression expression)