story.scheherazade.virgil
Class VirgilFileConfig

java.lang.Object
  extended by story.scheherazade.virgil.VirgilFileConfig
All Implemented Interfaces:
VirgilConfiguration

public class VirgilFileConfig
extends java.lang.Object
implements VirgilConfiguration

Interpret the contents of a Configuration file (i.e., keys and values read from a text file) into a VirgilConfiguration.


Constructor Summary
VirgilFileConfig(Configuration config)
           
 
Method Summary
 java.lang.String getInputStoryText()
          Get the text of the natural-language input story.
 VirgilParams getParams()
          Get miscellaneous Virgil parameters.
 PlannerRepository getPlannerRepository()
          Get the repository of Verbalizer planners for serializing the various symbols
 java.awt.Image getPortrait(java.lang.String key)
          Returns the portrait image for some key.
 StoryListener getStartupStoryListener()
          Get the StoryListner for the startup state of the story.
 boolean portraitSet(java.lang.String key)
          Return whether a portrait image is set for some key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirgilFileConfig

public VirgilFileConfig(Configuration config)
                 throws Scheherexception
Throws:
Scheherexception
Method Detail

getStartupStoryListener

public StoryListener getStartupStoryListener()
                                      throws Scheherexception
Description copied from interface: VirgilConfiguration
Get the StoryListner for the startup state of the story.

Specified by:
getStartupStoryListener in interface VirgilConfiguration
Throws:
Scheherexception

getInputStoryText

public java.lang.String getInputStoryText()
                                   throws Scheherexception
Get the text of the natural-language input story.

Specified by:
getInputStoryText in interface VirgilConfiguration
Throws:
Scheherexception

portraitSet

public boolean portraitSet(java.lang.String key)
Description copied from interface: VirgilConfiguration
Return whether a portrait image is set for some key.

Specified by:
portraitSet in interface VirgilConfiguration

getPortrait

public java.awt.Image getPortrait(java.lang.String key)
                           throws Scheherexception
Description copied from interface: VirgilConfiguration
Returns the portrait image for some key. Throws an exception if no such portrait is availalable.

Specified by:
getPortrait in interface VirgilConfiguration
Throws:
Scheherexception

getPlannerRepository

public PlannerRepository getPlannerRepository()
                                       throws Scheherexception
Description copied from interface: VirgilConfiguration
Get the repository of Verbalizer planners for serializing the various symbols

Specified by:
getPlannerRepository in interface VirgilConfiguration
Throws:
Scheherexception

getParams

public VirgilParams getParams()
                       throws Scheherexception
Description copied from interface: VirgilConfiguration
Get miscellaneous Virgil parameters.

Specified by:
getParams in interface VirgilConfiguration
Throws:
Scheherexception


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