Class MPlan


public class MPlan extends MParameterElement
Modelelement for a plan.
  • Field Details

    • 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.
    • order

      protected int order
      The declaration order for external plans in annotations.
    • precondition

      protected jadex.common.UnparsedExpression precondition
      The precondition.
    • contextcondition

      protected MCondition contextcondition
      The context condition.
  • Constructor Details

    • MPlan

      public MPlan()
      Bean Constructor.
    • MPlan

      public MPlan(String name, MBody body, MTrigger trigger, MTrigger waitqueue, int priority, int order)
      Create a new belief.
  • Method Details

    • 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.
    • getPrecondition

      public jadex.common.UnparsedExpression getPrecondition()
      Get the precondition.
    • setPrecondition

      public void setPrecondition(jadex.common.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
    • getOrder

      public int getOrder()
      Get the declaration order.
      Returns:
      the order
    • setOrder

      public void setOrder(int order)
      Set the declaration order
      Parameters:
      order - the order to set.