Interface IPlanningOperator

All Superinterfaces:
Cloneable, IGroundable
All Known Implementing Classes:
ActivePursuitGoal, Step

public interface IPlanningOperator extends Cloneable, IGroundable
  • Method Details

    • getProbability

      float getProbability(AgentModel am)
      Gets the operator's probability of execution
      Returns:
      the operators's probability
    • updateEffectsProbability

      void updateEffectsProbability(AgentModel am)
      Updates the probabilities of the operators's effects
    • checkPreconditions

      boolean checkPreconditions(AgentModel am)
      Checks if the operators's preconditions are verified in the current State
      Returns:
      true if all preconditions are true according to the current State, false otherwise
    • equals

      boolean equals(IPlanningOperator op)
      Compares this planOperator with another planOperator to see if they are equal
      Parameters:
      op -
      Returns:
      true if the operators have the same ID in a plan
    • getEffects

      ArrayList<Effect> getEffects()
      Gets the operator's effects
      Returns:
      an ArrayList with all the operators's effects
    • getID

      Integer getID()
      Gets the ID of the Operator in the plan
      Returns:
      - the Operator's ID
    • getName

      Name getName()
      Gets the Operators's name
      Returns:
      the Operator's name
    • getAgent

      Symbol getAgent()
      Gets the name of the agent that executes the operator
      Returns:
      the name of the agent that executes the operator
    • getPreconditions

      ArrayList<Condition> getPreconditions()
      Gets the preconditions of the Operator
      Returns:
      an ArrayList with all the Operator's preconditions
    • getPrecondition

      Condition getPrecondition(Integer preconditionID)
      Gets the operator's precondition with the given ID
      Parameters:
      preconditionID - - the id of the operators's precondition
      Returns:
      the precondition
    • getEffect

      Effect getEffect(Integer effectID)
      Gets the operators's effect with the given ID
      Parameters:
      effectID - - the id of the operators's effect
      Returns:
      the effect
    • setID

      void setID(Integer id)
      Sets the operators's ID in the plan
      Parameters:
      id - - the new operators's ID
    • clone

      Object clone()