Package FAtiMA.Core
Class ActionLibrary
java.lang.Object
FAtiMA.Core.ActionLibrary
- All Implemented Interfaces:
Serializable
- Author:
- Joao Dias Class that stores the STRIPS definition of the domain actions
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidChecks the integrity of the Planner operators/Steps/actions.Gets the operator that corresponds to the given namevoidLoadActionsFile(String xmlFile, AgentModel am)
-
Constructor Details
-
ActionLibrary
public ActionLibrary()
-
-
Method Details
-
addAction
-
checkIntegrity
public void checkIntegrity(IntegrityValidator val) throws UnspecifiedVariableException, UnknownSpeechActException Checks the integrity of the Planner operators/Steps/actions. For instance it checks if a operator references a SpeechAct not defined, or if it uses a unbound variable (in effects or preconditions) not used in the operator's name- Parameters:
val- - the IntegrityValidator used to detect problems- Throws:
UnspecifiedVariableException- - thrown when the operator uses a unbound variable in the effects or preconditions without using the same variable in the step's nameUnknownSpeechActException- - thrown when the operator references a SpeechAct not defined
-
getAction
-
getAction
Gets the operator that corresponds to the given name- Parameters:
name- - the name of the step to get- Returns:
- the searched step if it is found, null otherwise
-
getActions
-
LoadActionsFile
- Throws:
ActionsParsingException
-