|
Drools :: Core 6.0.0.Beta5 | |||||||||
| 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 EntryPoint |
entryPoint
|
protected EntryPointNode |
entryPointNode
|
protected ReentrantLock |
lock
|
protected static org.slf4j.Logger |
log
|
protected ObjectStore |
objectStore
|
protected InternalRuleBase |
ruleBase
|
| Constructor Summary | |
|---|---|
NamedEntryPoint(EntryPoint entryPoint,
EntryPointNode entryPointNode,
AbstractWorkingMemory wm)
|
|
NamedEntryPoint(EntryPoint entryPoint,
EntryPointNode entryPointNode,
AbstractWorkingMemory wm,
ReentrantLock lock)
|
|
| Method Summary | ||
|---|---|---|
protected void |
addPropertyChangeListener(InternalFactHandle handle,
boolean dynamicFlag)
|
|
void |
delete(org.kie.api.runtime.rule.FactHandle handle)
|
|
void |
delete(FactHandle factHandle,
Rule 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)
|
|
EntryPoint |
getEntryPoint()
|
|
String |
getEntryPointId()
|
|
EntryPointNode |
getEntryPointNode()
|
|
long |
getFactCount()
|
|
FactHandle |
getFactHandle(Object object)
|
|
FactHandle |
getFactHandleByIdentity(Object object)
|
|
|
getFactHandles()
|
|
|
getFactHandles(org.kie.api.runtime.ObjectFilter filter)
|
|
InternalWorkingMemory |
getInternalWorkingMemory()
|
|
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()
|
|
RuleBase |
getRuleBase()
|
|
TruthMaintenanceSystem |
getTruthMaintenanceSystem()
|
|
WorkingMemoryEntryPoint |
getWorkingMemoryEntryPoint(String name)
|
|
void |
insert(InternalFactHandle handle,
Object object,
Rule rule,
Activation activation,
ObjectTypeConf typeConf,
PropagationContext pctx)
|
|
FactHandle |
insert(Object object)
Assert a fact. |
|
FactHandle |
insert(Object object,
boolean dynamic)
Insert a fact registering JavaBean PropertyChangeListeners
on the Object to automatically trigger update calls
if dynamic is true. |
|
protected FactHandle |
insert(Object object,
Object tmsValue,
boolean dynamic,
boolean logical,
Rule rule,
Activation activation)
|
|
void |
propertyChange(PropertyChangeEvent event)
|
|
protected void |
removePropertyChangeListener(FactHandle handle,
boolean removeFromSet)
|
|
void |
reset()
|
|
void |
retract(org.kie.api.runtime.rule.FactHandle handle)
Retract a fact. |
|
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 InternalRuleBase ruleBase
protected EntryPoint entryPoint
protected EntryPointNode entryPointNode
protected final ReentrantLock lock
protected Set<InternalFactHandle> dynamicFacts
| Constructor Detail |
|---|
public NamedEntryPoint(EntryPoint entryPoint,
EntryPointNode entryPointNode,
AbstractWorkingMemory wm)
public NamedEntryPoint(EntryPoint entryPoint,
EntryPointNode entryPointNode,
AbstractWorkingMemory wm,
ReentrantLock lock)
| Method Detail |
|---|
public void reset()
reset in interface InternalWorkingMemoryEntryPointpublic ObjectStore getObjectStore()
getObjectStore in interface InternalWorkingMemoryEntryPointpublic EntryPointNode getEntryPointNode()
getEntryPointNode in interface InternalWorkingMemoryEntryPoint
public FactHandle insert(Object object)
throws FactException
WorkingMemoryEntryPoint
insert in interface WorkingMemoryEntryPointinsert in interface org.kie.api.runtime.rule.SessionEntryPointobject - The fact object.
FactException - If a RuntimeException error occurs.WorkingMemory
public FactHandle insert(Object object,
boolean dynamic)
throws FactException
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.
FactException - If a RuntimeException error occurs.
protected FactHandle insert(Object object,
Object tmsValue,
boolean dynamic,
boolean logical,
Rule rule,
Activation activation)
throws FactException
FactException
public void insert(InternalFactHandle handle,
Object object,
Rule rule,
Activation activation,
ObjectTypeConf typeConf,
PropagationContext pctx)
public void update(org.kie.api.runtime.rule.FactHandle factHandle,
Object object)
throws FactException
WorkingMemoryEntryPoint
update in interface WorkingMemoryEntryPointupdate in interface org.kie.api.runtime.rule.SessionEntryPointfactHandle - The fact-handle associated with the fact to modify.object - The new value of the fact.
FactException - If a RuntimeException error occurs.
public void update(org.kie.api.runtime.rule.FactHandle factHandle,
Object object,
long mask,
Class<?> modifiedClass,
Activation activation)
throws FactException
update in interface InternalWorkingMemoryEntryPointFactException
public InternalFactHandle update(InternalFactHandle handle,
boolean updateLogical,
Object object,
long mask,
Class<?> modifiedClass,
Activation activation)
throws FactException
FactException
public void retract(org.kie.api.runtime.rule.FactHandle handle)
throws FactException
WorkingMemoryEntryPoint
retract in interface WorkingMemoryEntryPointretract in interface org.kie.api.runtime.rule.SessionEntryPointhandle - The fact-handle associated with the fact to retract.
FactException - If a RuntimeException error occurs.
public void delete(org.kie.api.runtime.rule.FactHandle handle)
throws FactException
delete in interface org.kie.api.runtime.rule.SessionEntryPointFactException
public void delete(FactHandle factHandle,
Rule rule,
Activation activation)
throws FactException
delete in interface InternalWorkingMemoryEntryPointFactException
protected void addPropertyChangeListener(InternalFactHandle handle,
boolean dynamicFlag)
protected void removePropertyChangeListener(FactHandle handle,
boolean removeFromSet)
public WorkingMemoryEntryPoint getWorkingMemoryEntryPoint(String name)
getWorkingMemoryEntryPoint in interface WorkingMemoryEntryPointpublic ObjectTypeConfigurationRegistry getObjectTypeConfigurationRegistry()
getObjectTypeConfigurationRegistry in interface InternalWorkingMemoryEntryPointpublic RuleBase getRuleBase()
getRuleBase in interface InternalWorkingMemoryEntryPointpublic FactHandle getFactHandle(Object object)
getFactHandle in interface org.kie.api.runtime.rule.SessionEntryPointpublic EntryPoint getEntryPoint()
getEntryPoint in interface InternalWorkingMemoryEntryPointpublic InternalWorkingMemory getInternalWorkingMemory()
getInternalWorkingMemory in interface InternalWorkingMemoryEntryPointpublic 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.SessionEntryPointpublic <T extends org.kie.api.runtime.rule.FactHandle> Collection<T> getFactHandles()
getFactHandles in interface org.kie.api.runtime.rule.SessionEntryPointpublic <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.SessionEntryPointpublic Collection<? extends Object> getObjects()
getObjects in interface org.kie.api.runtime.rule.SessionEntryPointpublic Collection<? extends Object> getObjects(org.kie.api.runtime.ObjectFilter filter)
getObjects in interface org.kie.api.runtime.rule.SessionEntryPointpublic String getEntryPointId()
getEntryPointId in interface org.kie.api.runtime.rule.SessionEntryPointpublic long getFactCount()
getFactCount in interface org.kie.api.runtime.rule.SessionEntryPointpublic 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.0.0.Beta5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||