story.scheherazade.verbalizer
Class VerbalizeClause
java.lang.Object
story.scheherazade.verbalizer.VerbalizeClause
- All Implemented Interfaces:
- DiscourseCommand, DiscourseExecutable
public class VerbalizeClause
- extends java.lang.Object
- implements DiscourseCommand
Indicate that a VerbalizeProgram should be verbalized into a single
clause, which is useful for situations where proper linguistic
"scoping" is required (e.g., proper placement of commas in
lists).
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VerbalizeClause
public VerbalizeClause(DiscourseExecutable plan,
java.lang.String source)
throws Scheherexception
- Throws:
Scheherexception
VerbalizeClause
public VerbalizeClause(DiscourseExecutable plan,
java.lang.String source,
boolean spacesBetweenWords)
throws Scheherexception
- Throws:
Scheherexception
VerbalizeClause
public VerbalizeClause(DiscourseCommand command,
java.lang.String source)
throws Scheherexception
- Throws:
Scheherexception
render
public java.lang.StringBuffer render()
throws Scheherexception
- Specified by:
render
in interface DiscourseCommand
- Specified by:
render
in interface DiscourseExecutable
- Throws:
Scheherexception
getPlan
public DiscourseExecutable getPlan()
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.