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 TypeMethodDescriptionbooleanbooleanaddBracedExpression(TreeNode t, String values) booleanaddFactors(TreeNode t, String values) booleanaddFunction(TreeNode t, String values) booleanaddMethodCall(TreeNode t, String values) booleanbooleaneval()getRoot()voidsetParameter(String s, Double d) voidsetParametersValues(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
-