Constructor and Description |
---|
CauseFilter(EventId cause)
Construct a cause filter.
|
CauseFilter(EventId cause,
boolean invert)
Construct a cause filter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
int |
hashCode() |
boolean |
isInverted()
Indicates whether the filter accepts events containing the
specified event id in their cause vector or events that do not
have that cause.
|
boolean |
match(Event event)
Tells whether the given event matches the filter and hence shall be
dispatched or not.
|
public CauseFilter(EventId cause, boolean invert)
cause
- the causeinvert
- invert he filter?public CauseFilter(EventId cause)
cause
- the causepublic boolean isInverted()
true
, only events NOT that do not have
the specified event id in their cause vector are
allowed. If false
, only events that have
the specified event id in their cause vector are
allowed.public boolean match(Event event)
Filter
Copyright © 2018 CoR-Lab. All rights reserved.