|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.base.DefaultKnowledgeHelper
public class DefaultKnowledgeHelper
Constructor Summary | |
---|---|
DefaultKnowledgeHelper()
|
|
DefaultKnowledgeHelper(WorkingMemory workingMemory)
|
Method Summary | ||
---|---|---|
void |
cancelRemainingPreviousLogicalDependencies()
|
|
Object |
get(Declaration declaration)
|
|
Activation |
getActivation()
|
|
org.drools.runtime.Channel |
getChannel(String id)
|
|
Map<String,org.drools.runtime.Channel> |
getChannels()
|
|
|
getContext(Class<T> contextClass)
|
|
Declaration |
getDeclaration(String identifier)
|
|
org.drools.runtime.rule.WorkingMemoryEntryPoint |
getEntryPoint(String id)
|
|
Map<String,org.drools.runtime.rule.WorkingMemoryEntryPoint> |
getEntryPoints()
|
|
org.drools.runtime.ExitPoint |
getExitPoint(String id)
Deprecated. use getChannel(String) instead |
|
Map<String,org.drools.runtime.ExitPoint> |
getExitPoints()
Deprecated. use getChannels() instead |
|
FactHandle |
getFactHandle(FactHandle handle)
|
|
FactHandle |
getFactHandle(Object object)
|
|
IdentityHashMap<Object,FactHandle> |
getIdentityMap()
|
|
org.drools.runtime.KnowledgeRuntime |
getKnowledgeRuntime()
|
|
Rule |
getRule()
|
|
Tuple |
getTuple()
|
|
WorkingMemory |
getWorkingMemory()
|
|
void |
halt()
|
|
void |
insert(Object object)
Asserts an object, notice that it does not return the FactHandle |
|
void |
insert(Object object,
boolean dynamic)
Asserts an object specifying that it implement the onPropertyChange listener, notice that it does not return the FactHandle. |
|
void |
insertLogical(Object object)
|
|
void |
insertLogical(Object object,
boolean dynamic)
|
|
void |
modify(Object newObject)
|
|
void |
readExternal(ObjectInput in)
|
|
void |
reset()
|
|
void |
retract(FactHandle handle)
|
|
void |
retract(Object object)
|
|
void |
setActivation(Activation agendaItem)
|
|
void |
setFocus(String focus)
|
|
void |
setIdentityMap(IdentityHashMap<Object,FactHandle> identityMap)
|
|
void |
update(FactHandle handle)
|
|
void |
update(FactHandle handle,
Object newObject)
|
|
void |
update(Object object)
|
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultKnowledgeHelper()
public DefaultKnowledgeHelper(WorkingMemory workingMemory)
Method Detail |
---|
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void setActivation(Activation agendaItem)
setActivation
in interface KnowledgeHelper
public void reset()
reset
in interface KnowledgeHelper
public void insert(Object object)
KnowledgeHelper
insert
in interface KnowledgeHelper
object
- -
the object to be assertedpublic void insert(Object object, boolean dynamic) throws FactException
KnowledgeHelper
insert
in interface KnowledgeHelper
object
- -
the object to be asserteddynamic
- -
specifies the object implements onPropertyChangeListener
FactException
public void insertLogical(Object object)
insertLogical
in interface org.drools.runtime.rule.RuleContext
insertLogical
in interface KnowledgeHelper
public void insertLogical(Object object, boolean dynamic)
insertLogical
in interface KnowledgeHelper
public void cancelRemainingPreviousLogicalDependencies()
cancelRemainingPreviousLogicalDependencies
in interface KnowledgeHelper
public FactHandle getFactHandle(Object object)
getFactHandle
in interface KnowledgeHelper
public FactHandle getFactHandle(FactHandle handle)
getFactHandle
in interface KnowledgeHelper
public void update(FactHandle handle, Object newObject)
update
in interface KnowledgeHelper
public void update(FactHandle handle)
update
in interface KnowledgeHelper
public void update(Object object)
update
in interface KnowledgeHelper
public void retract(Object object)
retract
in interface KnowledgeHelper
public void retract(FactHandle handle)
retract
in interface KnowledgeHelper
public Rule getRule()
getRule
in interface org.drools.runtime.rule.RuleContext
getRule
in interface KnowledgeHelper
public Tuple getTuple()
getTuple
in interface KnowledgeHelper
public WorkingMemory getWorkingMemory()
getWorkingMemory
in interface KnowledgeHelper
public org.drools.runtime.KnowledgeRuntime getKnowledgeRuntime()
getKnowledgeRuntime
in interface org.drools.runtime.KnowledgeContext
public Activation getActivation()
getActivation
in interface org.drools.runtime.rule.RuleContext
getActivation
in interface KnowledgeHelper
public void setFocus(String focus)
setFocus
in interface KnowledgeHelper
public Object get(Declaration declaration)
get
in interface KnowledgeHelper
public Declaration getDeclaration(String identifier)
getDeclaration
in interface KnowledgeHelper
public void halt()
halt
in interface KnowledgeHelper
public org.drools.runtime.rule.WorkingMemoryEntryPoint getEntryPoint(String id)
getEntryPoint
in interface KnowledgeHelper
@Deprecated public org.drools.runtime.ExitPoint getExitPoint(String id)
getChannel(String)
instead
getExitPoint
in interface KnowledgeHelper
public org.drools.runtime.Channel getChannel(String id)
getChannel
in interface KnowledgeHelper
public Map<String,org.drools.runtime.rule.WorkingMemoryEntryPoint> getEntryPoints()
getEntryPoints
in interface KnowledgeHelper
@Deprecated public Map<String,org.drools.runtime.ExitPoint> getExitPoints()
getChannels()
instead
getExitPoints
in interface KnowledgeHelper
public Map<String,org.drools.runtime.Channel> getChannels()
getChannels
in interface KnowledgeHelper
public IdentityHashMap<Object,FactHandle> getIdentityMap()
getIdentityMap
in interface KnowledgeHelper
public void setIdentityMap(IdentityHashMap<Object,FactHandle> identityMap)
setIdentityMap
in interface KnowledgeHelper
identityMap
- the identityMap to setpublic <T> T getContext(Class<T> contextClass)
getContext
in interface KnowledgeHelper
public void modify(Object newObject)
modify
in interface KnowledgeHelper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |