pedviz.algorithms.filter
Class NumberCondition
java.lang.Object
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
- traitmode
- modevalue
- 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
- traitmode
- modevalue1
- value1value2
- value2
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.