Interface | Description |
---|---|
QueryResult |
Result of a Clara query.
|
WorkingMemory |
An immutable working memory of Clara rules.
|
Class | Description |
---|---|
RuleLoader |
Clara rule loader.
|
RuleLoader
, responsible for loading rules into a new working memoryWorkingMemory
, an immutable instance of a rule session.QueryResult
, a container of query results.Note this API does not have a separate "knowledge base" class like those of other rules engines. Instead, the user can simply create and reuse a single, empty WorkingMemory object for multiple rule instances -- optionally sticking the initial empty working memory in a static variable. This type of pattern is efficient and possible since the WorkingMemory is immutable, creating a new instance that shares internal state when changes occur.
See the Clara Examples project for an example of this in action.