Package FAtiMA.Core
Class IntegrityValidator
- java.lang.Object
-
- FAtiMA.Core.IntegrityValidator
-
public class IntegrityValidator extends java.lang.ObjectClass used to validate the integrity of information about the agent parsed at the begining. For example, among other things, this class verifies if the personality file does not reference an unspecified goal (it's not defined in the GoalLibrary)- Author:
- Joao Dias
-
-
Constructor Summary
Constructors Constructor Description IntegrityValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidCheckSpeechAction(Name actionName)Checks if a given action that corresponds to a SpeechAct is defined in the LanguageEngine or not.booleanFindUnreachableConditions(java.lang.String objectName, java.util.ArrayList<Condition> conditions)Checks if the received conditions are unreachable.
-
-
-
Method Detail
-
FindUnreachableConditions
public boolean FindUnreachableConditions(java.lang.String objectName, java.util.ArrayList<Condition> conditions)Checks if the received conditions are unreachable. This means that one of the conditions cannot be achieved by any operator that the planner can use. Thus, such condition is impossible to make true. In this situation, a warning is given to the output, since this is likely a typo error when specifying the conditions (or one of the steps).- Parameters:
objectName- - the name of the object (usually goal or action) that specifies the conditions tested. This name is required for the warning if an unreacheable condition is foundconditions- - the list of conditions to test if they are unreacheable- Returns:
- true if any of the conditions received is unreacheable, false otherwise
-
CheckSpeechAction
public void CheckSpeechAction(Name actionName) throws UnknownSpeechActException
Checks if a given action that corresponds to a SpeechAct is defined in the LanguageEngine or not.- Parameters:
actionName- - the name of the speechAct to check if it is defined- Throws:
UnknownSpeechActException- - thrown if the received SpeechAct is not defined in the LanguageEngine
-
-