|
Knowledge API Legacy5 Adapter 6.1.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.impl.adapters.WorkingMemoryEntryPointAdapter
public class WorkingMemoryEntryPointAdapter
| Constructor Summary | |
|---|---|
WorkingMemoryEntryPointAdapter(org.kie.api.runtime.rule.EntryPoint delegate)
|
|
| Method Summary | ||
|---|---|---|
boolean |
equals(Object obj)
|
|
String |
getEntryPointId()
Returns the String Id of this entry point |
|
long |
getFactCount()
Returns the total number of facts currently in this entry point |
|
FactHandle |
getFactHandle(Object object)
Returns the fact handle associated with the given object. |
|
|
getFactHandles()
Returns all FactHandles from the current session. |
|
|
getFactHandles(ObjectFilter filter)
Returns all FactHandles from the current session for which the facts are accepted by
the given filter. |
|
Object |
getObject(FactHandle factHandle)
Returns the object associated with the given FactHandle. |
|
Collection<Object> |
getObjects()
Returns all facts from the current session as a Collection. |
|
Collection<Object> |
getObjects(ObjectFilter filter)
Returns all facts from the current session that are accepted by the given ObjectFilter. |
|
int |
hashCode()
|
|
FactHandle |
insert(Object object)
Inserts a new fact into this entry point |
|
void |
retract(FactHandle handle)
Retracts the fact for which the given FactHandle was assigned. |
|
void |
update(FactHandle handle,
Object object)
Updates the fact for which the given FactHandle was assigned with the new fact set as the second parameter in this method. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkingMemoryEntryPointAdapter(org.kie.api.runtime.rule.EntryPoint delegate)
| Method Detail |
|---|
public String getEntryPointId()
WorkingMemoryEntryPoint
getEntryPointId in interface WorkingMemoryEntryPointpublic FactHandle insert(Object object)
WorkingMemoryEntryPoint
insert in interface WorkingMemoryEntryPointobject - the fact to be inserted
public void retract(FactHandle handle)
WorkingMemoryEntryPoint
retract in interface WorkingMemoryEntryPointhandle - the handle whose fact is to be retracted.
public void update(FactHandle handle,
Object object)
WorkingMemoryEntryPoint
update in interface WorkingMemoryEntryPointhandle - the FactHandle for the fact to be updated.object - the new value for the fact being updated.public FactHandle getFactHandle(Object object)
WorkingMemoryEntryPoint
getFactHandle in interface WorkingMemoryEntryPointobject - the fact for which the fact handle will be returned.
KnowledgeBaseConfigurationpublic Object getObject(FactHandle factHandle)
WorkingMemoryEntryPoint
getObject in interface WorkingMemoryEntryPointpublic Collection<Object> getObjects()
WorkingMemoryEntryPointReturns all facts from the current session as a Collection.
This class is not a general-purpose Collection implementation! While this class implements the Collection interface, it intentionally violates Collection general contract, which mandates the use of the equals method when comparing objects.
Instead the approach used when comparing objects with the contains(Object) method is dependent on the WorkingMemory configuration, where it can be configured for Identity or for Equality.
getObjects in interface WorkingMemoryEntryPointpublic Collection<Object> getObjects(ObjectFilter filter)
WorkingMemoryEntryPointObjectFilter.
getObjects in interface WorkingMemoryEntryPointfilter - the filter to be applied to the returned collection of facts.
public <T extends FactHandle> Collection<T> getFactHandles()
WorkingMemoryEntryPointFactHandles from the current session.
getFactHandles in interface WorkingMemoryEntryPointpublic <T extends FactHandle> Collection<T> getFactHandles(ObjectFilter filter)
WorkingMemoryEntryPointFactHandles from the current session for which the facts are accepted by
the given filter.
getFactHandles in interface WorkingMemoryEntryPointfilter - the filter to be applied to the returned collection of FactHandles.
public long getFactCount()
WorkingMemoryEntryPoint
getFactCount in interface WorkingMemoryEntryPointpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
Knowledge API Legacy5 Adapter 6.1.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||