01: /*
02: * Created on 23.06.2005 for PIROL
03: *
04: * SVN header information:
05: * $Author: javamap $
06: * $Rev: 856 $
07: * $Date: 2007-06-18 21:15:27 -0700 (Mon, 18 Jun 2007) $
08: * $Id: MultiplicationOperation.java 856 2007-06-19 04:15:27Z javamap $
09: */
10: package de.fho.jump.pirol.utilities.FormulaParsing.Operations;
11:
12: import com.vividsolutions.jump.feature.Feature;
13:
14: import de.fho.jump.pirol.utilities.FormulaParsing.FormulaValue;
15:
16: /**
17: * Class to handle multiplications within a formula.
18: *
19: * @author Ole Rahn
20: * <br>
21: * <br>FH Osnabrück - University of Applied Sciences Osnabrück,
22: * <br>Project: PIROL (2005),
23: * <br>Subproject: Daten- und Wissensmanagement
24: *
25: * @version $Rev: 856 $
26: *
27: */
28: public class MultiplicationOperation extends GenericOperation {
29:
30: /**
31: * @inheritDoc
32: */
33: public MultiplicationOperation(FormulaValue value1,
34: FormulaValue value2) {
35: super (value1, value2);
36: this .opString = "*";
37: }
38:
39: /**
40: * Returns the multiplied values of the sub-values or sub-operations of this operation
41: *@param feature
42: *@return multiplied values of the sub-values or sub-operations
43: */
44: public double getValue(Feature feature) {
45: return this.value1.getValue(feature)
46: * this.value2.getValue(feature);
47: }
48:
49: }
|