Class ConstantValue
java.lang.Object
de.fho.jump.pirol.utilities.FormulaParsing.FormulaValue
de.fho.jump.pirol.utilities.FormulaParsing.Values.ConstantValue
A simple value class that just stores a constant value.
- Version:
- $Rev$
- Author:
- Ole Rahn
FH Osnabrück - University of Applied Sciences Osnabrück,
Project: PIROL (2005),
Subproject: Daten- und Wissensmanagement
-
Field Summary
FieldsFields inherited from class FormulaValue
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value (as a double) of this part of the formula.booleanHelps to determine, if the value depends on a feature's attribute value.toString()
-
Field Details
-
value
protected double value
-
-
Constructor Details
-
ConstantValue
public ConstantValue(double value)
-
-
Method Details
-
getValue
Description copied from class:FormulaValueReturns 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...- Specified by:
getValuein classFormulaValue- Parameters:
feature- in this case we don't need the feature...- Returns:
- the constant value
-
isFeatureDependent
public boolean isFeatureDependent()Description copied from class:FormulaValueHelps to determine, if the value depends on a feature's attribute value.- Specified by:
isFeatureDependentin classFormulaValue- Returns:
- true, if the value depends on a feature
-
toString
- Overrides:
toStringin classFormulaValue
-