story.scheherazade.verbalizer
Class UnsetVerbalizerState

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

public class UnsetVerbalizerState
extends java.lang.Object
implements DiscourseStateCommand

Discourse command that adds nothing to the output Discourse but unsets a key in the VerbalizerState.


Constructor Summary
UnsetVerbalizerState(java.lang.String key)
           
 
Method Summary
 Verbalization execute(StoryInterpreter story, Style style, VerbalizerState state)
           
 java.lang.String getKey()
           
 void intern()
           
 java.lang.StringBuffer render()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnsetVerbalizerState

public UnsetVerbalizerState(java.lang.String key)
                     throws Scheherexception
Throws:
Scheherexception
Method Detail

render

public java.lang.StringBuffer render()
Specified by:
render in interface DiscourseCommand
Specified by:
render in interface DiscourseExecutable

getKey

public java.lang.String getKey()

execute

public Verbalization execute(StoryInterpreter story,
                             Style style,
                             VerbalizerState state)
                      throws Scheherexception
Specified by:
execute in interface DiscourseCommand
Specified by:
execute in interface DiscourseStateCommand
Throws:
Scheherexception

intern

public void intern()
Specified by:
intern in interface DiscourseCommand
Specified by:
intern in interface DiscourseExecutable
Specified by:
intern in interface DiscourseStateCommand


Copyright © 2011 David K. Elson. All Rights Reserved.