de.fho.jump.pirol.utilities.FormulaParsing.Operations
Class ExpOperation

java.lang.Object
  extended by de.fho.jump.pirol.utilities.FormulaParsing.FormulaValue
      extended by de.fho.jump.pirol.utilities.FormulaParsing.Operations.ExpOperation

public class ExpOperation
extends FormulaValue

Class to handle additions within a formula. 10 dic 2011

Author:
Giuseppe Aruta Exponential class

Field Summary
protected  FormulaValue value
           
 
Fields inherited from class de.fho.jump.pirol.utilities.FormulaParsing.FormulaValue
logger
 
Constructor Summary
ExpOperation(FormulaValue value)
           
 
Method Summary
 double getValue(Feature feature)
          Returns the value (as a double) of this part of the formula.
 boolean isFeatureDependent()
          Helps to determine, if the value depends on a feature's attribute value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected FormulaValue value
Constructor Detail

ExpOperation

public ExpOperation(FormulaValue value)
Method Detail

getValue

public double getValue(Feature feature)
Description copied from class: FormulaValue
Returns the value (as a double) of this part of the formula. It may be the rsult 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:
getValue in class FormulaValue
Returns:
value of this part of the formula

isFeatureDependent

public boolean isFeatureDependent()
Description copied from class: FormulaValue
Helps to determine, if the value depends on a feature's attribute value.

Specified by:
isFeatureDependent in class FormulaValue
Returns:
true, if the value depends on a feature

toString

public java.lang.String toString()
Overrides:
toString in class FormulaValue