Package jadex.bdiv3.model
Class MCondition
- java.lang.Object
 - 
- jadex.bdiv3.model.MElement
 - 
- jadex.bdiv3.model.MCondition
 
 
 
- 
public class MCondition extends MElement
Model element for conditions. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected ConstructorInfoctargetThe target constructor.protected java.util.List<jadex.rules.eca.EventType>eventsThe events this condition depends on.protected UnparsedExpressionexpressionExpression.protected MethodInfomtargetThe target method.- 
Fields inherited from class jadex.bdiv3.model.MElement
CAPABILITY_SEPARATOR, description, name 
 - 
 
- 
Constructor Summary
Constructors Constructor Description MCondition()Bean Constructor.MCondition(UnparsedExpression exp)Create a new mcondition.MCondition(java.lang.String name, java.util.List<jadex.rules.eca.EventType> events)Create a new mcondition. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEvent(jadex.rules.eca.EventType event)Add an event.ConstructorInfogetConstructorTarget()Get the ctarget.java.util.List<jadex.rules.eca.EventType>getEvents()Get the events.UnparsedExpressiongetExpression()Get the expression.MethodInfogetMethodTarget()Get the mtarget.voidinitEvents(MParameterElement owner)Init the event, when loaded from xml.voidsetConstructorTarget(ConstructorInfo ctarget)Set the ctarget.voidsetEvents(java.util.List<jadex.rules.eca.EventType> events)The events to set.voidsetExpression(UnparsedExpression expression)Set the expression.voidsetMethodTarget(MethodInfo mtarget)Set the mtarget.- 
Methods inherited from class jadex.bdiv3.model.MElement
equals, getCapabilityName, getDescription, getElementName, getName, hashCode, internalName, setDescription, setFlatName, setName, toString 
 - 
 
 - 
 
- 
- 
Field Detail
- 
events
protected java.util.List<jadex.rules.eca.EventType> events
The events this condition depends on. 
- 
mtarget
protected MethodInfo mtarget
The target method. 
- 
ctarget
protected ConstructorInfo ctarget
The target constructor. 
- 
expression
protected UnparsedExpression expression
Expression. 
 - 
 
- 
Constructor Detail
- 
MCondition
public MCondition()
Bean Constructor. 
- 
MCondition
public MCondition(UnparsedExpression exp)
Create a new mcondition. 
- 
MCondition
public MCondition(java.lang.String name, java.util.List<jadex.rules.eca.EventType> events)Create a new mcondition. 
 - 
 
- 
Method Detail
- 
getMethodTarget
public MethodInfo getMethodTarget()
Get the mtarget.- Returns:
 - The mtarget.
 
 
- 
setMethodTarget
public void setMethodTarget(MethodInfo mtarget)
Set the mtarget.- Parameters:
 mtarget- The mtarget to set.
 
- 
getConstructorTarget
public ConstructorInfo getConstructorTarget()
Get the ctarget.- Returns:
 - The ctarget.
 
 
- 
setConstructorTarget
public void setConstructorTarget(ConstructorInfo ctarget)
Set the ctarget.- Parameters:
 ctarget- The ctarget to set.
 
- 
getEvents
public java.util.List<jadex.rules.eca.EventType> getEvents()
Get the events.- Returns:
 - The events.
 
 
- 
initEvents
public void initEvents(MParameterElement owner)
Init the event, when loaded from xml. 
- 
setEvents
public void setEvents(java.util.List<jadex.rules.eca.EventType> events)
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 UnparsedExpression getExpression()
Get the expression. 
- 
setExpression
public void setExpression(UnparsedExpression expression)
Set the expression. 
 - 
 
 -