public interface WorkingMemory
| Modifier and Type | Method and Description | 
|---|---|
| WorkingMemory | fireRules()Fires any pending rules in the working memory, and returns a new
 working memory with the rules in a fired state. | 
| WorkingMemory | insert(java.lang.Iterable<?> facts)Returns a new working memory with the given facts inserted | 
| java.lang.Iterable<QueryResult> | query(java.lang.String queryName)Runs the query by the given name against the working memory and returns the matching
 results. | 
| java.lang.Iterable<QueryResult> | query(java.lang.String queryName,
     java.util.Map<java.lang.String,?> arguments)Runs the query by the given name against the working memory and returns the matching
 results. | 
| WorkingMemory | retract(java.lang.Iterable<?> facts)Returns a new working memory with the given facs retracted | 
WorkingMemory insert(java.lang.Iterable<?> facts)
facts - facts to insert into the working memoryWorkingMemory retract(java.lang.Iterable<?> facts)
facts - facts to retract from the working memoryWorkingMemory fireRules()
java.lang.Iterable<QueryResult> query(java.lang.String queryName, java.util.Map<java.lang.String,?> arguments)
queryName - the name of the query to perform, formatted as "namespace/name".arguments - query argumentsjava.lang.Iterable<QueryResult> query(java.lang.String queryName)
queryName - the name of the query to perform, formatted as "namespace/name".