public class NamedEntryPoint extends Object implements InternalWorkingMemoryEntryPoint, WorkingMemoryEntryPoint, PropertyChangeListener
Modifier and Type | Field and Description |
---|---|
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 |
protected TraitHelper |
traitHelper |
Constructor and Description |
---|
NamedEntryPoint(EntryPointId entryPoint,
EntryPointNode entryPointNode,
StatefulKnowledgeSessionImpl wm) |
NamedEntryPoint(EntryPointId entryPoint,
EntryPointNode entryPointNode,
StatefulKnowledgeSessionImpl wm,
ReentrantLock lock) |
Modifier and Type | Method and Description |
---|---|
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) |
PropagationContext |
delete(InternalFactHandle handle,
Object object,
ObjectTypeConf typeConf,
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) |
<T extends org.kie.api.runtime.rule.FactHandle> |
getFactHandles() |
<T extends org.kie.api.runtime.rule.FactHandle> |
getFactHandles(org.kie.api.runtime.ObjectFilter filter) |
FactHandleFactory |
getHandleFactory() |
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() |
PropagationContextFactory |
getPctxFactory() |
TraitHelper |
getTraitHelper() |
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,
boolean dynamic,
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,
BitMask mask,
Class<?> modifiedClass,
Activation activation) |
InternalFactHandle |
update(InternalFactHandle handle,
Object object,
BitMask mask,
Class<?> modifiedClass,
Activation activation) |
void |
update(InternalFactHandle handle,
Object object,
Object originalObject,
ObjectTypeConf typeConf,
RuleImpl rule,
PropagationContext propagationContext) |
protected static final 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
protected TraitHelper traitHelper
public NamedEntryPoint(EntryPointId entryPoint, EntryPointNode entryPointNode, StatefulKnowledgeSessionImpl wm)
public NamedEntryPoint(EntryPointId entryPoint, EntryPointNode entryPointNode, StatefulKnowledgeSessionImpl wm, ReentrantLock lock)
public void lock()
public void unlock()
public void reset()
reset
in interface InternalWorkingMemoryEntryPoint
public ObjectStore getObjectStore()
getObjectStore
in interface InternalWorkingMemoryEntryPoint
public EntryPointNode getEntryPointNode()
getEntryPointNode
in interface InternalWorkingMemoryEntryPoint
public FactHandleFactory getHandleFactory()
getHandleFactory
in interface InternalWorkingMemoryEntryPoint
public org.kie.api.runtime.rule.FactHandle insert(Object object)
WorkingMemoryEntryPoint
insert
in interface WorkingMemoryEntryPoint
insert
in interface org.kie.api.runtime.rule.EntryPoint
object
- The fact object.WorkingMemory
public org.kie.api.runtime.rule.FactHandle insert(Object object, boolean dynamic)
WorkingMemoryEntryPoint
PropertyChangeListeners
on the Object to automatically trigger update
calls
if dynamic
is true
.insert
in interface WorkingMemoryEntryPoint
object
- The fact object.dynamic
- true if Drools should add JavaBean
PropertyChangeListeners
to the object.public org.kie.api.runtime.rule.FactHandle insert(Object object, boolean dynamic, 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 WorkingMemoryEntryPoint
update
in interface org.kie.api.runtime.rule.EntryPoint
factHandle
- 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, BitMask mask, Class<?> modifiedClass, Activation activation)
update
in interface InternalWorkingMemoryEntryPoint
public InternalFactHandle update(InternalFactHandle handle, Object object, BitMask mask, Class<?> modifiedClass, Activation activation)
public void update(InternalFactHandle handle, Object object, Object originalObject, ObjectTypeConf typeConf, RuleImpl rule, PropagationContext propagationContext)
public void retract(org.kie.api.runtime.rule.FactHandle handle)
WorkingMemoryEntryPoint
retract
in interface WorkingMemoryEntryPoint
retract
in interface org.kie.api.runtime.rule.EntryPoint
handle
- 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
public PropagationContext delete(InternalFactHandle handle, Object object, ObjectTypeConf typeConf, RuleImpl rule, Activation activation)
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 WorkingMemoryEntryPoint
public ObjectTypeConfigurationRegistry getObjectTypeConfigurationRegistry()
getObjectTypeConfigurationRegistry
in interface InternalWorkingMemoryEntryPoint
public InternalKnowledgeBase getKnowledgeBase()
getKnowledgeBase
in interface InternalWorkingMemoryEntryPoint
public org.kie.api.runtime.rule.FactHandle getFactHandle(Object object)
getFactHandle
in interface org.kie.api.runtime.rule.EntryPoint
public EntryPointId getEntryPoint()
getEntryPoint
in interface InternalWorkingMemoryEntryPoint
public InternalWorkingMemory getInternalWorkingMemory()
getInternalWorkingMemory
in interface InternalWorkingMemoryEntryPoint
public org.kie.api.runtime.rule.FactHandle getFactHandleByIdentity(Object object)
getFactHandleByIdentity
in interface InternalWorkingMemoryEntryPoint
public Object getObject(org.kie.api.runtime.rule.FactHandle factHandle)
getObject
in interface org.kie.api.runtime.rule.EntryPoint
public <T extends org.kie.api.runtime.rule.FactHandle> Collection<T> getFactHandles()
getFactHandles
in interface org.kie.api.runtime.rule.EntryPoint
public <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.EntryPoint
public Collection<? extends Object> getObjects()
getObjects
in interface org.kie.api.runtime.rule.EntryPoint
public Collection<? extends Object> getObjects(org.kie.api.runtime.ObjectFilter filter)
getObjects
in interface org.kie.api.runtime.rule.EntryPoint
public String getEntryPointId()
getEntryPointId
in interface org.kie.api.runtime.rule.EntryPoint
public long getFactCount()
getFactCount
in interface org.kie.api.runtime.rule.EntryPoint
public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface PropertyChangeListener
public void dispose()
WorkingMemoryEntryPoint
dispose
in interface WorkingMemoryEntryPoint
public void enQueueWorkingMemoryAction(WorkingMemoryAction action)
public TruthMaintenanceSystem getTruthMaintenanceSystem()
getTruthMaintenanceSystem
in interface InternalWorkingMemoryEntryPoint
public PropagationContextFactory getPctxFactory()
public TraitHelper getTraitHelper()
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.