|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvs.plotagent.BasicThreadManager
public class BasicThreadManager
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface vs.plotagent.IThreadManager |
|---|
IThreadManager.StoryPhase |
| Constructor Summary | |
|---|---|
BasicThreadManager(IPlotAgent owner)
|
|
| Method Summary | |
|---|---|
void |
addThread(java.lang.String threadString)
Tries to start the given thread. |
void |
assignResolutionGoal(Goal goal,
PlotThread thread)
Assigns a resolution goal to a character. |
void |
executeThread(PlotThread thread)
Executes the thread, meaning that setting and characters are set up. |
void |
finishThread(PlotThread thread)
Signals that a thread is finished (i.e. that a character has achieved his resolution goal |
IAgent |
getAgent()
To get the Agent |
PlotThread |
getCurrentThread()
Determines what the current thread is |
java.util.Vector<java.lang.String> |
getPossibleThreads()
Determines all possible threads and returns their Prolog identifier strings |
java.util.Vector<Goal> |
getThreadGoals(java.lang.String characterURI)
Retrieves the episodic goals, defined for certain character, if any. |
void |
setPhase(IThreadManager.StoryPhase phase)
|
boolean |
startingThread()
Returns whether the thread manager is trying to start an thread at this point |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicThreadManager(IPlotAgent owner)
| Method Detail |
|---|
public void finishThread(PlotThread thread)
finishThread in interface IThreadManagerpublic void addThread(java.lang.String threadString)
IThreadManager
addThread in interface IThreadManagerpublic void executeThread(PlotThread thread)
IThreadManager
executeThread in interface IThreadManagerthread - the thread to execute.public void setPhase(IThreadManager.StoryPhase phase)
public void assignResolutionGoal(Goal goal,
PlotThread thread)
assignResolutionGoal in interface IThreadManagergoal - the goal to assign to the character (the character is embedded in the goal)thread - the plot thread this assignment comes from; used for logging purposespublic IAgent getAgent()
IAgentModule
getAgent in interface IAgentModulepublic PlotThread getCurrentThread()
IThreadManager
getCurrentThread in interface IThreadManagerpublic java.util.Vector<java.lang.String> getPossibleThreads()
IThreadManager
getPossibleThreads in interface IThreadManagerpublic java.util.Vector<Goal> getThreadGoals(java.lang.String characterURI)
IThreadManager
getThreadGoals in interface IThreadManagercharacterURI - the URI of the character to retrieve episodic goals for
public boolean startingThread()
IThreadManager
startingThread in interface IThreadManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||