Statistics
| Revision:

root / org.gvsig.toolbox / trunk / org.gvsig.toolbox / org.gvsig.toolbox.algorithm / src / main / java / es / unex / sextante / gridCalculus / binaryOperators / EqAlgorithm.java @ 59

History | View | Annotate | Download (461 Bytes)

1 59 nbrodin
package es.unex.sextante.gridCalculus.binaryOperators;
2
3
4
public class EqAlgorithm
5
         extends
6
            BinaryOperatorAlgorithm {
7
8
   @Override
9
   public void defineCharacteristics() {
10
11
      super.defineCharacteristics();
12
13
      setName("==");
14
15
   }
16
17
18
   @Override
19
   protected double getProcessedValue() {
20
21
      if (m_dValue == m_dValue2) {
22
         return 1.0;
23
      }
24
      else {
25
         return 0.0;
26
      }
27
28
   }
29
30
}