|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.base.DefaultKnowledgeHelper
public class DefaultKnowledgeHelper
Constructor Summary | |
---|---|
DefaultKnowledgeHelper(Activation agendaItem,
WorkingMemory workingMemory)
|
|
DefaultKnowledgeHelper(WorkingMemory workingMemory)
|
Method Summary | |
---|---|
void |
assertLogicalObject(Object object)
|
void |
assertLogicalObject(Object object,
boolean dynamic)
|
void |
assertObject(Object object)
Asserts an object, notice that it does not return the FactHandle |
void |
assertObject(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. |
void |
clearAgendaGroup(String group)
|
Object |
get(Declaration declaration)
|
Activation |
getActivation()
|
Declaration |
getDeclaration(String identifier)
|
AgendaGroup |
getFocus()
|
List |
getObjects()
|
List |
getObjects(Class objectClass)
Retruns a List of Objects that match the given Class in the paremeter. |
QueryResults |
getQueryResults(String query)
|
Rule |
getRule()
|
Tuple |
getTuple()
|
WorkingMemory |
getWorkingMemory()
|
void |
modifyObject(FactHandle handle,
Object newObject)
|
void |
retractObject(FactHandle handle)
|
void |
setActivation(Activation agendaItem)
|
void |
setFocus(AgendaGroup focus)
|
void |
setFocus(String focus)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultKnowledgeHelper(WorkingMemory workingMemory)
public DefaultKnowledgeHelper(Activation agendaItem, WorkingMemory workingMemory)
Method Detail |
---|
public void setActivation(Activation agendaItem)
public void assertObject(Object object) throws FactException
KnowledgeHelper
assertObject
in interface KnowledgeHelper
object
- -
the object to be asserted
FactException
- -
Exceptions can be thrown by conditions which are wrapped and
returned as a FactExceptionpublic void assertObject(Object object, boolean dynamic) throws FactException
KnowledgeHelper
assertObject
in interface KnowledgeHelper
object
- -
the object to be asserteddynamic
- -
specifies the object implements onPropertyChangeListener
FactException
- -
Exceptions can be thrown by conditions which are wrapped and
returned as a FactExceptionpublic void assertLogicalObject(Object object) throws FactException
assertLogicalObject
in interface KnowledgeHelper
FactException
public void assertLogicalObject(Object object, boolean dynamic) throws FactException
assertLogicalObject
in interface KnowledgeHelper
FactException
public void modifyObject(FactHandle handle, Object newObject) throws FactException
modifyObject
in interface KnowledgeHelper
FactException
public void retractObject(FactHandle handle) throws FactException
retractObject
in interface KnowledgeHelper
FactException
public Rule getRule()
getRule
in interface KnowledgeHelper
public List getObjects()
getObjects
in interface KnowledgeHelper
public List getObjects(Class objectClass)
KnowledgeHelper
getObjects
in interface KnowledgeHelper
objectClass
- -
The Class to filter by
public void clearAgenda()
KnowledgeHelper
clearAgenda
in interface KnowledgeHelper
public void clearAgendaGroup(String group)
clearAgendaGroup
in interface KnowledgeHelper
public Object get(Declaration declaration)
get
in interface KnowledgeHelper
public Tuple getTuple()
getTuple
in interface KnowledgeHelper
public WorkingMemory getWorkingMemory()
getWorkingMemory
in interface KnowledgeHelper
public Activation getActivation()
getActivation
in interface KnowledgeHelper
public QueryResults getQueryResults(String query)
getQueryResults
in interface KnowledgeHelper
public AgendaGroup getFocus()
getFocus
in interface KnowledgeHelper
public void setFocus(String focus)
setFocus
in interface KnowledgeHelper
public void setFocus(AgendaGroup focus)
setFocus
in interface KnowledgeHelper
public Declaration getDeclaration(String identifier)
getDeclaration
in interface KnowledgeHelper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |