org.eclipse.incquery.runtime.evm.api

## Class Executor

- java.lang.Object
- - org.eclipse.incquery.runtime.evm.api.Executor

-     public class Executor
      extends java.lang.Object

  The executor is responsible for firing enabled activations of its ruleBase, when its scheduler notifies it. The executor also manages a context that is passed to activations.
  Author:
    Abel Hegedus

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Executor(EventRealm eventRealm)` Creates an executor for the given IncQueryEngine.
    `Executor(EventRealm eventRealm, Context context)` Creates an executor for the given IncQueryEngine and Context.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Context` | `getContext()`
    `RuleBase` | `getRuleBase()`

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

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

- - ### Constructor Detail

    - #### Executor

          public Executor(EventRealm eventRealm)

      Creates an executor for the given IncQueryEngine. Executors are usually created as part of an ExecutionSchema through the EventDrivenVM.createExecutionSchema methods.
      Parameters:
        `eventRealm` -

    - #### Executor

          public Executor(EventRealm eventRealm,
                          Context context)

      Creates an executor for the given IncQueryEngine and Context. Executors are usually created as part of an ExecutionSchema through the EventDrivenVM.createExecutionSchema methods.
      Parameters:
        `eventRealm` -
        `context` -

  - ### Method Detail

    - #### getRuleBase

          public RuleBase getRuleBase()

      Returns:
        the ruleBase

    - #### getContext

          public Context getContext()

      Returns:
        the context