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 classFilterRule.ComparatorEqclassFilterRule.ComparatorGclassFilterRule.ComparatorGeqclassFilterRule.ComparatorLclassFilterRule.ComparatorLeqclassFilterRule.ComparatorNeqstatic interfaceFilterRule.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 FilterRulecopy()booleanevaluate(IParticleRecord bean)IAttributegetAttribute()FilterRule.IComparatorgetComparator()FilterRule.IComparatorgetComparatorFromString(java.lang.String c)doublegetValue()voidsetAttribute(IAttribute attr)voidsetComparator(FilterRule.IComparator comp)voidsetValue(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
-