story.scheherazade.parameters
Class ValidNounParameter

java.lang.Object
  extended by story.scheherazade.parameters.SCHParameter
      extended by story.scheherazade.parameters.StoryAssertionParameter
          extended by story.scheherazade.parameters.ValidNounParameter

public class ValidNounParameter
extends StoryAssertionParameter

An SCHParameter which means "require a Noun."


Field Summary
static ValidNounParameter REALITY_AGENT_CHAR
           
static ValidNounParameter REALITY_EXPERIENCER_CHAR
           
 
Constructor Summary
ValidNounParameter(SemanticRole role, TimelineID timeline, boolean type, NounFlavor onlyAllowedFlavor)
           
ValidNounParameter(SemanticRole role, TimelineID timeline, boolean type, NounFlavorSet allowedFlavors)
          Constructor to match any noun or noun type.
 
Method Summary
 boolean allowsFlavor(NounFlavor flavor)
           
 NounFlavorSet getAllowedFlavors()
           
 boolean getMatchingType()
           
 SemanticRole getRole()
          The semantic role of this parameter in the overall assertion.
 SCHParameter makeCopy()
          Make a copy of the Parameter at the level of the concretizing class
 SCHReferenceReqSet referenceRequirements()
          Each concretizing class needs to provide a ReferenceReqSet of all the references which must be set prior to the parameter's evaluation.
 SCHVariableType referenceType()
           
 java.lang.StringBuffer specificRender()
          Each concretizing class needs to provide a render function.
 
Methods inherited from class story.scheherazade.parameters.SCHParameter
makeClone, render
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REALITY_AGENT_CHAR

public static ValidNounParameter REALITY_AGENT_CHAR

REALITY_EXPERIENCER_CHAR

public static ValidNounParameter REALITY_EXPERIENCER_CHAR
Constructor Detail

ValidNounParameter

public ValidNounParameter(SemanticRole role,
                          TimelineID timeline,
                          boolean type,
                          NounFlavorSet allowedFlavors)
                   throws Scheherexception
Constructor to match any noun or noun type.

Parameters:
type - Set true to match a type; false to match a defined noun.
Throws:
Scheherexception

ValidNounParameter

public ValidNounParameter(SemanticRole role,
                          TimelineID timeline,
                          boolean type,
                          NounFlavor onlyAllowedFlavor)
                   throws Scheherexception
Throws:
Scheherexception
Method Detail

getRole

public SemanticRole getRole()
Description copied from class: StoryAssertionParameter
The semantic role of this parameter in the overall assertion.

Specified by:
getRole in class StoryAssertionParameter

getMatchingType

public boolean getMatchingType()

referenceRequirements

public SCHReferenceReqSet referenceRequirements()
Description copied from class: SCHParameter
Each concretizing class needs to provide a ReferenceReqSet of all the references which must be set prior to the parameter's evaluation.

Specified by:
referenceRequirements in class SCHParameter

specificRender

public java.lang.StringBuffer specificRender()
                                      throws Scheherexception
Description copied from class: SCHParameter
Each concretizing class needs to provide a render function. It is encapsulated inside this abstract class's render() so that we can render the outgoing reference, if any.

Specified by:
specificRender in class SCHParameter
Throws:
Scheherexception

makeCopy

public SCHParameter makeCopy()
Description copied from class: SCHParameter
Make a copy of the Parameter at the level of the concretizing class

Specified by:
makeCopy in class SCHParameter

referenceType

public SCHVariableType referenceType()
Specified by:
referenceType in class StoryAssertionParameter

getAllowedFlavors

public NounFlavorSet getAllowedFlavors()

allowsFlavor

public boolean allowsFlavor(NounFlavor flavor)


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