Class MCondition

java.lang.Object
jadex.bdi.model.MElement
jadex.bdi.model.MCondition

public class MCondition extends MElement
Model element for conditions.
  • Field Details

    • events

      protected List<jadex.rules.eca.EventType> events
      The events this condition depends on.
    • mtarget

      protected jadex.common.MethodInfo mtarget
      The target method.
    • ctarget

      protected ConstructorInfo ctarget
      The target constructor.
    • expression

      protected jadex.common.UnparsedExpression expression
      Expression.
  • Constructor Details

    • MCondition

      public MCondition()
      Bean Constructor.
    • MCondition

      public MCondition(jadex.common.UnparsedExpression exp)
      Create a new mcondition.
    • MCondition

      public MCondition(String name, List<jadex.rules.eca.EventType> events)
      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

      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 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(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 jadex.common.UnparsedExpression getExpression()
      Get the expression.
    • setExpression

      public void setExpression(jadex.common.UnparsedExpression expression)
      Set the expression.