Package cmion.level3
Class CompetencyManagerRule
java.lang.Object
cmion.level3.CompetencyManagerRule
a competency manager rule maps a mind action and the state of available competencies
to a CompetencyExecutionPlan
-
Constructor Summary
ConstructorsConstructorDescriptionCompetencyManagerRule(Node domNode, IArchitecture architecture) create a new competency manager rule from a dom node (originating form the parsed competeny manager rules xml file). -
Method Summary
Modifier and TypeMethodDescriptionreturns the competency execution plan connected with this rulereturns the mind action connected with this ruleintreturns the specificity of this rule.
-
Constructor Details
-
CompetencyManagerRule
create a new competency manager rule from a dom node (originating form the parsed competeny manager rules xml file). An exception is thrown when xml is malformed- Throws:
Exception
-
-
Method Details
-
getExecutionPlan
returns the competency execution plan connected with this rule -
getMindAction
returns the mind action connected with this rule -
getSpecificity
public int getSpecificity()returns the specificity of this rule. A rule is more specific, the less "*" matches it has. We thus define maximum specificity as 0, and subtract 1 for every "*"
-