Class MCondition


  • public class MCondition
    extends MElement
    Model element for conditions.
    • 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.
    • Constructor Detail

      • MCondition

        public MCondition()
        Bean Constructor.
      • 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.
      • setExpression

        public void setExpression​(UnparsedExpression expression)
        Set the expression.