Class DiscreteRangeAttributeFilter
- java.lang.Object
-
- org.processmining.logprojection.filters.AbstractEventFilter
-
- org.processmining.logprojection.filters.DiscreteRangeAttributeFilter
-
- All Implemented Interfaces:
EventFilter
public final class DiscreteRangeAttributeFilter extends AbstractEventFilter
-
-
Field Summary
-
Fields inherited from class org.processmining.logprojection.filters.AbstractEventFilter
attribute, attributeIndex, manager
-
-
Constructor Summary
Constructors Constructor Description DiscreteRangeAttributeFilter(LogView view, Attribute attribute, long min, long max, boolean inverted)Keeps events as long as the value of the given attribute is the range [min, max] (inclusive) If inverted is set to true, then events are kept as long as the value of the given attribute is outside the range [min, max] (exclusive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleankeepEvent(LogView view, int traceIndex, int eventIndex)-
Methods inherited from class org.processmining.logprojection.filters.AbstractEventFilter
equals, hashCode
-
-
-
-
Constructor Detail
-
DiscreteRangeAttributeFilter
public DiscreteRangeAttributeFilter(LogView view, Attribute attribute, long min, long max, boolean inverted)
Keeps events as long as the value of the given attribute is the range [min, max] (inclusive) If inverted is set to true, then events are kept as long as the value of the given attribute is outside the range [min, max] (exclusive)- Parameters:
view-attribute- The attribute to be checked for each event. Note that this has to be a continuous attribute, i.e. the type should be Attribute.DISC, Attribute.TIME_REL, or Attribute.TIME_ABS. Otherwise no events are filtered (or all in case inverted is true)isEventAttribute-min-max-inverted-
-
-
Method Detail
-
keepEvent
public boolean keepEvent(LogView view, int traceIndex, int eventIndex)
-
-