edu.hws.jcm.data |
|
Java Source File Name | Type | Comment |
Cases.java | Class | An object of type Cases stores a list of "case values" that is generated
while an expression is being evaluated using the routine Expression.getValuesWithCases().
This information can be used as a heuristic (i.e. |
ConditionalExpression.java | Class | A "conditional expression" is an expression using the "?" operator, such as "(x > 0)? x : -x"
or "x <> 3 ? 1 / (x - 3)". |
Constant.java | Class | A Constant is a Value that represents a constant real number. |
Expression.java | Interface | An Expression represents a mathematical expression such as "x+1" or
"3" or "sin(x*ln(x)-3*abs(x/4))". |
ExpressionCommand.java | Interface | An ExpressionCommand can occur as a command in an ExpressionProgram. |
ExpressionProgram.java | Class | An ExprssionProgram represents a mathematical expression such as "3" or "sin(x^2)", stored
in the form of a program for a stack machine. |
Function.java | Interface | A Function is a mathematical real-valued function of zero or more
real-valued arguments. |
MathObject.java | Interface | A MathObject is just an object that has setName and getName methods. |
NumUtils.java | Class | This class provides a few static functions for converting real numbers
to strings and strings to real numbers. |
ParseError.java | Class | Represents a syntax error that is found while a string is being parsed. |
Parser.java | Class | A Parser can take a string and compile it into an ExpressionProgram.
MathObjects, such as variables and functions, can be registered with
the Parser. |
ParserContext.java | Class | A ParserContext holds all the state data for a parsing operation, including the
string that is being parsed, a pointer to the current position in that string,
and the most recently parsed token from the string. |
ParserExtension.java | Interface | A ParserExtension can be defined to add new capabilities to a
standard Parser. |
SimpleFunction.java | Class | An object belonging to this class is a function of one or more variables.
It is defined by an expression, e, and a list of variables, which presumably
can occur in e. |
StackOfDouble.java | Class | A standard stack of values of type double, which can grow to arbitrary size. |
StandardFunction.java | Class | This class exists to associate standard functions, such as sin and abs, with
their names. |
SymbolTable.java | Class | A symbol table contains MathObjects, associating them
with their names. |
Value.java | Interface | An object of type Value has a real-number value that can be retrieved by
calling the getVal() method. |
ValueMath.java | Class | A ValueMath object is an easy way to create Value objects that are computed
from other Value objects. |
Variable.java | Class | A Variable is a Value object whose value can be changed. |