A C D E G H I L M N O P R S T V

A

AdaptedStringTokenizer - class AdaptedStringTokenizer.
The AdaptedStringTokenizer class extends StringTokenizer to allow the user to use strings as tokens.
AdaptedStringTokenizer(String, String[]) - Constructor for class AdaptedStringTokenizer
Constructs a tokenization of the given string.
AdaptedStringTokenizer(String, String[], boolean) - Constructor for class AdaptedStringTokenizer
Constructs a tokenization of the given string.
AdaptedStringTokenizer(String, String[], boolean, boolean) - Constructor for class AdaptedStringTokenizer
Constructs a tokenization of the given string.
add(GroupingSymbol) - Method in class GroupingSymbolTable
Adds a GroupingSymbol to the table.
add(MovementRequestListener, MovementRequestListener) - Static method in class MovementRequestEventMulticaster
Adds a listener a and multicaster b to the list.
add(Operator) - Method in class OperatorTable
Adds an Operator to the table.
add(String) - Method in interface VariableDereferencer
Add a variable with name name to the dereferencer.
add(String) - Method in class VariableTable
If s isn't already in the table, a new VariableReference with a name s and value 0 is added.
add(VariableReference) - Method in class VariableTable
Adds a VariableReference to the table.
addInternal(EventListener, EventListener) - Static method in class MovementRequestEventMulticaster
 
AdditionOperator - class AdditionOperator.
This represents the operator + in an arithmetic equation; as in 3 + 5 = 8.
AdditionOperator() - Constructor for class AdditionOperator
Creates an Operator with: token: + precedence: 3 numberOperands: 2 preceededByAnOperand: true
addMovementRequestListener(MovementRequestListener) - Method in class VALIIParser
Adds a listener to the events generated by VALIIParser.processProgram().
allowWhitespace - Variable in class AdaptedStringTokenizer
boolean flag representing whether or not whitespace should be included in the strings that are returned
arg - Variable in class MovementRequestEvent
The arguments to the command
ArithmeticEquation - class ArithmeticEquation.
This class represents an arithmetic equation.
ArithmeticEquation(String) - Constructor for class ArithmeticEquation
The calculating for the initialization of this class is fairly complicated.
ArithmeticOperatorTable - class ArithmeticOperatorTable.
Class which represents all of the operators that may be allowed in a simple arithmetic equation.
ArithmeticOperatorTable() - Constructor for class ArithmeticOperatorTable
Constructs a new OperatorTable with the appropriate entries.
assign(String, int) - Method in interface VariableDereferencer
Should allow the user to assign the value of value to the variable of name.
assign(String, int) - Method in class VariableTable
Assigns value to the reference of name.

C

capacity - Variable in class GroupingSymbolTable
The current maximum number of elements possible
capacity - Variable in class OperatorTable
The current maximum number of elements possible
capacity - Variable in class VariableTable
The current maximum number of elements possible
CLAWCHANGE - Static variable in class MovementRequestEvent
Signifies that the event is a MovementClawchangeRequest.
clear() - Method in class VALIIParser
Clears the contents of the text box.
closeToken - Variable in class GroupingSymbol
Symbol representing that a group has been closed
currentIndex - Variable in class AdaptedStringTokenizer
the current position of the StringTokenizer in the sting being processed

D

d - Static variable in class Variable
An object which stores the values of the variables.This in an implementer of VariableDereferencer which stores the values for all of the variables.
demark() - Method in interface VariableDereferencer
Remove all variables added to the table since the last VariableDereferencer.mark()
demark() - Method in class VariableTable
Removes all variables from the table added since the last VariableTable.mark().
dereference(String) - Method in interface VariableDereferencer
The class implementing this should be able to return the value associated with name.
dereference(String) - Method in class VariableTable
Returns the value for the variable with name of name.
dereferencer() - Static method in class Variable
 
DivisionOperator - class DivisionOperator.
This represents the operator / in an arithmetic equation; as in 6 / 2 = 3.
DivisionOperator() - Constructor for class DivisionOperator
Creates an Operator with: token: / precedence: 2 numberOperands: 2 preceededByAnOperand: true
dump() - Method in class ExpressionElementStack
Prints the elements of the stack to java.lang.System#out.

E

e - Static variable in class ExpressionTest
 
END - Static variable in class ExpressionElement
Identifier for the end of the identifiers
Equation - interface Equation.
This is an interface representing the implementing object is an equation.
exists(String) - Method in interface VariableDereferencer
 
exists(String) - Method in class VariableTable
Same as VariableTable.isInTable(java.lang.String)
expression - Variable in class PostfixExpression
Stack representing a postfix equation.
ExpressionElement - class ExpressionElement.
This class represents an element of an expression.
ExpressionElement(Object) - Constructor for class ExpressionElement
Sets the contents and establishes the type with a series of instanceof checks
ExpressionElementStack - class ExpressionElementStack.
This is a simple extension of Stack which is designed specifically to hold ExpressionElements.
ExpressionElementStack() - Constructor for class ExpressionElementStack
 
ExpressionTest - class ExpressionTest.
This is a driver program to test the ArithmeticEquation class.
ExpressionTest() - Constructor for class ExpressionTest
 

G

GenericGroupingSymbolTable - class GenericGroupingSymbolTable.
Creates a new GroupingSymbolTable containing the symbols '(', ')', '[', ']', '{' and '}'.
GenericGroupingSymbolTable() - Constructor for class GenericGroupingSymbolTable
Creates a new GroupingSymbolTable containing the symbols '(', ')', '[', ']', '{' and '}'.
getTokens() - Method in class GroupingSymbolTable
 
getTokens() - Method in class OperatorTable
 
GROUPING_SYMBOL - Static variable in class ExpressionElement
Identifier for a GroupingSymbol element in the wrapper
GroupingSymbol - class GroupingSymbol.
This class represents a grouping symbol in an equation.
GroupingSymbol(String, String) - Constructor for class GroupingSymbol
Calls GroupingSymbol.GroupingSymbol(String, String, boolean) with a default of the symbol being an opening symbol.
GroupingSymbol(String, String, boolean) - Constructor for class GroupingSymbol
A GroupingSymbol is created not simply with the actual token that it represents but also the close for that symbol.
groupingSymbolOne() - Static method in class ExpressionTest
 
GroupingSymbolTable - class GroupingSymbolTable.
Much like OperatorTable this call serves as a holder for a set of other objects and acts as an interface to allow use of them.
GroupingSymbolTable() - Constructor for class GroupingSymbolTable
Creates a new empty table with a capacity of 20 elements
GroupingSymbolTable(int) - Constructor for class GroupingSymbolTable
Creates a new empty table with a capacity of i elements.
GroupingSymbolTest - class GroupingSymbolTest.
Driver and test program for GenericGroupingSymbolTable.
GroupingSymbolTest() - Constructor for class GroupingSymbolTest
 
groupingSymbolTwo() - Static method in class ExpressionTest
 

H

hashCode() - Method in class Variable
Returns the hash code from String for the name of the current Variable.
hasMoreTokens() - Method in class AdaptedStringTokenizer
 

I

infixEquation() - Method in class PostfixExpression
 
init() - Method in class ParserTest
 
intValue() - Method in class Variable
Returns the same as Variable.valueOf().
isAClosingSymbol() - Method in class GroupingSymbol
Tells if the current symbol represents the close of a group
isAClosingSymbol(String) - Method in class GroupingSymbolTable
Identifies String token as being an closing symbol or not.
isAGroupingSymbol(String) - Method in class GroupingSymbolTable
Identifies String token as being a symbol in the table or not.
isAnOpeningSymbol() - Method in class GroupingSymbol
Tells if the current symbol represents the beginning of a group
isAnOpeningSymbol(String) - Method in class GroupingSymbolTable
Identifies String token as being an opening symbol or not.
isAnOperator(String, boolean) - Method in class OperatorTable
Identifies String token as being an {@ Operator} in the table or not based on the context given by preceededByAnOperand.
isBalanced(String) - Method in class GroupingSymbolTable
Checks if an infix expression is balanced.
isCloseFor(GroupingSymbol) - Method in class GroupingSymbol
Tells whether o is the opposing symbol for this symbol.
isFalse() - Method in class Variable
A Variable operates along the same lines as an integer variable in C.
isHigherPrecedence(Operator) - Method in class Operator
 
isInTable(String) - Method in class VariableTable
Checks to see if there is a variable with name s in the table
isLowerPrecedence(Operator) - Method in class Operator
 
isTrue() - Method in class Variable
A Variable operates along the same lines as an integer variable in C.

L

listener - Variable in class VALIIParser
The listener for any events generated

M

main(String[]) - Static method in class ExpressionTest
 
main(String[]) - Static method in class GroupingSymbolTest
 
main(String[]) - Static method in class ParserTest
 
main(String[]) - Static method in class TokenizerTest
 
main(String[]) - Static method in class VariableTest
 
mark() - Method in interface VariableDereferencer
Adds a mark to the table.
mark() - Method in class VariableTable
Places a mark in the table.
marksCapacity - Variable in class VariableTable
The current maximum number of marks possible
marksSize - Variable in class VariableTable
The current number of marks
maxIndex - Variable in class AdaptedStringTokenizer
the maximum index of the string being processed
MOVEMENT_FIRST - Static variable in class MovementRequestEvent
Simply a placeholder for the beginning of the identifiers
MOVEMENT_LAST - Static variable in class MovementRequestEvent
Simply a placeholder for the end of the identifiers
MovementClawchangeRequest - class MovementClawchangeRequest.
Requests that the listener change the openness of the claw.
MovementClawchangeRequest(Object) - Constructor for class MovementClawchangeRequest
Calls MovementClawchangeRequest.MovementClawchangeRequest(Object, String) with an empty String.
MovementClawchangeRequest(Object, String) - Constructor for class MovementClawchangeRequest
There is one argument, which is positive for opening the claw and negative to close.
MovementMovetoRequest - class MovementMovetoRequest.
Requests that the listener move to a specific (X, Y, Z) coordinate.
MovementMovetoRequest(Object, String) - Constructor for class MovementMovetoRequest
There are three arguments (contained in arguments) which is parsed using StringTokenizer using comma as the delimiter.
MovementPickupRequest - class MovementPickupRequest.
Requests that the listener pick up an object.
MovementPickupRequest(Object, String) - Constructor for class MovementPickupRequest
There is one argument, which is the identifier of the object to be picked up.
MovementReleaseRequest - class MovementReleaseRequest.
Requests that the listener put down any object that it may be holding
MovementReleaseRequest(Object) - Constructor for class MovementReleaseRequest
Calls MovementReleaseRequest.MovementReleaseRequest(Object, String) with an empty String.
MovementReleaseRequest(Object, String) - Constructor for class MovementReleaseRequest
This command takes no arguments.
movementRequested(MovementRequestEvent) - Method in class MovementRequestEventMulticaster
This is the implementation which allows this class to implement MovementRequestListener.
movementRequested(MovementRequestEvent) - Method in interface MovementRequestListener
 
movementRequested(MovementRequestEvent) - Method in class ParserTest
Required for the implementation of MovementRequestListener.
MovementRequestEvent - class MovementRequestEvent.
This is the class which serves to notify a MovementRequestListener that a movement has been requested.
MovementRequestEvent(Object, int) - Constructor for class MovementRequestEvent
Simply chains a call up to the superclass using the same information
MovementRequestEventMulticaster - class MovementRequestEventMulticaster.
An event multicaster allows for multiple listeners to be registered for a single broadcaster.
MovementRequestEventMulticaster(EventListener, EventListener) - Constructor for class MovementRequestEventMulticaster
Creates a new multicaster.
MovementRequestListener - interface MovementRequestListener.
Represents that a class has the capacity to process MovementRequestEvents.
MovementResetRequest - class MovementResetRequest.
Requests that the listener reset to a default position
MovementResetRequest(Object) - Constructor for class MovementResetRequest
Calls MovementResetRequest.MovementResetRequest(Object, String) with an empty String.
MovementResetRequest(Object, String) - Constructor for class MovementResetRequest
This command takes no arguments.
MovementRotateRequest - class MovementRotateRequest.
Requests that the listener rotate its joints.
MovementRotateRequest(Object) - Constructor for class MovementRotateRequest
Calls MovementRotateRequest.MovementRotateRequest(Object, String) with an empty String.
MovementRotateRequest(Object, String) - Constructor for class MovementRotateRequest
There are six arguments (contained in arguments) which is parsed using StringTokenizer using comma as the delimiter.
MovementToggleaxisRequest - class MovementToggleaxisRequest.
Requests that a listener toggle a coordinate axis for one of its joints.
MovementToggleaxisRequest(Object, String) - Constructor for class MovementToggleaxisRequest
There is one argument, which is the joint to be toggle the axis on.
MOVETO - Static variable in class MovementRequestEvent
Signifies that the event is a MovementMovetoRequest.
multipleDigitTest() - Static method in class ExpressionTest
Checks to see if an arithmetic equation can be created with multiple numeric digits.
MultiplicationOperator - class MultiplicationOperator.
This represents the operator * in an arithmetic equation; as in 3 * 5 = 15.
MultiplicationOperator() - Constructor for class MultiplicationOperator
Creates an Operator with: token: * precedence: 2 numberOperands: 2 preceededByAnOperand: true

N

name - Variable in class Variable
The name of the variable in the dereferencer.
name - Variable in class VariableReference
The name of the variable
NegationOperator - class NegationOperator.
This represents the binary operator - in an arithmetic equation; as in -(3) = -3.
NegationOperator() - Constructor for class NegationOperator
Creates an Operator with: token: - precedence: 1 numberOperands: 1 preceededByAnOperand: false
nextElement() - Method in class ExpressionElementStack
Removes the top element from the stack and returns it
nextToken() - Method in class AdaptedStringTokenizer
There are several different cases for what can be considered tokens depending on the states of different flags.
nextToken(String[]) - Method in class AdaptedStringTokenizer
Operates the same as nextToken() but before the processing is begun the set of delimiters is replaced.
numberArguments - Variable in class MovementRequestEvent
The number of arguments that the command has
numberOperands - Variable in class Operator
The number of operands that the operator acts on.

O

openingSymbol - Variable in class GroupingSymbol
flag telling whether or not this particular symbol instance was an open or a close
openToken - Variable in class GroupingSymbol
Symbol representing that a group has been begun
operate(int[]) - Method in class AdditionOperator
 
operate(int[]) - Method in class DivisionOperator
 
operate(int[]) - Method in class MultiplicationOperator
 
operate(int[]) - Method in class NegationOperator
 
operate(int[]) - Method in class Operator
Abstact method that all operators must implement.
operate(int[]) - Method in class SineOperator
 
operate(int[]) - Method in class SubtractionOperator
 
Operator - class Operator.
Class representing the concept of an operator in an equation.
OPERATOR - Static variable in class ExpressionElement
Identifier for a Operator element in the wrapper
Operator() - Constructor for class Operator
 
operatorComboFour() - Static method in class ExpressionTest
Tests multiples of different operators where the correct solution is only found by using the order of operations
operatorComboOne() - Static method in class ExpressionTest
Tests the combination of multiples of the same operator
operatorComboThree() - Static method in class ExpressionTest
Tests multiples of different operators where the correct solution is found by simply solving left to right
operatorComboTwo() - Static method in class ExpressionTest
Tests multiples of operators with the same precedence
operatorFor(String, boolean) - Method in class OperatorTable
Identifies String token and returns the appropriate Operator.
operators - Variable in class OperatorTable
The elements contained in the table
OperatorTable - class OperatorTable.
Much like GroupingSymbolTable this call serves as a holder for a set of other objects and acts as an interface to allow use of them.
OperatorTable() - Constructor for class OperatorTable
Creates a new empty table with a capacity of 20 elements
OperatorTable(int) - Constructor for class OperatorTable
Creates a new empty table with a capacity of i elements.
OTHER - Static variable in class ExpressionElement
Identifier for an unknown element in the wrapper

P

parseButton - Variable in class ParserTest
 
parser - Variable in class ParserTest
 
ParserTest - class ParserTest.
This is a driver program to test the VALIIParser class.
ParserTest() - Constructor for class ParserTest
 
PICKUP - Static variable in class MovementRequestEvent
Signifies that the event is a MovementPickupRequest.
PostfixExpression - class PostfixExpression.
Represents a postfix equation.
PostfixExpression() - Constructor for class PostfixExpression
This constructor does nothing whatsoever.
precedence - Variable in class Operator
The precedence of the operator.
preceededByAnOperand - Variable in class Operator
Flag allowing for the contextualization of operators.
processProgram() - Method in class VALIIParser
Very simply this method does the processing of the text and generates the appropriate events.

R

RELEASE - Static variable in class MovementRequestEvent
Signifies that the event is a MovementReleaseRequest.
remove(EventListener) - Method in class MovementRequestEventMulticaster
 
remove(MovementRequestListener, MovementRequestListener) - Static method in class MovementRequestEventMulticaster
Removes a listener a and multicaster b from the list.
removeMovementRequestListener(MovementRequestListener) - Method in class VALIIParser
Removes a listener to the events generated by VALIIParser.processProgram().
RESET - Static variable in class MovementRequestEvent
Signifies that the event is a MovementResetRequest.
returnTokens - Variable in class AdaptedStringTokenizer
boolean flag representing whether or not tokens should be included in the strings that are returned
reverse() - Method in class ExpressionElementStack
Reverses the order of the elements in the stack.
ROTATE - Static variable in class MovementRequestEvent
Signifies that the event is a MovementRotateRequest.

S

setDereferencer() - Static method in class Variable
This sets the object which is responsible for storing the values of the variables and returning them.
setDereferencer(VariableDereferencer) - Static method in class Variable
This sets the object which is responsible for storing the values of the variables and returning them.
setEquation(ExpressionElementStack) - Method in class PostfixExpression
This method sets the content of the expression.
setValue(int) - Method in class Variable
Assigns a value to the reference in the VariableDereferencer with the same name as the current name.
simpleAdditionTest() - Static method in class ExpressionTest
Does a simple addition
simpleDivisionTest() - Static method in class ExpressionTest
Does a simple division
simpleMultiplicationTest() - Static method in class ExpressionTest
Does a simple multiplication
simpleNegationTest() - Static method in class ExpressionTest
Does a simple negation
simpleSubtractionTest() - Static method in class ExpressionTest
Does a simple subtraction
SineOperator - class SineOperator.
This represents the operator sin in an arithmetic equation.
SineOperator() - Constructor for class SineOperator
Creates an Operator with: token: sin precedence: 2 numberOperands: 1 preceededByAnOperand: false
singleDigitTest() - Static method in class ExpressionTest
Checks to see if an arithmetic equation can be created with a single numeric digit.
size - Variable in class GroupingSymbolTable
The current number of elements
size - Variable in class OperatorTable
The current number of elements
size - Variable in class VariableTable
The current number of elements
skipDelimiters() - Method in class AdaptedStringTokenizer
Internal method to skip over delimiters in the string being tokenized until a non-delimiter is reached.
skipWhitespace() - Method in class AdaptedStringTokenizer
Internal method to skip over whitespace (as defined in Charater.isWhitespace) characters in the string being tokenized until a non-whitespace character is reached.
solution() - Method in interface Equation
Returns the solution for the equation.
solution() - Method in class PostfixExpression
This method returns the solution for the equation.
START - Static variable in class ExpressionElement
Identifier for the beginning of the identifiers
startsWithToken() - Method in class AdaptedStringTokenizer
Internal method representing the state of the current substring left from the tokenization to this point.
SubtractionOperator - class SubtractionOperator.
This represents the operator - in an arithmetic equation; as in 3 - 5 = -2.
SubtractionOperator() - Constructor for class SubtractionOperator
Creates an Operator with: token: - precedence: 3 numberOperands: 2 preceededByAnOperand: true
symbolFor(String) - Method in class GroupingSymbolTable
Identifies String token and returns the appropriate GroupingSymbol.
symbols - Variable in class GroupingSymbolTable
The elements contained in the table

T

TESTING - Variable in class PostfixExpression
flag which toggles a set of dumps of the different stacks.
TOGGLEAXIS - Static variable in class MovementRequestEvent
Signifies that the event is a MovementToggleaxisRequest.
token - Variable in class Operator
The token representing the operation in an equation.
token() - Method in class GroupingSymbol
Returns the appropriate token representing this grouping symbol.
TokenizerTest - class TokenizerTest.
This is a driver program to test the AdaptedStringTokenizer class.
TokenizerTest() - Constructor for class TokenizerTest
 
tokens - Variable in class AdaptedStringTokenizer
the delimiters that determine where the string is divided
tokenString - Variable in class AdaptedStringTokenizer
the string which is being tokenized
top() - Method in class ExpressionElementStack
Check the top element from the stack and returns it; the top remains on the stack.
toString() - Method in interface Equation
Returns a string representing the equation.
toString() - Method in class ExpressionElement
 
toString() - Method in class GroupingSymbol
 
toString() - Method in class Operator
 
toString() - Method in class PostfixExpression
 
toString() - Method in class Variable
Returns a string containing the name of the variable followed by its value.
type - Variable in class ExpressionElement
Holds one of the identifiers and specifies the type of the object wrapped
typeString() - Method in class ExpressionElement
 

V

VALIIParser - class VALIIParser.
This class is the culmination of all of these other classes.
VALIIParser() - Constructor for class VALIIParser
By default a TextArea of height 30 and width 20 is created with only vertical scroll bars and no text.
VALIIParser(int, int) - Constructor for class VALIIParser
Creates a TextArea of height rows and width cols and only vertical scrool bars.
value - Variable in class VariableReference
The value of the variable
VALUE - Static variable in class ExpressionElement
Identifier for an java.lang.Integer element in the wrapper
valueOf() - Method in class Variable
Returns the current value of the variable.
Variable - class Variable.
The Variable class allows the user to represent a mathematical variable.
VARIABLE - Static variable in class ExpressionElement
Identifier for a Variable element in the wrapper
Variable() - Constructor for class Variable
A default constructor.
Variable(String) - Constructor for class Variable
Instantiates a variable with just a name.
Variable(String, int) - Constructor for class Variable
This contructor allows a variable to be given an intial value.
VariableDereferencer - interface VariableDereferencer.
Interface implemented by any object which wishes to be able to store variable values.
VariableReference - class VariableReference.
The primary purpose of this class is to serve as an entry in VariableTable.
VariableReference(String) - Constructor for class VariableReference
Calls VariableReference.VariableReference(String, int) with s and 0.
VariableReference(String, int) - Constructor for class VariableReference
 
variables - Variable in class VariableTable
The elements contained in the table
VariableTable - class VariableTable.
The VariableTable class acts in conjunction with the Variable class.
VariableTable() - Constructor for class VariableTable
Creates a new empty table with a capacity of 20 elements
VariableTable(int) - Constructor for class VariableTable
Creates a new empty table with a capacity of i elements.
VariableTest - class VariableTest.
This is a driver program to test the Variable class.
VariableTest() - Constructor for class VariableTest
 

A C D E G H I L M N O P R S T V