|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectteamSpace.structure.GoalStack
This class contains the goal stack - meaning the goals that are readily achieved.
These goals are actually contained in the Rete
rule engine. So this
class is only an interface to this rule engine.
Constructor Summary | |
GoalStack(Rete ruleEngine)
|
Method Summary | |
java.util.ArrayList |
getAchievedGoals()
This method returns an ArrayList of achieved goals |
java.lang.String |
getGoalOutput(java.lang.String goalName)
This method returns the output of a goal. |
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 GoalStack(Rete ruleEngine)
Method Detail |
public void setFileWriter(FileWriter fileWriter)
fileWriter
- Reference to the FileWriter used by all agents working on the problem of one certain TRpublic java.util.ArrayList getAchievedGoals()
public java.lang.String getGoalOutput(java.lang.String goalName)
goalName
- The name of the goal
String
, if the goal is not achieved an
empty String
is returned
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |