|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectteamSpace.structure.RuleBase
This class reprsents the Rule Base of the TEAM SPACE structure and is an interface to the rules in the rule engine.
Constructor Summary | |
RuleBase(Rete ruleEngine)
The constructor. |
Method Summary | |
void |
add(java.lang.String construct)
This method add a construct to the rule engine |
void |
executeRules()
The method executes the rules in the ruleengine |
boolean |
initialize(PlanLibrary planLib)
This method starts the initialization process of the rule base |
boolean |
initializeAction(java.lang.String actionName)
The method translate information about an action from the tmst into rules used by the rule-engine part of the team-space. |
boolean |
initializePSM(java.lang.String psmName)
The method translate information about a psm from the tmst into rules used by the rule-engine part of the team-space. |
boolean |
initializeTask(java.lang.String taskName)
The method translate information about a task from the tmst into rules used by the rule-engine part of the team-space. |
void |
setFileWriter(FileWriter fileWriter)
This method sets the FileWriter that handles printing the output of the problem solving steps to a file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RuleBase(Rete ruleEngine)
ruleEngine
- The rule engineMethod Detail |
public void setFileWriter(FileWriter fileWriter)
fileWriter
- Reference to the FileWriter used by all agents working on the problem of one certain TRpublic void add(java.lang.String construct) throws JessException
construct
- The construct to be added
JessException
public boolean initialize(PlanLibrary planLib)
planLib
- A link to the plan librarypublic boolean initializeTask(java.lang.String taskName) throws JessException
taskName
- - The name of the task
true
if everything went ok and false
if not
JessException
public boolean initializePSM(java.lang.String psmName) throws JessException
psmName
- - The name of the psm
true
if everything went ok and false
if not
JessException
public boolean initializeAction(java.lang.String actionName) throws JessException
actionName
- - The name of the action
true
if everything went ok and false
if not
JessException
public void executeRules()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |