story.scheherazade.admin
Class StoryPoint

java.lang.Object
  extended by story.scheherazade.admin.StoryPoint
All Implemented Interfaces:
RenderableObject

public class StoryPoint
extends java.lang.Object
implements RenderableObject

Represents a "command" to StoryListener, an assertion for agumenting a Narrative or a question about the Narrative to be answered.


Constructor Summary
StoryPoint(StoryPointType pointType)
          Constructor with no arguments.
StoryPoint(StoryPointType pointType, java.lang.Object argument0)
          Constructor with one argument.
StoryPoint(StoryPointType pointType, java.lang.Object argument0, java.lang.Object argument1)
          Constructor with two arguments.
StoryPoint(StoryPointType pointType, java.lang.Object argument0, java.lang.Object argument1, java.lang.Object argument2)
          Constructor with three arguments.
StoryPoint(StoryPointType pointType, java.lang.Object argument0, java.lang.Object argument1, java.lang.Object argument2, java.lang.Object argument3)
          Constructor with four arguments.
StoryPoint(StoryPointType pointType, java.lang.Object argument0, java.lang.Object argument1, java.lang.Object argument2, java.lang.Object argument3, java.lang.Object argument4)
          Constructor with five arguments.
StoryPoint(StoryPointType pointType, java.lang.Object argument0, java.lang.Object argument1, java.lang.Object argument2, java.lang.Object argument3, java.lang.Object argument4, java.lang.Object argument5)
          Constructor with six arguments.
StoryPoint(StoryPointType pointType, java.lang.Object argument0, java.lang.Object argument1, java.lang.Object argument2, java.lang.Object argument3, java.lang.Object argument4, java.lang.Object argument5, java.lang.Object argument6, java.lang.Object argument7, java.lang.Object argument8, java.lang.Object argument9)
          Constructor with ten arguments.
StoryPoint(StoryPointType pointType, SCHArguments args)
          Constructor with vector of arguments
StoryPoint(StoryPointType pointType, java.util.Vector args)
          Constructor with vector of arguments
 
Method Summary
 java.lang.Object getArgument(int position)
          Retrieve an argument.
 ImmutableVector getArguments()
          Retrieve the vector of arguments.
 StoryPointType getType()
          Retrieve the type of command.
 void insertArg(int position, java.lang.Object argument)
          Insert a new argument.
 StoryPoint intern()
           
 int numArgs()
          Retrieve the number of arguments.
 java.lang.StringBuffer render()
          Renders the return type
 StoryPointType type()
          Returns the command type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoryPoint

public StoryPoint(StoryPointType pointType)
           throws Scheherexception
Constructor with no arguments.

Throws:
Scheherexception

StoryPoint

public StoryPoint(StoryPointType pointType,
                  SCHArguments args)
           throws Scheherexception
Constructor with vector of arguments

Throws:
Scheherexception

StoryPoint

public StoryPoint(StoryPointType pointType,
                  java.util.Vector args)
           throws Scheherexception
Constructor with vector of arguments

Throws:
Scheherexception

StoryPoint

public StoryPoint(StoryPointType pointType,
                  java.lang.Object argument0)
           throws Scheherexception
Constructor with one argument.

Throws:
Scheherexception

StoryPoint

public StoryPoint(StoryPointType pointType,
                  java.lang.Object argument0,
                  java.lang.Object argument1)
           throws Scheherexception
Constructor with two arguments.

Throws:
Scheherexception

StoryPoint

public StoryPoint(StoryPointType pointType,
                  java.lang.Object argument0,
                  java.lang.Object argument1,
                  java.lang.Object argument2)
           throws Scheherexception
Constructor with three arguments.

Throws:
Scheherexception

StoryPoint

public StoryPoint(StoryPointType pointType,
                  java.lang.Object argument0,
                  java.lang.Object argument1,
                  java.lang.Object argument2,
                  java.lang.Object argument3)
           throws Scheherexception
Constructor with four arguments.

Throws:
Scheherexception

StoryPoint

public StoryPoint(StoryPointType pointType,
                  java.lang.Object argument0,
                  java.lang.Object argument1,
                  java.lang.Object argument2,
                  java.lang.Object argument3,
                  java.lang.Object argument4)
           throws Scheherexception
Constructor with five arguments.

Throws:
Scheherexception

StoryPoint

public StoryPoint(StoryPointType pointType,
                  java.lang.Object argument0,
                  java.lang.Object argument1,
                  java.lang.Object argument2,
                  java.lang.Object argument3,
                  java.lang.Object argument4,
                  java.lang.Object argument5)
           throws Scheherexception
Constructor with six arguments.

Throws:
Scheherexception

StoryPoint

public StoryPoint(StoryPointType pointType,
                  java.lang.Object argument0,
                  java.lang.Object argument1,
                  java.lang.Object argument2,
                  java.lang.Object argument3,
                  java.lang.Object argument4,
                  java.lang.Object argument5,
                  java.lang.Object argument6,
                  java.lang.Object argument7,
                  java.lang.Object argument8,
                  java.lang.Object argument9)
           throws Scheherexception
Constructor with ten arguments.

Throws:
Scheherexception
Method Detail

numArgs

public int numArgs()
Retrieve the number of arguments.


getType

public StoryPointType getType()
Retrieve the type of command.


getArguments

public ImmutableVector getArguments()
Retrieve the vector of arguments.


insertArg

public void insertArg(int position,
                      java.lang.Object argument)
               throws Scheherexception
Insert a new argument.

Throws:
Scheherexception

getArgument

public java.lang.Object getArgument(int position)
                             throws Scheherexception
Retrieve an argument.

Throws:
Scheherexception

type

public StoryPointType type()
Returns the command type.


render

public java.lang.StringBuffer render()
                              throws Scheherexception
Renders the return type

Specified by:
render in interface RenderableObject
Throws:
Scheherexception

intern

public StoryPoint intern()
                  throws Scheherexception
Throws:
Scheherexception


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