|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.rsl.konrad.numerics.mathexpressions.Evaluator
public class Evaluator
Class for evaluating simple algebraic expressions Custom functions can be defined in functionexpression.java
Constructor Summary | |
---|---|
Evaluator()
|
Method Summary | |
---|---|
static Plane3D |
getPlane(java.lang.String expression)
Evaluates string literals of form (x,y,z) >(<) offset, where (x,y,z) is a normal vector; |
static Plane3D |
getPlane(java.lang.String expression,
java.util.Map<java.lang.String,java.lang.Double> variablesMap)
|
static PointND |
getPointValue(java.lang.String expression)
Evaluates the string literals in a string vector; |
static PointND |
getPointValue(java.lang.String expression,
java.util.Map<java.lang.String,java.lang.Double> variablesMap)
Evaluates the string literals in a string vector and replaces variables with values in map; |
static double |
getValue(java.lang.String expression)
Evaluates the string literal |
static double |
getValue(java.lang.String expression,
java.util.Map<java.lang.String,java.lang.Double> variablesMap)
Evaluates the string literal and replaces variables with values in map; |
static SimpleVector |
getVectorValue(java.lang.String expression)
Evaluates the string literals in a string vector; |
static SimpleVector |
getVectorValue(java.lang.String expression,
java.util.Map<java.lang.String,java.lang.Double> variablesMap)
Evaluates the string literals in a string vector and replaces variables with values in map; |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Evaluator()
Method Detail |
---|
public static double getValue(java.lang.String expression)
expression
- string to be evaluated
public static double getValue(java.lang.String expression, java.util.Map<java.lang.String,java.lang.Double> variablesMap)
expression
- string to be evaluated
public static SimpleVector getVectorValue(java.lang.String expression)
expression
- string vector to be evaluated
public static SimpleVector getVectorValue(java.lang.String expression, java.util.Map<java.lang.String,java.lang.Double> variablesMap)
expression
- string vector to be evaluated
public static PointND getPointValue(java.lang.String expression)
expression
- string vector to be evaluated
public static PointND getPointValue(java.lang.String expression, java.util.Map<java.lang.String,java.lang.Double> variablesMap)
expression
- string vector to be evaluated
public static Plane3D getPlane(java.lang.String expression)
expression
- string expression of form (x,y,z) >(<) offset, where (x,y,z) is a normal vector;
public static Plane3D getPlane(java.lang.String expression, java.util.Map<java.lang.String,java.lang.Double> variablesMap)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |