Class FormulaValue
java.lang.Object
de.fho.jump.pirol.utilities.FormulaParsing.FormulaValue
- Direct Known Subclasses:
AcosOperation, AsinOperation, AtnaOperation, AttributeValue, ConstantValue, CosOperation, ExpOperation, GenericOperation, Log10Operation, LogarithmOperation, PiValue, SinOperation, SquareRootOperation, TanOperation, ToDegreesOperation, ToRadiansOperation
Base class for each sub-formula or value of a formula, since we don't want to parse the formula again and again for each value...
- Version:
- $Rev$
- Author:
- Ole Rahn
FH Osnabrück - University of Applied Sciences Osnabrück,
Project: PIROL (2005),
Subproject: Daten- und Wissensmanagement
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract doubleReturns the value (as a double) of this part of the formula.abstract booleanHelps to determine, if the value depends on a feature's attribute value.toString()
-
Field Details
-
logger
-
-
Constructor Details
-
FormulaValue
public FormulaValue()
-
-
Method Details
-
getValue
Returns the value (as a double) of this part of the formula. It may be the result of a sub-formula, a feature-specific attribute value or just a constant value... Since the value may depend on a feature, we give the feature to the method to get a unified interface...- Returns:
- value of this part of the formula
-
isFeatureDependent
public abstract boolean isFeatureDependent()Helps to determine, if the value depends on a feature's attribute value.- Returns:
- true, if the value depends on a feature
-
toString
-