story.scheherazade.verbalizer
Class VerbalizeState

java.lang.Object
  extended by story.scheherazade.verbalizer.VerbalizeState
All Implemented Interfaces:
DiscourseCommand, DiscourseExecutable

public class VerbalizeState
extends java.lang.Object
implements DiscourseCommand


Constructor Summary
VerbalizeState(TimelineID timeline, StateTime time, VerbTense tense, int scope, boolean encapsulateInSentence, Conditionality conditionality, boolean conditional)
          Constructor.
 
Method Summary
 Verbalization execute(StoryInterpreter story, Style style, VerbalizerState state)
           
 void intern()
           
 java.lang.StringBuffer render()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.