com.singularsys.aa
Interface Expression

All Known Implementing Classes:
LinearExpr, PolynomialExpr, SimpleExpr, UntypifiedExpr

public interface Expression

Interface for all types of expressions.

Author:
nathan

Method Summary
 java.lang.Object getValue(java.util.Hashtable varValues)
          Returns the value of the expression given the variable values in
 java.util.Vector getVariables()
          Returns a Vector of variable names (as Strings).
 

Method Detail

getValue

java.lang.Object getValue(java.util.Hashtable varValues)
                          throws java.lang.Exception
Returns the value of the expression given the variable values in
varValues
.

Parameters:
varValues - A hastable containing the variable names as keys, and the values as objects.
Returns:
The value of this expression.
Throws:
java.lang.Exception

getVariables

java.util.Vector getVariables()
Returns a Vector of variable names (as Strings).

Returns:
a Vector of variable names used in this expression.