Package cmion.level3

Class CompetencyManager

java.lang.Object
ion.Meta.Element
cmion.architecture.CmionComponent
cmion.level3.CompetencyManager

public class CompetencyManager extends CmionComponent
the competency manager receives actions from the mind for execution and decomposes them into a plan of competencies for execution
  • Constructor Details

  • Method Details

    • receiveActionFromMind

      protected void receiveActionFromMind(MindAction a)
      method that is called by the event handler whenever the mind initiates a new action
    • cancelActionFromMind

      protected void cancelActionFromMind(MindAction a)
      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 for
      rulesToIgnore - 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:
      registerHandlers in class CmionComponent
    • openRulesFile

      protected InputStream openRulesFile(String competencyManagerRulesFileName) throws Exception
      Throws:
      Exception