org.eclipse.viatra.cep.core.api.helpers

## Class DefaultApplication

- java.lang.Object
- - org.eclipse.viatra.cep.core.api.helpers.DefaultApplication

-     public abstract class DefaultApplication
      extends java.lang.Object

  Helper class for CEP applications. By extending it, a `CEPEngine` and an `EventStream` is available for use. The user must implement the `DefaultApplication#configureRules()` method by specifying the rules to be instantiated for the engine.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultApplication(EventContext eventContext, java.lang.Class<? extends ICepRule> rule)`
    `DefaultApplication(EventContext eventContext, java.util.List<java.lang.Class<? extends ICepRule>> rules)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `CEPEngine` | `getEngine()`
    `EventStream` | `getEventStream()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultApplication

          public DefaultApplication(EventContext eventContext,
                                    java.util.List<java.lang.Class<? extends ICepRule>> rules)

    - #### DefaultApplication

          public DefaultApplication(EventContext eventContext,
                                    java.lang.Class<? extends ICepRule> rule)

  - ### Method Detail

    - #### getEngine

          public CEPEngine getEngine()

    - #### getEventStream

          public EventStream getEventStream()