pedviz.algorithms.filter
Class NumberCondition

java.lang.Object
  extended by pedviz.algorithms.filter.NumberCondition
All Implemented Interfaces:
Condition

public class NumberCondition
extends java.lang.Object
implements Condition

This class represents a Condtion for a trait, which contains an integer or a double value.

Author:
lukas forer

Field Summary
 
Fields inherited from interface pedviz.algorithms.filter.Condition
BETWEEN, EQUALS, GREATER, LESSER, NBETWEEN, NEQUALS
 
Constructor Summary
NumberCondition(java.lang.String data, int mode, java.lang.Double value)
          Creates a new NumberCondition for the given trait with the given mode and values.
NumberCondition(java.lang.String data, int mode, java.lang.Double value1, java.lang.Double value2)
          Creates a new NumberCondition for the given trait with the given mode and values.
 
Method Summary
 boolean check(Node node)
          Checks if the condition for the given node is valid.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberCondition

public NumberCondition(java.lang.String data,
                       int mode,
                       java.lang.Double value)
Creates a new NumberCondition for the given trait with the given mode and values.

Parameters:
data - trait
mode - mode
value - value

NumberCondition

public NumberCondition(java.lang.String data,
                       int mode,
                       java.lang.Double value1,
                       java.lang.Double value2)
Creates a new NumberCondition for the given trait with the given mode and values.

Parameters:
data - trait
mode - mode
value1 - value1
value2 - value2
Method Detail

check

public boolean check(Node node)
Description copied from interface: Condition
Checks if the condition for the given node is valid.

Specified by:
check in interface Condition
Parameters:
node - Node object
Returns:
true, if the condition for the given node is valid.