Package FAtiMA.Core.plans
Interface IPlanningOperator
-
- All Superinterfaces:
java.lang.Cloneable,IGroundable
- All Known Implementing Classes:
ActivePursuitGoal,Step
public interface IPlanningOperator extends java.lang.Cloneable, IGroundable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckPreconditions(AgentModel am)Checks if the operators's preconditions are verified in the current Statejava.lang.Objectclone()booleanequals(IPlanningOperator op)Compares this planOperator with another planOperator to see if they are equalSymbolgetAgent()Gets the name of the agent that executes the operatorEffectgetEffect(java.lang.Integer effectID)Gets the operators's effect with the given IDjava.util.ArrayList<Effect>getEffects()Gets the operator's effectsjava.lang.IntegergetID()Gets the ID of the Operator in the planNamegetName()Gets the Operators's nameConditiongetPrecondition(java.lang.Integer preconditionID)Gets the operator's precondition with the given IDjava.util.ArrayList<Condition>getPreconditions()Gets the preconditions of the OperatorfloatgetProbability(AgentModel am)Gets the operator's probability of executionvoidsetID(java.lang.Integer id)Sets the operators's ID in the planvoidupdateEffectsProbability(AgentModel am)Updates the probabilities of the operators's effects-
Methods inherited from interface FAtiMA.Core.wellFormedNames.IGroundable
isGrounded, MakeGround, MakeGround, ReplaceUnboundVariables
-
-
-
-
Method Detail
-
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
java.util.ArrayList<Effect> getEffects()
Gets the operator's effects- Returns:
- an ArrayList with all the operators's effects
-
getID
java.lang.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
java.util.ArrayList<Condition> getPreconditions()
Gets the preconditions of the Operator- Returns:
- an ArrayList with all the Operator's preconditions
-
getPrecondition
Condition getPrecondition(java.lang.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(java.lang.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(java.lang.Integer id)
Sets the operators's ID in the plan- Parameters:
id- - the new operators's ID
-
clone
java.lang.Object clone()
-
-