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

java.lang.Object
  extended by de.fho.jump.pirol.utilities.FormulaParsing.FormulaValue
      extended by de.fho.jump.pirol.utilities.FormulaParsing.Operations.GenericOperation
Direct Known Subclasses:
AdditionOperation, DivisionOperation, MultiplicationOperation, PowerOfOperation, SubtractionOperation

public abstract class GenericOperation
extends FormulaValue

Base class for mathmatic operations like division, addition, etc.

Version:
$Rev: 856 $
Author:
Ole Rahn

FH Osnabrück - University of Applied Sciences Osnabrück,
Project: PIROL (2005),
Subproject: Daten- und Wissensmanagement

Field Summary
protected  java.lang.String opString
           
protected  FormulaValue value1
           
protected  FormulaValue value2
           
 
Fields inherited from class de.fho.jump.pirol.utilities.FormulaParsing.FormulaValue
logger
 
Constructor Summary
GenericOperation(FormulaValue value1, FormulaValue value2)
          Sets the value, that will be operated on.
 
Method Summary
 boolean isFeatureDependent()
          Helps to determine, if the value depends on a feature's attribute value.
 java.lang.String toString()
           
 
Methods inherited from class de.fho.jump.pirol.utilities.FormulaParsing.FormulaValue
getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value1

protected FormulaValue value1

value2

protected FormulaValue value2

opString

protected java.lang.String opString
Constructor Detail

GenericOperation

public GenericOperation(FormulaValue value1,
                        FormulaValue value2)
Sets the value, that will be operated on.

Parameters:
value1 -
value2 -
Method Detail

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