pedviz.algorithms.filter
Class NumberCondition
java.lang.Object
   pedviz.algorithms.filter.NumberCondition
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
 
 
| 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 | 
 
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
 
check
public boolean check(Node node)
- Description copied from interface: Condition
- Checks if the condition for the given node is valid.
 
- 
- Specified by:
- checkin interface- Condition
 
- 
- Parameters:
- node- Node object
- Returns:
- true, if the condition for the given node is valid.