public abstract class Rule extends Object
Constructor and Description |
---|
Rule() |
Modifier and Type | Method and Description |
---|---|
abstract Collection<LEvent> |
apply(int index,
LEvent event)
Return transformed events according to this rule
|
Collection<LEvent> |
apply(LEvent event) |
abstract boolean |
canApply(int index,
LEvent event)
Defines which events this rule applies to.
|
boolean |
canApply(LEvent event) |
public abstract boolean canApply(int index, LEvent event)
index
- the index of event (-1 if irrelevant)event
- the input eventpublic boolean canApply(LEvent event)
public abstract Collection<LEvent> apply(int index, LEvent event)
index
- the index of event (-1 if irrelevant)event
- the input eventpublic Collection<LEvent> apply(LEvent event)
Processing Library loom by Cora Johnson-Roberson. (c) 2014-2016