|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectteamSpace.structure.ResultLibrary
This class represents the results and methods for extracting information about them.
The results are actually kept by the Rete
rule engine. So this class also
serves as an interface to this rule engine.
Constructor Summary | |
ResultLibrary(Rete ruleEngine)
The constructor |
Method Summary | |
void |
add(java.lang.String construct)
This method add a construct to the rule engine |
boolean |
addProcessedActions(java.util.ArrayList actions)
This method adds processed actions to the rule engine. |
boolean |
addProcessedPSMs(java.util.ArrayList psms)
This method adds composed PSMs to the rule engine. |
java.util.ArrayList |
getActionsReadyToExecute()
This method return a list of the actions that are ready to be executed. |
java.util.ArrayList |
getComposedPSMs()
This method returns a list of the composed PSMs. |
java.util.ArrayList |
getExecutedActions()
This method return a list of the executed actions. |
java.util.ArrayList |
getPSMsReadyToCompose()
This method returns a list of PSMs that are ready to be composed. |
boolean |
initialize()
The method initializes the result library by adding templates for how constructs (facts) should be represented in the rule base. |
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 ResultLibrary(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 addProcessedActions(java.util.ArrayList actions)
actions
- The actions to be added, listed as TSAction
objects
true
if all actions are successfully added and false
if notpublic boolean addProcessedPSMs(java.util.ArrayList psms)
psms
- The PSMs to be added, listed as TSPSM
objects
true
if all PSMs are successfully added and false
if notpublic java.util.ArrayList getExecutedActions()
TSAction
objectspublic java.util.ArrayList getComposedPSMs()
TSPSM
objectspublic java.util.ArrayList getActionsReadyToExecute()
TSAction
objectspublic java.util.ArrayList getPSMsReadyToCompose()
TSPSM
objectspublic boolean initialize()
true
if the templates are successfully added and false
if not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |