story.scheherazade.parameters
Class StoryAssertion

java.lang.Object
  extended by story.scheherazade.parameters.SCHParameterSet
      extended by story.scheherazade.parameters.StoryAssertion
All Implemented Interfaces:
RenderableObject

public class StoryAssertion
extends SCHParameterSet
implements RenderableObject

A set of StoryAssertionParameters.


Field Summary
static StoryAssertion EMPTY
           
 
Constructor Summary
StoryAssertion()
          Constructor with no initial parameters.
StoryAssertion(StoryAssertionParameter param0)
          Constructor with an initial parameter.
StoryAssertion(StoryAssertionParameter param0, StoryAssertionParameter param1)
          Constructor with two initial parameters.
StoryAssertion(StoryAssertionParameter param0, StoryAssertionParameter param1, StoryAssertionParameter param2)
          Constructor with three initial parameters.
StoryAssertion(StoryAssertionParameter param0, StoryAssertionParameter param1, StoryAssertionParameter param2, StoryAssertionParameter param3)
          Constructor with four initial parameters.
StoryAssertion(StoryAssertionParameter param0, StoryAssertionParameter param1, StoryAssertionParameter param2, StoryAssertionParameter param3, StoryAssertionParameter param4)
          Constructor with five initial parameters.
StoryAssertion(StoryAssertionParameter param0, StoryAssertionParameter param1, StoryAssertionParameter param2, StoryAssertionParameter param3, StoryAssertionParameter param4, StoryAssertionParameter param5)
          Constructor with six initial parameters.
StoryAssertion(StoryAssertionParameter param0, StoryAssertionParameter param1, StoryAssertionParameter param2, StoryAssertionParameter param3, StoryAssertionParameter param4, StoryAssertionParameter param5, StoryAssertionParameter param6)
          Constructor with seven initial parameters.
 
Method Summary
 void addParameter(StoryAssertionParameter parameter)
           
 void addParameters(StoryAssertion otherParameters)
          Copy to the end of this StoryAssertion all the StoryAssertionParameters from another StoryAssertion
 SemanticRole duplicatedRole()
          Returns a SemanticRole that is represented by more than than one parameter, or null if every parameter has a unique role.
 void finalize()
          Finalize this StoryAssertion.
 StoryAssertionParameter getAgentAssertion()
          Returns the first assertion with the Agent/Mover semantic role, or null if none.
 java.util.Enumeration getAssertionsOfRole(SemanticRole role)
          Return an Enumeration over Integers representing the ordinal numbers of the assertions for a particular semantic role.
 SemanticRole getRoleOfAssertion(int i)
          Get the role of an assertion.
 boolean isFinalized()
          Determine whether this StoryAssertion is finalized.
 int numAssertionsOfRole(SemanticRole role)
          Counts how many of the parameters in the assertion are designated for a particular semantic role.
 
Methods inherited from class story.scheherazade.parameters.SCHParameterSet
addParameter, addParameters, getParameter, getParameters, newReferenceTable, numParameters, render, toCoreParameterSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface story.dbcore.misc.RenderableObject
render
 

Field Detail

EMPTY

public static StoryAssertion EMPTY
Constructor Detail

StoryAssertion

public StoryAssertion()
Constructor with no initial parameters.


StoryAssertion

public StoryAssertion(StoryAssertionParameter param0)
               throws Scheherexception
Constructor with an initial parameter.

Throws:
Scheherexception

StoryAssertion

public StoryAssertion(StoryAssertionParameter param0,
                      StoryAssertionParameter param1)
               throws Scheherexception
Constructor with two initial parameters.

Throws:
Scheherexception

StoryAssertion

public StoryAssertion(StoryAssertionParameter param0,
                      StoryAssertionParameter param1,
                      StoryAssertionParameter param2)
               throws Scheherexception
Constructor with three initial parameters.

Throws:
Scheherexception

StoryAssertion

public StoryAssertion(StoryAssertionParameter param0,
                      StoryAssertionParameter param1,
                      StoryAssertionParameter param2,
                      StoryAssertionParameter param3)
               throws Scheherexception
Constructor with four initial parameters.

Throws:
Scheherexception

StoryAssertion

public StoryAssertion(StoryAssertionParameter param0,
                      StoryAssertionParameter param1,
                      StoryAssertionParameter param2,
                      StoryAssertionParameter param3,
                      StoryAssertionParameter param4)
               throws Scheherexception
Constructor with five initial parameters.

Throws:
Scheherexception

StoryAssertion

public StoryAssertion(StoryAssertionParameter param0,
                      StoryAssertionParameter param1,
                      StoryAssertionParameter param2,
                      StoryAssertionParameter param3,
                      StoryAssertionParameter param4,
                      StoryAssertionParameter param5)
               throws Scheherexception
Constructor with six initial parameters.

Throws:
Scheherexception

StoryAssertion

public StoryAssertion(StoryAssertionParameter param0,
                      StoryAssertionParameter param1,
                      StoryAssertionParameter param2,
                      StoryAssertionParameter param3,
                      StoryAssertionParameter param4,
                      StoryAssertionParameter param5,
                      StoryAssertionParameter param6)
               throws Scheherexception
Constructor with seven initial parameters.

Throws:
Scheherexception
Method Detail

isFinalized

public boolean isFinalized()
Determine whether this StoryAssertion is finalized.


finalize

public void finalize()
Finalize this StoryAssertion. Any further attempt to alter it will throw an exception.

Overrides:
finalize in class java.lang.Object

addParameter

public void addParameter(StoryAssertionParameter parameter)
                  throws Scheherexception
Throws:
Scheherexception

addParameters

public void addParameters(StoryAssertion otherParameters)
                   throws Scheherexception
Copy to the end of this StoryAssertion all the StoryAssertionParameters from another StoryAssertion

Throws:
Scheherexception

numAssertionsOfRole

public int numAssertionsOfRole(SemanticRole role)
Counts how many of the parameters in the assertion are designated for a particular semantic role.


getRoleOfAssertion

public SemanticRole getRoleOfAssertion(int i)
                                throws Scheherexception
Get the role of an assertion.

Throws:
Scheherexception

getAssertionsOfRole

public java.util.Enumeration getAssertionsOfRole(SemanticRole role)
Return an Enumeration over Integers representing the ordinal numbers of the assertions for a particular semantic role.


getAgentAssertion

public StoryAssertionParameter getAgentAssertion()
                                          throws Scheherexception
Returns the first assertion with the Agent/Mover semantic role, or null if none.

Throws:
Scheherexception

duplicatedRole

public SemanticRole duplicatedRole()
                            throws Scheherexception
Returns a SemanticRole that is represented by more than than one parameter, or null if every parameter has a unique role.

Throws:
Scheherexception


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