story.scheherazade.verbalizer
Class VerbalizeState
java.lang.Object
story.scheherazade.verbalizer.VerbalizeState
- All Implemented Interfaces:
- DiscourseCommand, DiscourseExecutable
public class VerbalizeState
- extends java.lang.Object
- implements DiscourseCommand
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VerbalizeState
public VerbalizeState(TimelineID timeline,
StateTime time,
VerbTense tense,
int scope,
boolean encapsulateInSentence,
Conditionality conditionality,
boolean conditional)
throws Scheherexception
- Constructor.
- Parameters:
timeline
- The timeline of the state to be verbalized.state
- The time index of the state to be verbalized.tense
- The desired verb tense.scope
- Set -1 to only verbalize the behaviors, goals and
other facets that are directly attached to the state. Set 1 to
only verbalize facets that are "inferred" to apply, e.e.,g
persistent ones that began at a previous time. Set 0 to
verbalize both.
- Throws:
Scheherexception
render
public java.lang.StringBuffer render()
throws Scheherexception
- Specified by:
render
in interface DiscourseCommand
- Specified by:
render
in interface DiscourseExecutable
- Throws:
Scheherexception
execute
public Verbalization execute(StoryInterpreter story,
Style style,
VerbalizerState state)
throws Scheherexception
- Specified by:
execute
in interface DiscourseCommand
- Throws:
Scheherexception
intern
public void intern()
- Specified by:
intern
in interface DiscourseCommand
- Specified by:
intern
in interface DiscourseExecutable
Copyright © 2011 David K. Elson. All Rights Reserved.