|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.drools.spi.DefaultKnowledgeHelper
public class DefaultKnowledgeHelper
| Constructor Summary | |
|---|---|
DefaultKnowledgeHelper(Rule rule,
Tuple tuple)
|
|
| Method Summary | |
|---|---|
void |
assertObject(java.lang.Object object)
Asserts an object, notice that it does not return the FactHandle |
void |
assertObject(java.lang.Object object,
boolean dynamic)
Asserts an object specifying that it implement the onPropertyChange listener, notice that it does not return the FactHandle. |
void |
clearAgenda()
Clears the agenda causing all existing Activations to fire ActivationCancelled events. |
java.util.List |
getObjects()
|
java.util.List |
getObjects(java.lang.Class objectClass)
Retruns a List of Objects that match the given Class in the paremeter. |
java.lang.String |
getRuleName()
|
void |
modifyObject(java.lang.Object object)
Modifies an object. |
void |
modifyObject(java.lang.Object oldObject,
java.lang.Object newObject)
Modifies an object by looking up the handle of the oldObject and replacing the oldObject with the newObject for the FactHandle. |
void |
retractObject(java.lang.Object object)
Retracts an object from the WorkingMemory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultKnowledgeHelper(Rule rule,
Tuple tuple)
| Method Detail |
|---|
public void assertObject(java.lang.Object object)
throws FactException
KnowledgeHelper
assertObject in interface KnowledgeHelperobject - -
the object to be asserted
FactException - -
Exceptions can be thrown by conditions which are wrapped and
returned as a FactException
public void assertObject(java.lang.Object object,
boolean dynamic)
throws FactException
KnowledgeHelper
assertObject in interface KnowledgeHelperobject - -
the object to be asserteddynamic - -
specifies the object implements onPropertyChangeListener
FactException - -
Exceptions can be thrown by conditions which are wrapped and
returned as a FactException
public void modifyObject(java.lang.Object object)
throws FactException
KnowledgeHelper
modifyObject in interface KnowledgeHelperobject - -
the object to be modified
FactException - -
Exceptions can be thrown by conditions which are wrapped and
returned as a FactException
public void modifyObject(java.lang.Object oldObject,
java.lang.Object newObject)
throws FactException
KnowledgeHelper
modifyObject in interface KnowledgeHelperoldObject - -
The old object to be modifiednewObject - -
the new modified object
FactException
public void retractObject(java.lang.Object object)
throws FactException
KnowledgeHelper
retractObject in interface KnowledgeHelperobject - -
the object to be retracted.
FactException - -
Wraps and returns any exception that may occur.public java.lang.String getRuleName()
getRuleName in interface KnowledgeHelperpublic java.util.List getObjects()
getObjects in interface KnowledgeHelperpublic java.util.List getObjects(java.lang.Class objectClass)
KnowledgeHelper
getObjects in interface KnowledgeHelperobjectClass - -
The Class to filter by
public void clearAgenda()
KnowledgeHelper
clearAgenda in interface KnowledgeHelper
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||