story.scheherazade.elements
Class ValidNoun

java.lang.Object
  extended by story.scheherazade.elements.Noun
      extended by story.scheherazade.elements.ValidNoun
All Implemented Interfaces:
InternableObject, CloneableObject, RenderableObject, Predicate, ValidPredicate

public class ValidNoun
extends Noun
implements RenderableObject, ValidPredicate, InternableObject

A Noun that has been shown to be valid within the context of an actual Narrative.


Constructor Summary
ValidNoun(Timeline timelineHandler, NodeAddress timeline, NounType arguedNounType, SCHArguments arguments)
           
 
Method Summary
 SCHArguments getArgsOfRole(SemanticRole role)
          Get only those SCHArguments which satisfy a particular SemanticRole.
 StoryAssertion getFrameDefinition()
           
 GenericScheherID getFrameType()
           
 CharacterGender getGender()
          Get the gender of the noun.
static int getOverheadArguments(NounFlavor flavor)
           
 PredicateFlavor getPredicateFlavor()
           
 NodeAddress getPrototypeNode()
          Get the NodeAddress of the declaration (the prototype node) for the noun type.
 SCHArguments getSCHArguments()
          Get the arguments used to instantiate this Noun
 SCHArguments getSCHArguments(boolean includeOverheadArguments)
          Get the arguments used to instantiate this Noun
 TimelineID getTimeline()
          Get the ID of the Timeline in whose scope this Noun was deemed valid.
 NounType getType()
          Get the ID of the type of noun.
 ValidNoun intern()
           
 boolean isInterned()
           
 ValidNoun makeClone()
           
 java.lang.StringBuffer render()
           
 ValidNoun unintern()
           
 
Methods inherited from class story.scheherazade.elements.Noun
getNounFlavor, getNounType, render
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidNoun

public ValidNoun(Timeline timelineHandler,
                 NodeAddress timeline,
                 NounType arguedNounType,
                 SCHArguments arguments)
          throws Scheherexception
Throws:
Scheherexception
Method Detail

getOverheadArguments

public static int getOverheadArguments(NounFlavor flavor)
                                throws Scheherexception
Throws:
Scheherexception

getGender

public CharacterGender getGender()
                          throws Scheherexception
Get the gender of the noun.

Throws:
Scheherexception

getPrototypeNode

public NodeAddress getPrototypeNode()
Get the NodeAddress of the declaration (the prototype node) for the noun type.

Specified by:
getPrototypeNode in interface ValidPredicate

getSCHArguments

public SCHArguments getSCHArguments(boolean includeOverheadArguments)
                             throws Scheherexception
Get the arguments used to instantiate this Noun

Specified by:
getSCHArguments in interface ValidPredicate
Parameters:
includeOverheadArguments -
Throws:
Scheherexception

getSCHArguments

public SCHArguments getSCHArguments()
                             throws Scheherexception
Get the arguments used to instantiate this Noun

Specified by:
getSCHArguments in interface ValidPredicate
Overrides:
getSCHArguments in class Noun
Throws:
Scheherexception

render

public java.lang.StringBuffer render()
                              throws Scheherexception
Specified by:
render in interface RenderableObject
Specified by:
render in interface ValidPredicate
Overrides:
render in class Noun
Throws:
Scheherexception

getType

public NounType getType()
                 throws Scheherexception
Get the ID of the type of noun.

Overrides:
getType in class Noun
Throws:
Scheherexception

getTimeline

public TimelineID getTimeline()
                       throws Scheherexception
Get the ID of the Timeline in whose scope this Noun was deemed valid.

Specified by:
getTimeline in interface ValidPredicate
Throws:
Scheherexception

getPredicateFlavor

public PredicateFlavor getPredicateFlavor()
Specified by:
getPredicateFlavor in interface Predicate
Specified by:
getPredicateFlavor in interface ValidPredicate
Overrides:
getPredicateFlavor in class Noun

getArgsOfRole

public SCHArguments getArgsOfRole(SemanticRole role)
                           throws Scheherexception
Get only those SCHArguments which satisfy a particular SemanticRole.

Specified by:
getArgsOfRole in interface ValidPredicate
Throws:
Scheherexception

intern

public ValidNoun intern()
                 throws Scheherexception
Specified by:
intern in interface InternableObject
Specified by:
intern in interface ValidPredicate
Throws:
Scheherexception

unintern

public ValidNoun unintern()
                   throws Scheherexception
Specified by:
unintern in interface InternableObject
Throws:
Scheherexception

isInterned

public boolean isInterned()
Specified by:
isInterned in interface InternableObject

getFrameDefinition

public StoryAssertion getFrameDefinition()
Specified by:
getFrameDefinition in interface ValidPredicate

getFrameType

public GenericScheherID getFrameType()
                              throws Scheherexception
Specified by:
getFrameType in interface ValidPredicate
Throws:
Scheherexception

makeClone

public ValidNoun makeClone()
                    throws Scheherexception
Specified by:
makeClone in interface CloneableObject
Overrides:
makeClone in class Noun
Throws:
Scheherexception


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