| Samples > Rule-Based Programming > How to Process Timestamped Events with Rules |
How to Process Timestamped Events with Rules |
PREVIOUS NEXT |
This sample shows how to use specific rule constructions to process objects as events.
Key features include:
To import the eventmatching sample:
samples > engine > eventmatching sample.
The imported sample project files are displayed in the Rule Explorer.
Make sure you are in the Rule perspective before running this sample.
To run the eventmatching-application project:
Java Application with Rules > eventmatching-application launch configuration.
Output is displayed in the Console view.
In this sample, an event processor that encapsulates a rule engine monitors a flow of alarms to filter out the insignificant ones and correlate the remaining ones into higher-level pieces of information. This sample gives a starting point for alarm filtering and correlation applications.
This sample is implemented in three different projects.
eventmatching-application project is a Java project. The main method parses the ruleset archive then the Correlator class provides alarms to the engine while incrementing the clock of the engine and executing the rules.
eventmatching-rules project contains all the rules to apply on objects of the Business Object Model (BOM), which is mapped onto an equivalent Java Execution Object Model (XOM).
eventmatching-xom project is a Java project. It contains the object model with equipment classes (Equipment and EquipmentLink) and management classes (Alarm and AlarmState).
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |