Class Filter

java.lang.Object
gaiasky.util.filter.Filter

public class Filter extends Object
A filter on a dataset as a set of rules
  • Constructor Details

    • Filter

      public Filter(FilterRule rule)
      Creates a filter with only one rule
      Parameters:
      rule -
    • Filter

      public Filter(String operation, FilterRule... rules)
      Creates a new filter with the given rules and linking operation
      Parameters:
      rules - The rules list
      operation - The operation: 'and', 'or'
    • Filter

      public Filter(String operation, com.badlogic.gdx.utils.Array<FilterRule> rules)
  • Method Details

    • deepCopy

      public Filter deepCopy()
    • evaluate

      public boolean evaluate(IParticleRecord pb)
    • hasRules

      public boolean hasRules()
    • getRules

      public com.badlogic.gdx.utils.Array<FilterRule> getRules()
    • getOperation

      public gaiasky.util.filter.Filter.IOperation getOperation()
    • getOperationString

      public String getOperationString()
    • setOperation

      public void setOperation(String op)
    • getOperationFromString

      public gaiasky.util.filter.Filter.IOperation getOperationFromString(String op)
    • addRule

      public void addRule(FilterRule rule)
    • removeRule

      public boolean removeRule(FilterRule rule)