story.scheherazade.misc
Class NamedNoun

java.lang.Object
  extended by story.scheherazade.misc.NamedNoun
All Implemented Interfaces:
InternableObject, RenderableObject, Predicate, ValidPredicate

public class NamedNoun
extends java.lang.Object
implements Predicate, ValidPredicate, RenderableObject, InternableObject

Class to join a ValidNoun with its corresponding name, which may be set as null, for anonymous nouns. This class is interned (it will not update if the noun name changes).


Constructor Summary
NamedNoun(ValidNoun noun, NounName name)
           
 
Method Summary
 SCHArguments getArgsOfRole(SemanticRole role)
           
 StoryAssertion getFrameDefinition()
           
 GenericScheherID getFrameType()
           
 NounName getName()
          Get the name, potentially null.
 ValidNoun getNoun()
          Get the validated noun.
 NounFlavor getNounFlavor()
           
 ValidNoun getNounPredicate()
           
 NounType getNounType()
           
 PredicateFlavor getPredicateFlavor()
           
 NodeAddress getPrototypeNode()
           
 SCHArguments getSCHArguments()
           
 SCHArguments getSCHArguments(boolean includeOverheadArguments)
           
 TimelineID getTimeline()
           
 NamedNoun intern()
           
 boolean isInterned()
           
 java.lang.StringBuffer render()
           
 NamedNoun unintern()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedNoun

public NamedNoun(ValidNoun noun,
                 NounName name)
          throws Scheherexception
Throws:
Scheherexception
Method Detail

getNoun

public ValidNoun getNoun()
Get the validated noun.


getNounPredicate

public ValidNoun getNounPredicate()

getNounType

public NounType getNounType()

getName

public NounName getName()
Get the name, potentially null.


getSCHArguments

public SCHArguments getSCHArguments(boolean includeOverheadArguments)
                             throws Scheherexception
Specified by:
getSCHArguments in interface ValidPredicate
Throws:
Scheherexception

getSCHArguments

public SCHArguments getSCHArguments()
                             throws Scheherexception
Specified by:
getSCHArguments in interface ValidPredicate
Throws:
Scheherexception

getNounFlavor

public NounFlavor getNounFlavor()

getPredicateFlavor

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

render

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

getPrototypeNode

public NodeAddress getPrototypeNode()
Specified by:
getPrototypeNode in interface ValidPredicate

getArgsOfRole

public SCHArguments getArgsOfRole(SemanticRole role)
                           throws Scheherexception
Specified by:
getArgsOfRole in interface ValidPredicate
Throws:
Scheherexception

getTimeline

public TimelineID getTimeline()
                       throws Scheherexception
Specified by:
getTimeline in interface ValidPredicate
Throws:
Scheherexception

getFrameDefinition

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

getFrameType

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

intern

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

unintern

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

isInterned

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


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