public class CompetencyManager extends CmionComponent
architecture| Constructor | Description |
|---|---|
CompetencyManager(IArchitecture architecture,
java.lang.String competencyManagerRulesFileName) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
cancelActionFromMind(MindAction a) |
method that is called by the event handler whenever the mind initiates a new action
|
protected CompetencyManagerRule |
findMatch(MindAction a,
java.util.ArrayList<CompetencyManagerRule> rulesToIgnore) |
find a rule from the rule base that maps the specified Mind Action to a competency execution plan
|
protected java.io.InputStream |
openRulesFile(java.lang.String competencyManagerRulesFileName) |
|
protected void |
receiveActionFromMind(MindAction a) |
method that is called by the event handler whenever the mind initiates a new action
|
void |
registerHandlers() |
in here the competency manager registers its request and event handlers
with ION
|
getArchitecture, isConnected, onDestroy, raisepublic CompetencyManager(IArchitecture architecture, java.lang.String competencyManagerRulesFileName) throws java.lang.Exception
java.lang.Exceptionprotected void receiveActionFromMind(MindAction a)
protected void cancelActionFromMind(MindAction a)
protected CompetencyManagerRule findMatch(MindAction a, java.util.ArrayList<CompetencyManagerRule> rulesToIgnore)
a - the mind action that we are checking matches forrulesToIgnore - the rules that should not be matched withpublic final void registerHandlers()
registerHandlers in class CmionComponentprotected java.io.InputStream openRulesFile(java.lang.String competencyManagerRulesFileName)
throws java.lang.Exception
java.lang.Exception