| java.lang.Object org.drools.common.BaseNode org.drools.reteoo.ObjectSource org.drools.reteoo.Rete
Rete | public class Rete extends ObjectSource implements Serializable,ObjectSink,NodeMemory(Code) | | The Rete-OO network.
The Rete class is the root Object . All objects are asserted into
the Rete node where it propagates to all matching ObjectTypeNodes.
The first time an instance of a Class type is asserted it does a full
iteration of all ObjectTyppeNodes looking for matches, any matches are
then cached in a HashMap which is used for future assertions.
While Rete extends ObjectSource nad implements ObjectSink it nulls the
methods attach(), remove() and updateNewNode() as this is the root node
they are no applicable
See Also: ObjectTypeNode author: Mark Proctor author: Bob McWhirter |
Inner Class :public static interface ObjectTypeConf | |
Inner Class :public static class FactTemplateTypeConf implements ObjectTypeConf,Serializable | |
Inner Class :public static class ClassObjectTypeConf implements ObjectTypeConf,Serializable | |
addObjectSink | protected void addObjectSink(ObjectSink objectSink)(Code) | | Adds the TupleSink so that it may receive
Tuples propagated from this TupleSource .
Parameters: tupleSink - The TupleSink to receive propagatedTuples . |
assertObject | public void assertObject(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory)(Code) | | This is the entry point into the network for all asserted Facts. Iterates a cache
of matching ObjectTypdeNode s asserting the Fact. If the cache does not
exist it first iteraes and builds the cache.
Parameters: handle - The FactHandle of the fact to assert Parameters: context - The PropagationContext of the WorkingMemory action Parameters: workingMemory - The working memory session. |
attach | public void attach()(Code) | | |
hashCode | public int hashCode()(Code) | | |
retractObject | public void retractObject(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory)(Code) | | Retract a fact object from this RuleBase and the specified
WorkingMemory .
Parameters: handle - The handle of the fact to retract. Parameters: workingMemory - The working memory session. |
|
|