public interface AlarmPipeline
Modifier and Type | Interface and Description |
---|---|
static interface |
AlarmPipeline.RetiredCallback |
Modifier and Type | Method and Description |
---|---|
void |
evaluate(AlarmEvent alarmEvent,
TrackingContext trackingContext)
Evaluate an
alarmEvent . |
void |
retire(AlarmPipeline.RetiredCallback callback)
Retire this pipeline.
|
void |
start()
Start this pipeline.
|
void |
stop()
Stop this pipeline and everything running in it immediately.
|
void start()
evaluate(AlarmEvent, TrackingContext)
happen.void stop()
void retire(AlarmPipeline.RetiredCallback callback)
AlarmEvent
s currently evaluating
inside the pipeline should be allowed to finish. Upon completion of the last event, callback
will be
notified.callback
- The callback to notify once the pipeline is empty and has finished running.void evaluate(AlarmEvent alarmEvent, TrackingContext trackingContext)
alarmEvent
.alarmEvent
- The AlarmEvent
to evalulate.trackingContext
- The TrackingContext
for alarmEvent
. Update the context on transitions and when the event is
finished being evaluated.