Class MPlan

    • Field Detail

      • trigger

        protected MTrigger trigger
        The trigger.
      • waitqueue

        protected MTrigger waitqueue
        The waitqueue trigger.
      • body

        protected MBody body
        The plan body.
      • priority

        protected int priority
        The plan priority.
      • contextcondition

        protected MCondition contextcondition
        The context condition.
    • Constructor Detail

      • MPlan

        public MPlan()
        Bean Constructor.
      • MPlan

        public MPlan​(java.lang.String name,
                     MBody body,
                     MTrigger trigger,
                     MTrigger waitqueue,
                     int priority)
        Create a new belief.
    • Method Detail

      • getBody

        public MBody getBody()
        Get the body.
        Returns:
        The body.
      • setBody

        public void setBody​(MBody body)
        Set the body.
        Parameters:
        body - The body to set.
      • getTrigger

        public MTrigger getTrigger()
        Get the trigger.
        Returns:
        The trigger.
      • setTrigger

        public void setTrigger​(MTrigger trigger)
        Set the trigger.
        Parameters:
        trigger - The trigger to set.
      • getWaitqueue

        public MTrigger getWaitqueue()
        Get the waitqueue.
        Returns:
        The waitqueue.
      • setWaitqueue

        public void setWaitqueue​(MTrigger waitqueue)
        Set the waitqueue.
        Parameters:
        waitqueue - The waitqueue to set.
      • getPriority

        public int getPriority()
        Get the priority.
        Returns:
        The priority.
      • setPriority

        public void setPriority​(int priority)
        Set the priority.
        Parameters:
        priority - The priority to set.
      • setPrecondition

        public void setPrecondition​(UnparsedExpression precondition)
        Set the precondition.
      • getContextCondition

        public MCondition getContextCondition()
        Get the contextcondition.
        Returns:
        The contextcondition
      • setContextCondition

        public void setContextCondition​(MCondition contextcondition)
        The contextcondition to set.
        Parameters:
        contextcondition - The contextcondition to set