|
||||||||||
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 IThreadManager
public void addThread(java.lang.String threadString)
IThreadManager
addThread
in interface IThreadManager
public void executeThread(PlotThread thread)
IThreadManager
executeThread
in interface IThreadManager
thread
- the thread to execute.public void setPhase(IThreadManager.StoryPhase phase)
public void assignResolutionGoal(Goal goal, PlotThread thread)
assignResolutionGoal
in interface IThreadManager
goal
- 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 IAgentModule
public PlotThread getCurrentThread()
IThreadManager
getCurrentThread
in interface IThreadManager
public java.util.Vector<java.lang.String> getPossibleThreads()
IThreadManager
getPossibleThreads
in interface IThreadManager
public java.util.Vector<Goal> getThreadGoals(java.lang.String characterURI)
IThreadManager
getThreadGoals
in interface IThreadManager
characterURI
- 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 |