|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.scheherazade.admin.StoryListener
public class StoryListener
A listener for stories that interprets order-sensitive commands -- the sjuzhet of a story -- and maintains a Narrative object to represent the story graph as it is built.
Constructor Summary | |
---|---|
StoryListener(java.io.BufferedReader reader)
Constructor that takes a BufferedReader of Scheherazade output. |
|
StoryListener(NarrativeID title)
|
|
StoryListener(NarrativeID title,
StoryTelling coreStory,
ProgressNotifier progressNotifier)
|
Method Summary | |
---|---|
HistoryFrameID |
getCurrentStateID()
Get the HistoryFrameID of the current state |
StoryPoint |
getRedoableOperation()
Returns the type of StoryPoint associated with the subsequent recent state-changing operation in the redo stack. |
StoryTelling |
getTelling()
Return the StoryTelling heard thus far |
NarrativeID |
getTitle()
|
StoryPoint |
getUndoableOperation()
Returns the type of StoryPoint associated with the most recent state-changing operation, i.e., the operation at the top of the undo stack. |
java.lang.Object |
hear(StoryPoint storyPoint)
|
void |
hear(StoryTelling telling)
|
java.lang.StringBuffer |
printState()
Render the state of the underlying db-core. |
java.lang.StringBuffer |
renderNarrative()
Render the current state of the Narrative |
void |
shell()
For testing ONLY: start a db-core shell |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StoryListener(NarrativeID title) throws Scheherexception
Scheherexception
public StoryListener(NarrativeID title, StoryTelling coreStory, ProgressNotifier progressNotifier) throws Scheherexception
coreStory
- StoryPoints to interpret initially, and not
represent on the undo stack. In particular, initial knowledge
base setup instructions prior to user interaction. Can be null.progressNotifier
- Notifier for progress in interpreting
coreStory. Every time a StoryPoint is interpreted, progress
toward interpreting all StoryPoints is pushed out to this
notifier. Can be null.
Scheherexception
public StoryListener(java.io.BufferedReader reader) throws Scheherexception
Scheherexception
Method Detail |
---|
public void hear(StoryTelling telling) throws Scheherexception
Scheherexception
public java.lang.Object hear(StoryPoint storyPoint) throws Scheherexception
hear
in interface HearsStoryPoints
Scheherexception
public HistoryFrameID getCurrentStateID()
public StoryPoint getUndoableOperation()
public StoryPoint getRedoableOperation()
public java.lang.StringBuffer printState() throws Scheherexception
Scheherexception
public java.lang.StringBuffer renderNarrative() throws Scheherexception
Scheherexception
public StoryTelling getTelling() throws Scheherexception
Scheherexception
public NarrativeID getTitle()
public void shell() throws Scheherexception
Scheherexception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |