Package cmion.level3
Class CompetencyManager
java.lang.Object
ion.Meta.Element
cmion.architecture.CmionComponent
cmion.level3.CompetencyManager
the competency manager receives actions from the mind for execution and decomposes
them into a plan of competencies for execution
-
Field Summary
Fields inherited from class cmion.architecture.CmionComponent
architecture -
Constructor Summary
ConstructorsConstructorDescriptionCompetencyManager(IArchitecture architecture, String competencyManagerRulesFileName) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidmethod that is called by the event handler whenever the mind initiates a new actionprotected CompetencyManagerRulefindMatch(MindAction a, ArrayList<CompetencyManagerRule> rulesToIgnore) find a rule from the rule base that maps the specified Mind Action to a competency execution planprotected InputStreamopenRulesFile(String competencyManagerRulesFileName) protected voidmethod that is called by the event handler whenever the mind initiates a new actionfinal voidin here the competency manager registers its request and event handlers with IONMethods inherited from class cmion.architecture.CmionComponent
getArchitecture, isConnected, onDestroy, raiseMethods inherited from class ion.Meta.Element
destroy, getEventFilters, getEventHandlers, getRequestFilters, getRequestHandlers, getSimulation, getUID, schedule, wasDestroyed
-
Constructor Details
-
CompetencyManager
public CompetencyManager(IArchitecture architecture, String competencyManagerRulesFileName) throws Exception - Throws:
Exception
-
-
Method Details
-
receiveActionFromMind
method that is called by the event handler whenever the mind initiates a new action -
cancelActionFromMind
method that is called by the event handler whenever the mind initiates a new action -
findMatch
protected CompetencyManagerRule findMatch(MindAction a, ArrayList<CompetencyManagerRule> rulesToIgnore) find a rule from the rule base that maps the specified Mind Action to a competency execution plan- Parameters:
a- the mind action that we are checking matches forrulesToIgnore- the rules that should not be matched with- Returns:
- a rule that matches or null if no match could be found
-
registerHandlers
public final void registerHandlers()in here the competency manager registers its request and event handlers with ION- Specified by:
registerHandlersin classCmionComponent
-
openRulesFile
- Throws:
Exception
-