|
Drools :: Core 6.1.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.core.common.NamedEntryPoint
public class NamedEntryPoint
| Field Summary | |
|---|---|
protected static Class<?>[] |
ADD_REMOVE_PROPERTY_CHANGE_LISTENER_ARG_TYPES
|
protected Object[] |
addRemovePropertyChangeListenerArgs
The arguments used when adding/removing a property change listener. |
protected Set<InternalFactHandle> |
dynamicFacts
|
protected EntryPointId |
entryPoint
|
protected EntryPointNode |
entryPointNode
|
protected InternalKnowledgeBase |
kBase
|
protected ReentrantLock |
lock
|
protected static org.slf4j.Logger |
log
|
protected ObjectStore |
objectStore
|
| Constructor Summary | |
|---|---|
NamedEntryPoint(EntryPointId entryPoint,
EntryPointNode entryPointNode,
StatefulKnowledgeSessionImpl wm)
|
|
NamedEntryPoint(EntryPointId entryPoint,
EntryPointNode entryPointNode,
StatefulKnowledgeSessionImpl wm,
ReentrantLock lock)
|
|
| Method Summary | ||
|---|---|---|
protected void |
addPropertyChangeListener(InternalFactHandle handle,
boolean dynamicFlag)
|
|
void |
delete(org.kie.api.runtime.rule.FactHandle handle)
|
|
void |
delete(org.kie.api.runtime.rule.FactHandle factHandle,
RuleImpl rule,
Activation activation)
|
|
void |
dispose()
Internal method called by the engine when the session is being disposed, so that the entry point can proceed with the necessary clean ups. |
|
void |
enQueueWorkingMemoryAction(WorkingMemoryAction action)
|
|
EntryPointId |
getEntryPoint()
|
|
String |
getEntryPointId()
|
|
EntryPointNode |
getEntryPointNode()
|
|
long |
getFactCount()
|
|
org.kie.api.runtime.rule.FactHandle |
getFactHandle(Object object)
|
|
org.kie.api.runtime.rule.FactHandle |
getFactHandleByIdentity(Object object)
|
|
|
getFactHandles()
|
|
|
getFactHandles(org.kie.api.runtime.ObjectFilter filter)
|
|
InternalWorkingMemory |
getInternalWorkingMemory()
|
|
InternalKnowledgeBase |
getKnowledgeBase()
|
|
Object |
getObject(org.kie.api.runtime.rule.FactHandle factHandle)
|
|
Collection<? extends Object> |
getObjects()
|
|
Collection<? extends Object> |
getObjects(org.kie.api.runtime.ObjectFilter filter)
|
|
ObjectStore |
getObjectStore()
|
|
ObjectTypeConfigurationRegistry |
getObjectTypeConfigurationRegistry()
|
|
TruthMaintenanceSystem |
getTruthMaintenanceSystem()
|
|
WorkingMemoryEntryPoint |
getWorkingMemoryEntryPoint(String name)
|
|
void |
insert(InternalFactHandle handle,
Object object,
RuleImpl rule,
Activation activation,
ObjectTypeConf typeConf,
PropagationContext pctx)
|
|
org.kie.api.runtime.rule.FactHandle |
insert(Object object)
Assert a fact. |
|
org.kie.api.runtime.rule.FactHandle |
insert(Object object,
boolean dynamic)
Insert a fact registering JavaBean PropertyChangeListeners
on the Object to automatically trigger update calls
if dynamic is true. |
|
org.kie.api.runtime.rule.FactHandle |
insert(Object object,
Object tmsValue,
boolean dynamic,
boolean logical,
RuleImpl rule,
Activation activation)
|
|
void |
lock()
|
|
void |
propertyChange(PropertyChangeEvent event)
|
|
protected void |
removePropertyChangeListener(org.kie.api.runtime.rule.FactHandle handle,
boolean removeFromSet)
|
|
void |
reset()
|
|
void |
retract(org.kie.api.runtime.rule.FactHandle handle)
Retract a fact. |
|
void |
unlock()
|
|
void |
update(org.kie.api.runtime.rule.FactHandle factHandle,
Object object)
Inform the WorkingMemory that a Fact has been modified and that it should now update the network. |
|
void |
update(org.kie.api.runtime.rule.FactHandle factHandle,
Object object,
long mask,
Class<?> modifiedClass,
Activation activation)
|
|
InternalFactHandle |
update(InternalFactHandle handle,
boolean updateLogical,
Object object,
long mask,
Class<?> modifiedClass,
Activation activation)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static transient org.slf4j.Logger log
protected static final Class<?>[] ADD_REMOVE_PROPERTY_CHANGE_LISTENER_ARG_TYPES
protected final Object[] addRemovePropertyChangeListenerArgs
protected ObjectStore objectStore
protected transient InternalKnowledgeBase kBase
protected EntryPointId entryPoint
protected EntryPointNode entryPointNode
protected final ReentrantLock lock
protected Set<InternalFactHandle> dynamicFacts
| Constructor Detail |
|---|
public NamedEntryPoint(EntryPointId entryPoint,
EntryPointNode entryPointNode,
StatefulKnowledgeSessionImpl wm)
public NamedEntryPoint(EntryPointId entryPoint,
EntryPointNode entryPointNode,
StatefulKnowledgeSessionImpl wm,
ReentrantLock lock)
| Method Detail |
|---|
public void lock()
public void unlock()
public void reset()
reset in interface InternalWorkingMemoryEntryPointpublic ObjectStore getObjectStore()
getObjectStore in interface InternalWorkingMemoryEntryPointpublic EntryPointNode getEntryPointNode()
getEntryPointNode in interface InternalWorkingMemoryEntryPointpublic org.kie.api.runtime.rule.FactHandle insert(Object object)
WorkingMemoryEntryPoint
insert in interface WorkingMemoryEntryPointinsert in interface org.kie.api.runtime.rule.EntryPointobject - The fact object.
WorkingMemory
public org.kie.api.runtime.rule.FactHandle insert(Object object,
boolean dynamic)
WorkingMemoryEntryPointPropertyChangeListeners
on the Object to automatically trigger update calls
if dynamic is true.
insert in interface WorkingMemoryEntryPointobject - The fact object.dynamic - true if Drools should add JavaBean
PropertyChangeListeners to the object.
public org.kie.api.runtime.rule.FactHandle insert(Object object,
Object tmsValue,
boolean dynamic,
boolean logical,
RuleImpl rule,
Activation activation)
public void insert(InternalFactHandle handle,
Object object,
RuleImpl rule,
Activation activation,
ObjectTypeConf typeConf,
PropagationContext pctx)
public void update(org.kie.api.runtime.rule.FactHandle factHandle,
Object object)
WorkingMemoryEntryPoint
update in interface WorkingMemoryEntryPointupdate in interface org.kie.api.runtime.rule.EntryPointfactHandle - The fact-handle associated with the fact to modify.object - The new value of the fact.
public void update(org.kie.api.runtime.rule.FactHandle factHandle,
Object object,
long mask,
Class<?> modifiedClass,
Activation activation)
update in interface InternalWorkingMemoryEntryPoint
public InternalFactHandle update(InternalFactHandle handle,
boolean updateLogical,
Object object,
long mask,
Class<?> modifiedClass,
Activation activation)
public void retract(org.kie.api.runtime.rule.FactHandle handle)
WorkingMemoryEntryPoint
retract in interface WorkingMemoryEntryPointretract in interface org.kie.api.runtime.rule.EntryPointhandle - The fact-handle associated with the fact to retract.public void delete(org.kie.api.runtime.rule.FactHandle handle)
delete in interface org.kie.api.runtime.rule.EntryPoint
public void delete(org.kie.api.runtime.rule.FactHandle factHandle,
RuleImpl rule,
Activation activation)
delete in interface InternalWorkingMemoryEntryPoint
protected void addPropertyChangeListener(InternalFactHandle handle,
boolean dynamicFlag)
protected void removePropertyChangeListener(org.kie.api.runtime.rule.FactHandle handle,
boolean removeFromSet)
public WorkingMemoryEntryPoint getWorkingMemoryEntryPoint(String name)
getWorkingMemoryEntryPoint in interface WorkingMemoryEntryPointpublic ObjectTypeConfigurationRegistry getObjectTypeConfigurationRegistry()
getObjectTypeConfigurationRegistry in interface InternalWorkingMemoryEntryPointpublic InternalKnowledgeBase getKnowledgeBase()
getKnowledgeBase in interface InternalWorkingMemoryEntryPointpublic org.kie.api.runtime.rule.FactHandle getFactHandle(Object object)
getFactHandle in interface org.kie.api.runtime.rule.EntryPointpublic EntryPointId getEntryPoint()
getEntryPoint in interface InternalWorkingMemoryEntryPointpublic InternalWorkingMemory getInternalWorkingMemory()
getInternalWorkingMemory in interface InternalWorkingMemoryEntryPointpublic org.kie.api.runtime.rule.FactHandle getFactHandleByIdentity(Object object)
getFactHandleByIdentity in interface InternalWorkingMemoryEntryPointpublic Object getObject(org.kie.api.runtime.rule.FactHandle factHandle)
getObject in interface org.kie.api.runtime.rule.EntryPointpublic <T extends org.kie.api.runtime.rule.FactHandle> Collection<T> getFactHandles()
getFactHandles in interface org.kie.api.runtime.rule.EntryPointpublic <T extends org.kie.api.runtime.rule.FactHandle> Collection<T> getFactHandles(org.kie.api.runtime.ObjectFilter filter)
getFactHandles in interface org.kie.api.runtime.rule.EntryPointpublic Collection<? extends Object> getObjects()
getObjects in interface org.kie.api.runtime.rule.EntryPointpublic Collection<? extends Object> getObjects(org.kie.api.runtime.ObjectFilter filter)
getObjects in interface org.kie.api.runtime.rule.EntryPointpublic String getEntryPointId()
getEntryPointId in interface org.kie.api.runtime.rule.EntryPointpublic long getFactCount()
getFactCount in interface org.kie.api.runtime.rule.EntryPointpublic void propertyChange(PropertyChangeEvent event)
propertyChange in interface PropertyChangeListenerpublic void dispose()
WorkingMemoryEntryPoint
dispose in interface WorkingMemoryEntryPointpublic void enQueueWorkingMemoryAction(WorkingMemoryAction action)
public TruthMaintenanceSystem getTruthMaintenanceSystem()
|
Drools :: Core 6.1.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||