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

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

public class SubtractionOperation
extends GenericOperation

Class to handle subtractions within a formula.

Version:
$Rev: 1559 $
Author:
Ole Rahn

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

Field Summary
 
Fields inherited from class de.fho.jump.pirol.utilities.FormulaParsing.Operations.GenericOperation
opString, value1, value2
 
Fields inherited from class de.fho.jump.pirol.utilities.FormulaParsing.FormulaValue
logger
 
Constructor Summary
SubtractionOperation(FormulaValue value1, FormulaValue value2)
          Sets the value, that will be operated on.
 
Method Summary
 double getValue(Feature feature)
          Returns the subtracted values of the sub-values or sub-operations of this operation
 
Methods inherited from class de.fho.jump.pirol.utilities.FormulaParsing.Operations.GenericOperation
isFeatureDependent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubtractionOperation

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

Method Detail

getValue

public double getValue(Feature feature)
Returns the subtracted values of the sub-values or sub-operations of this operation

Specified by:
getValue in class FormulaValue
Parameters:
feature -
Returns:
subtracted values of the sub-values or sub-operations