org.processmining.mining.dmcscanning.logutils.filter
Class BooleanFilter

java.lang.Object
  extended by org.processmining.mining.dmcscanning.logutils.filter.BooleanFilter
All Implemented Interfaces:
EventFilter

public class BooleanFilter
extends java.lang.Object
implements EventFilter

BooleanFilter. composite event filter class, provides both boolean constants as TRUE or FALSE, as allows for the successive composition of complex boolean filter statements.

Author:
christian Christian W. Guenther (christian@deckfour.com)

Constructor Summary
protected BooleanFilter()
           
protected BooleanFilter(int theOperator, EventFilter[] theOperands)
          protected constructor -> use factory methods for construction!
 
Method Summary
static BooleanFilter and(EventFilter[] ops)
           
static BooleanFilter and(EventFilter a, EventFilter b)
           
static BooleanFilter constFalse()
          factory methods
static BooleanFilter constTrue()
           
 boolean matches(AuditTrailEntry entry)
          Determines, whether a given AuditTrailEntry matches this filter's conditions
static BooleanFilter negate(EventFilter x)
           
static BooleanFilter or(EventFilter[] ops)
           
static BooleanFilter or(EventFilter a, EventFilter b)
           
static BooleanFilter xor(EventFilter a, EventFilter b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanFilter

protected BooleanFilter()

BooleanFilter

protected BooleanFilter(int theOperator,
                        EventFilter[] theOperands)
protected constructor -> use factory methods for construction!

Method Detail

constFalse

public static BooleanFilter constFalse()
factory methods

Returns:

constTrue

public static BooleanFilter constTrue()

negate

public static BooleanFilter negate(EventFilter x)

xor

public static BooleanFilter xor(EventFilter a,
                                EventFilter b)

and

public static BooleanFilter and(EventFilter[] ops)

and

public static BooleanFilter and(EventFilter a,
                                EventFilter b)

or

public static BooleanFilter or(EventFilter[] ops)

or

public static BooleanFilter or(EventFilter a,
                               EventFilter b)

matches

public boolean matches(AuditTrailEntry entry)
Description copied from interface: EventFilter
Determines, whether a given AuditTrailEntry matches this filter's conditions

Specified by:
matches in interface EventFilter
Returns: