Constructor and Description |
---|
DefaultCepRule(java.util.List<EventPattern> eventPatterns)
Creates a new rule with the specified
EventPattern s and a default CepJob . |
DefaultCepRule(java.util.List<EventPattern> eventPatterns,
CepJob<IObservableComplexEventPattern> job)
Creates a new rule with the specified
EventPattern s and CepJob . |
Modifier and Type | Method and Description |
---|---|
void |
addEventPattern(EventPattern eventPattern)
Associates a single
EventPattern with the rule. |
void |
addEventPatterns(java.util.List<EventPattern> eventPatterns)
Associates a list of
EventPattern s with the rule. |
java.util.List<EventPattern> |
getEventPatterns() |
CepJob<IObservableComplexEventPattern> |
getJob() |
public DefaultCepRule(java.util.List<EventPattern> eventPatterns, CepJob<IObservableComplexEventPattern> job)
EventPattern
s and CepJob
.eventPatterns
- the EventPattern
s the rule should be activated uponjob
- the CepJob
to be executed when patterns get matchedpublic DefaultCepRule(java.util.List<EventPattern> eventPatterns)
EventPattern
s and a default CepJob
.eventPatterns
- the EventPattern
s the rule should be activated uponpublic void addEventPatterns(java.util.List<EventPattern> eventPatterns)
EventPattern
s with the rule.eventPatterns
- the patterns to be included into the rulepublic void addEventPattern(EventPattern eventPattern)
EventPattern
with the rule.eventPattern
- the pattern to be included into the rulepublic java.util.List<EventPattern> getEventPatterns()
getEventPatterns
in interface ICepRule
EventPattern
s of the rulepublic CepJob<IObservableComplexEventPattern> getJob()