story.scheherazade.verbalizer
Class VerbalizeParagraph

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

public class VerbalizeParagraph
extends java.lang.Object
implements DiscourseCommand

Indicate that a VerbalizeProgram belongs to a single paragraph. Will indent the verbalization (if desired) and follow it with a newline and a blank line.


Constructor Summary
VerbalizeParagraph(DiscourseCommand command, boolean indent)
           
VerbalizeParagraph(DiscoursePlan plan, boolean indent)
           
 
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

VerbalizeParagraph

public VerbalizeParagraph(DiscoursePlan plan,
                          boolean indent)
                   throws Scheherexception
Throws:
Scheherexception

VerbalizeParagraph

public VerbalizeParagraph(DiscourseCommand command,
                          boolean indent)
                   throws Scheherexception
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.