Class DurativeAction

All Implemented Interfaces:
Operator, Serializable

public class DurativeAction extends AbstractDurativeOperator
This class implements a compact representation for a durative action.
See Also:
Serialized Form
  • Field Details

    • DEFAULT_DURATION

      public static NumericVariable DEFAULT_DURATION
      The default duration of the method.
  • Constructor Details

    • DurativeAction

      public DurativeAction(DurativeAction other)
      Creates a new action from another durative action. This constructor is the copy constructor.
      Parameters:
      other - the other action.
    • DurativeAction

      public DurativeAction(String name, int arity)
      Creates a new action.
      Parameters:
      name - the name of the action.
      arity - the arity of the action.
    • DurativeAction

      public DurativeAction(String name, int arity, TemporalCondition precondition, TemporalEffect effect)
      Creates a new action.
      Parameters:
      name - the name of the action.
      arity - the arity of the action.
      precondition - the precondition of the action.
      effect - the effects of the action.
  • Method Details

    • getConditionalEffects

      public final List<TemporalConditionalEffect> getConditionalEffects()
      Returns the effects of the action.
      Returns:
      the effects of the action.
    • setConditionalEffects

      public final void setConditionalEffects(List<TemporalConditionalEffect> effects)
      Returns the conditional effects to the action.
      Parameters:
      effects - the conditional effects of the action.
    • addConditionalEffect

      public final void addConditionalEffect(TemporalConditionalEffect effect)
      Adds a conditional effect to the action.
      Parameters:
      effect - the conditional effect to addValue.
    • getUnconditionalEffect

      public final TemporalEffect getUnconditionalEffect()
      Returns the unconditional effect of the action.
      Returns:
      the unconditional effect of the action.