|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IThreadManager
The task of the thread manager is to set up story environments and characters so that it matches the description of the beginning of a thread. The initial design is that threads have preconditions, setting definitions and character goals. The thread manager should contain functionality to: - see if an thread is applicable - determine whether thread was already used - remember which thread is currently being used - setup the environment for the thread A question is how much of this should be implemented in Prolog, and how much in Java.
Nested Class Summary | |
---|---|
static class |
IThreadManager.StoryPhase
|
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 |
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. |
boolean |
startingThread()
Returns whether the thread manager is trying to start an thread at this point |
Methods inherited from interface vs.IAgentModule |
---|
getAgent |
Method Detail |
---|
void addThread(java.lang.String threadString)
void executeThread(PlotThread thread)
thread
- the thread to execute.PlotThread getCurrentThread()
void finishThread(PlotThread thread)
java.util.Vector<java.lang.String> getPossibleThreads()
java.util.Vector<Goal> getThreadGoals(java.lang.String characterURI)
characterURI
- the URI of the character to retrieve episodic goals for
boolean startingThread()
void assignResolutionGoal(Goal goal, PlotThread thread)
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 purposes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |