Statistics
| Revision:

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

History | View | Annotate | Download (466 Bytes)

1
package es.unex.sextante.gridCalculus.binaryOperators;
2

    
3
public class GreaterThanAlgorithm
4
         extends
5
            BinaryOperatorAlgorithm {
6

    
7
   @Override
8
   public void defineCharacteristics() {
9

    
10
      super.defineCharacteristics();
11

    
12
      setName(">");
13

    
14
   }
15

    
16

    
17
   @Override
18
   protected double getProcessedValue() {
19

    
20
      if (m_dValue > m_dValue2) {
21
         return 1.0;
22
      }
23
      else {
24
         return 0.0;
25
      }
26

    
27
   }
28

    
29
}