Package gaiasky.util.filter
Class FilterRule
java.lang.Object
gaiasky.util.filter.FilterRule
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static interface
-
Constructor Summary
ConstructorDescriptionFilterRule
(String comp, IAttribute attr, double val) Creates a new filter with the given attribute, value and comparator function -
Method Summary
Modifier and TypeMethodDescriptioncopy()
boolean
evaluate
(IParticleRecord bean) double
getValue()
void
setAttribute
(IAttribute attr) void
void
setValue
(double value)
-
Constructor Details
-
FilterRule
Creates a new filter with the given attribute, value and comparator function- Parameters:
comp
- The comparator function: '>', '>=', 'invalid input: '<'', 'invalid input: '<'=', '==', '!='attr
- The attribute to compareval
- The value to compare to
-
-
Method Details
-
evaluate
-
copy
-
getValue
public double getValue() -
setValue
public void setValue(double value) -
getComparator
-
setComparator
-
getAttribute
-
setAttribute
-
getComparatorFromString
-