Package gaiasky.util.filter
Class FilterRule
java.lang.Object
gaiasky.util.filter.FilterRule
public class FilterRule
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
FilterRule.ComparatorEq
class
FilterRule.ComparatorG
class
FilterRule.ComparatorGeq
class
FilterRule.ComparatorL
class
FilterRule.ComparatorLeq
class
FilterRule.ComparatorNeq
static interface
FilterRule.IComparator
-
Constructor Summary
Constructors Constructor Description FilterRule(java.lang.String comp, IAttribute attr, double val)
Creates a new filter with the given attribute, value and comparator function -
Method Summary
Modifier and Type Method Description FilterRule
copy()
boolean
evaluate(IParticleRecord bean)
IAttribute
getAttribute()
FilterRule.IComparator
getComparator()
FilterRule.IComparator
getComparatorFromString(java.lang.String c)
double
getValue()
void
setAttribute(IAttribute attr)
void
setComparator(FilterRule.IComparator comp)
void
setValue(double value)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
FilterRule
Creates a new filter with the given attribute, value and comparator function- Parameters:
comp
- The comparator function: '>', '>=', '<', '<=', '==', '!='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
-