Class AlgebricTree
java.lang.Object
one.empty3.library.core.raytracer.tree.Tree
one.empty3.library.core.raytracer.tree.AlgebricTree
-
Constructor Summary
ConstructorsConstructorDescriptionAlgebricTree
(String formula) AlgebricTree
(String formula, Map<String, Double> parametersValues) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addBracedExpression
(TreeNode t, String values) boolean
addFactors
(TreeNode t, String values) boolean
addFunction
(TreeNode t, String values) boolean
addMethodCall
(TreeNode t, String values) boolean
boolean
eval()
getRoot()
void
setParameter
(String s, Double d) void
setParametersValues
(Map<String, Double> parametersValues) toString()
-
Constructor Details
-
AlgebricTree
- Throws:
AlgebraicFormulaSyntaxException
-
AlgebricTree
-
-
Method Details
-
setParameter
-
construct
- Throws:
AlgebraicFormulaSyntaxException
-
add
- Throws:
AlgebraicFormulaSyntaxException
-
addPower
- Throws:
AlgebraicFormulaSyntaxException
-
addFactors
- Throws:
AlgebraicFormulaSyntaxException
-
addTerms
- Throws:
AlgebraicFormulaSyntaxException
-
addFunction
- Throws:
AlgebraicFormulaSyntaxException
-
addMethodCall
- Throws:
AlgebraicFormulaSyntaxException
-
addBracedExpression
public boolean addBracedExpression(TreeNode t, String values) throws AlgebraicFormulaSyntaxException - Throws:
AlgebraicFormulaSyntaxException
-
eval
-
toString
-
setParametersValues
-
getParametersValues
-
getFormula
-
getRoot
-