|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RuleBase
Active collection of Rule
s.
From a RuleBase
many WorkingMemory
rule
sessions may be instantiated. Additionally, it may be inspected to determine
which Package
s it contains.
WorkingMemory
Field Summary | |
---|---|
static int |
LEAPS
|
static int |
RETEOO
|
Method Summary | |
---|---|
void |
addPackage(Package pkg)
|
void |
addProcess(IProcess process)
|
Package[] |
getPackages()
|
IProcess |
getProcess(String id)
|
StatefulSession[] |
getStatefulSessions()
|
StatefulSession |
newStatefulSession()
Create a new WorkingMemory session for this
RuleBase . |
StatefulSession |
newStatefulSession(boolean keepReference)
Create a new WorkingMemory session for this
RuleBase . |
StatefulSession |
newStatefulSession(InputStream stream)
RuleBases handle the returning of a Serialized WorkingMemory pass as an InputStream. |
StatefulSession |
newStatefulSession(InputStream stream,
boolean keepReference)
RuleBases handle the returning of a Serialized WorkingMemory pass as an InputStream. |
StatelessSession |
newStatelessSession()
|
void |
removePackage(String packageName)
|
void |
removeProcess(String id)
|
void |
removeRule(String packageName,
String ruleName)
|
Field Detail |
---|
static final int RETEOO
static final int LEAPS
Method Detail |
---|
StatelessSession newStatelessSession()
StatefulSession newStatefulSession()
WorkingMemory
session for this
RuleBase
. By default the RuleBase retains a
weak reference to returned WorkingMemory.
The created WorkingMemory
uses the default conflict
resolution strategy.
WorkingMemory
.WorkingMemory
,
DefaultConflictResolver
StatefulSession newStatefulSession(boolean keepReference)
WorkingMemory
session for this
RuleBase
. Optionally the RuleBase retains a
weak reference to returned WorkingMemory.
The created WorkingMemory
uses the default conflict
resolution strategy.
WorkingMemory
.WorkingMemory
,
DefaultConflictResolver
StatefulSession newStatefulSession(InputStream stream) throws IOException, ClassNotFoundException
The created WorkingMemory
uses the default conflict
resolution strategy.
WorkingMemory
.
IOException
ClassNotFoundException
WorkingMemory
,
DefaultConflictResolver
StatefulSession newStatefulSession(InputStream stream, boolean keepReference) throws IOException, ClassNotFoundException
The created WorkingMemory
uses the default conflict
resolution strategy.
WorkingMemory
.
IOException
ClassNotFoundException
WorkingMemory
,
DefaultConflictResolver
Package[] getPackages()
void addPackage(Package pkg) throws Exception
Exception
void removePackage(String packageName)
void addProcess(IProcess process)
void removeProcess(String id)
IProcess getProcess(String id)
void removeRule(String packageName, String ruleName)
StatefulSession[] getStatefulSessions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |