story.scheherazade.elements
Class ValidCondition

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

public class ValidCondition
extends Condition
implements RenderableObject, ValidPredicate, InternableObject, CloneableObject

A Condition that has been shown to be valid within the context of an actual Narrative. Construct a ValidCondition through a Narrative.


Field Summary
static int OVERHEAD_ARGUMENTS
           
 
Constructor Summary
ValidCondition(Timeline timelineHandler, NodeAddress timeline, ConditionType conditionType, SCHArguments arguments, int truthDegree, PredicateMode mode)
           
 
Method Summary
 SCHArguments getArgsOfRole(SemanticRole role)
          Get only those SCHArguments which satisfy a particular SemanticRole.
 java.util.Vector<SCHArgumentWithRole> getArgsWithRoles()
          Gets SCHArguments, without overhead arguments, along with their roles.
 StoryAssertion getFrameDefinition()
           
 GenericScheherID getFrameType()
           
 PredicateFlavor getPredicateFlavor()
           
 NodeAddress getPrototypeNode()
          Get the NodeAddress of the declaration (the prototype node) for the condition type.
 SCHArguments getSCHArguments()
          Get the arguments used to instantiate this Condition
 SCHArguments getSCHArguments(boolean includeOverheadArguments)
          Get the arguments used to instantiate this Condition
 TimelineID getTimeline()
          Get the ID of the Timeline in whose scope this Condition was deemed valid.
 ValidCondition intern()
           
 boolean isInterned()
           
 ValidCondition makeClone()
           
 java.lang.StringBuffer render()
           
 ValidCondition unintern()
           
 
Methods inherited from class story.scheherazade.elements.Condition
equals, getMode, getTruthDegree, getType, render
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OVERHEAD_ARGUMENTS

public static final int OVERHEAD_ARGUMENTS
See Also:
Constant Field Values
Constructor Detail

ValidCondition

public ValidCondition(Timeline timelineHandler,
                      NodeAddress timeline,
                      ConditionType conditionType,
                      SCHArguments arguments,
                      int truthDegree,
                      PredicateMode mode)
               throws Scheherexception
Throws:
Scheherexception
Method Detail

getPrototypeNode

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

Specified by:
getPrototypeNode in interface ValidPredicate

getSCHArguments

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

Specified by:
getSCHArguments in interface ValidPredicate
Throws:
Scheherexception

getSCHArguments

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

Specified by:
getSCHArguments in interface ValidPredicate
Overrides:
getSCHArguments in class Condition
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 Condition
Throws:
Scheherexception

getTimeline

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

Specified by:
getTimeline in interface ValidPredicate
Throws:
Scheherexception

getArgsWithRoles

public java.util.Vector<SCHArgumentWithRole> getArgsWithRoles()
                                                       throws Scheherexception
Gets SCHArguments, without overhead arguments, along with their roles.

Throws:
Scheherexception

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

getPredicateFlavor

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

intern

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

unintern

public ValidCondition 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()
Specified by:
getFrameType in interface ValidPredicate

makeClone

public ValidCondition makeClone()
                         throws Scheherexception
Specified by:
makeClone in interface CloneableObject
Overrides:
makeClone in class Condition
Throws:
Scheherexception


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