story.scheherazade.elements
Class ValidAction

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

public class ValidAction
extends Action
implements RenderableObject, ValidPredicate, InternableObject, CloneableObject

An Action that has been shown to be valid within the context of an actual Narrative. Construct an Action through a Narrative.


Field Summary
static int OVERHEAD_ARGUMENTS
           
 
Constructor Summary
ValidAction(Timeline timelineHandler, NodeAddress timeline, ActionType actionType, SCHArguments arguments, int truthDegree, PredicateMode mode)
           
 
Method Summary
 SCHArguments getArgsOfRole(SemanticRole role)
          Get only those SCHArguments which satisfy a particular SemanticRole.
 StoryAssertion getFrameDefinition()
           
 GenericScheherID getFrameType()
           
 PredicateFlavor getPredicateFlavor()
           
 NodeAddress getPrototypeNode()
          Get the NodeAddress of the declaration (the prototype node) for the action type.
 SCHArguments getSCHArguments()
          Get the arguments used to instantiate this Action
 SCHArguments getSCHArguments(boolean includeOverheadArguments)
          Get the arguments used to instantiate this Action
 TimelineID getTimeline()
          Get the ID of the Timeline in whose scope this Action was deemed valid.
 ValidAction intern()
           
 boolean isInterned()
           
 ValidAction makeClone()
           
 java.lang.StringBuffer render()
           
 ValidAction unintern()
           
 
Methods inherited from class story.scheherazade.elements.Action
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

ValidAction

public ValidAction(Timeline timelineHandler,
                   NodeAddress timeline,
                   ActionType actionType,
                   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 action type.

Specified by:
getPrototypeNode in interface ValidPredicate

getSCHArguments

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

Specified by:
getSCHArguments in interface ValidPredicate
Throws:
Scheherexception

getSCHArguments

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

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

getTimeline

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

Specified by:
getTimeline in interface ValidPredicate
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 Action

intern

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

unintern

public ValidAction 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 ValidAction makeClone()
                      throws Scheherexception
Specified by:
makeClone in interface CloneableObject
Overrides:
makeClone in class Action
Throws:
Scheherexception


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