Class ParsedAction

All Implemented Interfaces:
ParsedObject, ParsedOperator, Serializable

public class ParsedAction extends ParsedAbstractOperator
This class implements a planning operator parsed.

Modifications:

  • Add method normalize(int i) - 11.12.2012.
  • Add constructor of copy - 11.12.2012.
See Also:
Serialized Form
  • Constructor Details

    • ParsedAction

      public ParsedAction(ParsedAction other)
      Create a new operator from another.
      Parameters:
      other - the other operator.
    • ParsedAction

      public ParsedAction(Symbol<String> name, List<TypedSymbol<String>> parameters, Expression<String> preconds, Expression<String> effects)
      Creates operator with a specified name, list of parameters, preconditions and effects.
      Parameters:
      name - The name of the operator.
      parameters - The list of parameters of the operator.
      preconds - The goal description that represents the preconditions of the operator.
      effects - The goal description that represents the effects of the operator.
    • ParsedAction

      public ParsedAction(Symbol<String> name, List<TypedSymbol<String>> parameters, Expression<String> preconditions, Expression<String> effects, Expression<String> duration)
      Creates operator with a specified name, list of parameters, preconditions and effects.
      Parameters:
      name - The name of the operator.
      parameters - The list of parameters of the operator.
      preconditions - The goal description that represents the preconditions of the operator.
      effects - The goal description that represents the effects of the operator.
      duration - The description that represents the duration constraints of the operator.
      Throws:
      NullPointerException - if the specified name, parameters, preconditions or effects are null.
  • Method Details

    • getEffects

      public final Expression<String> getEffects()
      Returns the goal description that represents the effects of the operator.
      Returns:
      The goal description that represents the effects of the operator.
    • setEffects

      public final void setEffects(Expression<String> effects)
      Sets new effects to the operator.
      Parameters:
      effects - he new goal description that represents the effects of the operator to set.
      Throws:
      NullPointerException - if the specified effects is null.
    • toString

      public String toString()
      Returns a PDDL string representation of the operator.
      Overrides:
      toString in class Object
      Returns:
      a string PDDL representation of the operator.