|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Specifies the behavior for a rules engine context.
Method Summary | |
void |
addObject(java.lang.Object object)
Adds an object to the context's working memory. |
int |
fireAllRules()
Fires all of the rules which are active for the context. |
int |
fireRules(int maxRules)
Fires rules until there are no more to fire or until maxRules rules have been fired. |
java.util.Set |
getObjects(java.lang.Class filter)
Gets a filtered list of objects from the context |
void |
halt()
Halts firing of rules. |
void |
initialize()
Initializes the context. |
void |
release()
Release the context and any resources it might be using. |
void |
removeAllObjects()
Removes all objects from the context's working memory. |
Method Detail |
public void addObject(java.lang.Object object) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, ServiceProviderException
object
- The object to be added.public int fireAllRules() throws java.lang.IllegalStateException, ServiceProviderException
public int fireRules(int maxRules) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, ServiceProviderException
maxRules
- The maximum number of rules to firepublic java.util.Set getObjects(java.lang.Class filter) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, ServiceProviderException
clsFilter
- the list of Classes which describe what type of
objects to return from the working memory.public void halt() throws java.lang.IllegalStateException, ServiceProviderException
public void initialize() throws java.lang.IllegalStateException, ServiceProviderException
public void release() throws ServiceProviderException
public void removeAllObjects() throws java.lang.IllegalStateException, ServiceProviderException
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |