Package FAtiMA.Core.plans
Interface IPlanningOperator
- All Superinterfaces:
Cloneable,IGroundable
- All Known Implementing Classes:
ActivePursuitGoal,Step
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the operators's preconditions are verified in the current Stateclone()booleanCompares this planOperator with another planOperator to see if they are equalgetAgent()Gets the name of the agent that executes the operatorGets the operators's effect with the given IDGets the operator's effectsgetID()Gets the ID of the Operator in the plangetName()Gets the Operators's namegetPrecondition(Integer preconditionID) Gets the operator's precondition with the given IDGets the preconditions of the OperatorfloatGets the operator's probability of executionvoidSets the operators's ID in the planvoidUpdates the probabilities of the operators's effectsMethods inherited from interface FAtiMA.Core.wellFormedNames.IGroundable
isGrounded, MakeGround, MakeGround, ReplaceUnboundVariables
-
Method Details
-
getProbability
Gets the operator's probability of execution- Returns:
- the operators's probability
-
updateEffectsProbability
Updates the probabilities of the operators's effects -
checkPreconditions
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
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
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
Gets the preconditions of the Operator- Returns:
- an ArrayList with all the Operator's preconditions
-
getPrecondition
Gets the operator's precondition with the given ID- Parameters:
preconditionID- - the id of the operators's precondition- Returns:
- the precondition
-
getEffect
Gets the operators's effect with the given ID- Parameters:
effectID- - the id of the operators's effect- Returns:
- the effect
-
setID
Sets the operators's ID in the plan- Parameters:
id- - the new operators's ID
-
clone
Object clone()
-