story.scheherazade.virgil
Class VirgilCommand

java.lang.Object
  extended by story.scheherazade.virgil.VirgilCommand
All Implemented Interfaces:
RenderableObject

public class VirgilCommand
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
VirgilCommand(VirgilCommandType pointType)
          Constructor with no arguments.
VirgilCommand(VirgilCommandType pointType, java.lang.Object argument0)
          Constructor with one argument.
VirgilCommand(VirgilCommandType pointType, java.lang.Object argument0, java.lang.Object argument1)
          Constructor with two arguments.
VirgilCommand(VirgilCommandType pointType, java.lang.Object argument0, java.lang.Object argument1, java.lang.Object argument2)
          Constructor with three arguments.
VirgilCommand(VirgilCommandType pointType, java.lang.Object argument0, java.lang.Object argument1, java.lang.Object argument2, java.lang.Object argument3)
          Constructor with four arguments.
VirgilCommand(VirgilCommandType 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.
 
Method Summary
 java.lang.Object getArgument(int position)
          Retrieve an argument.
 java.util.Vector getArguments()
          Retrieve the vector of arguments.
 VirgilCommandType getType()
          Retrieve the type of command.
 void insertArg(int position, java.lang.Object argument)
          Insert a new argument.
 int numArgs()
          Retrieve the number of arguments.
 java.lang.StringBuffer render()
          Renders the return type
 VirgilCommandType type()
          Returns the command type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirgilCommand

public VirgilCommand(VirgilCommandType pointType)
              throws Scheherexception
Constructor with no arguments.

Throws:
Scheherexception

VirgilCommand

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

Throws:
Scheherexception

VirgilCommand

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

Throws:
Scheherexception

VirgilCommand

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

Throws:
Scheherexception

VirgilCommand

public VirgilCommand(VirgilCommandType 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

VirgilCommand

public VirgilCommand(VirgilCommandType 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
Method Detail

numArgs

public int numArgs()
Retrieve the number of arguments.


getType

public VirgilCommandType getType()
Retrieve the type of command.


getArguments

public java.util.Vector 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 VirgilCommandType 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


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