Drools :: Core 6.2.0.CR4

org.drools.core.common
Class TruthMaintenanceSystem

java.lang.Object
  extended by org.drools.core.common.TruthMaintenanceSystem

public class TruthMaintenanceSystem
extends Object

The Truth Maintenance System is responsible for tracking two things. Firstly It maintains a Map to track the classes with the same Equality, using the EqualityKey. The EqualityKey has an internal datastructure which references all the handles which are equal. Secondly It maintains another map tracking the justificiations for logically asserted facts.


Constructor Summary
TruthMaintenanceSystem()
           
TruthMaintenanceSystem(StatefulKnowledgeSessionImpl wm, NamedEntryPoint ep)
           
 
Method Summary
 void addLogicalDependency(InternalFactHandle handle, Object object, Object value, Activation activation, PropagationContext context, RuleImpl rule, ObjectTypeConf typeConf)
           
 void addLogicalDependency(InternalFactHandle handle, Object object, Object value, Activation activation, PropagationContext context, RuleImpl rule, ObjectTypeConf typeConf, boolean read)
           
 void clear()
           
 EqualityKey get(EqualityKey key)
           
 EqualityKey get(Object object)
           
 BeliefSystem getBeliefSystem()
           
 ObjectHashMap getEqualityKeyMap()
           
 Object put(EqualityKey key)
           
 void readLogicalDependency(InternalFactHandle handle, Object object, Object value, Activation activation, PropagationContext context, RuleImpl rule, ObjectTypeConf typeConf)
          Adds a justification for the FactHandle to the justifiedMap.
 EqualityKey remove(EqualityKey key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TruthMaintenanceSystem

public TruthMaintenanceSystem()

TruthMaintenanceSystem

public TruthMaintenanceSystem(StatefulKnowledgeSessionImpl wm,
                              NamedEntryPoint ep)
Method Detail

getEqualityKeyMap

public ObjectHashMap getEqualityKeyMap()

put

public Object put(EqualityKey key)

get

public EqualityKey get(EqualityKey key)

get

public EqualityKey get(Object object)

remove

public EqualityKey remove(EqualityKey key)

readLogicalDependency

public void readLogicalDependency(InternalFactHandle handle,
                                  Object object,
                                  Object value,
                                  Activation activation,
                                  PropagationContext context,
                                  RuleImpl rule,
                                  ObjectTypeConf typeConf)
Adds a justification for the FactHandle to the justifiedMap.

Parameters:
handle -
activation -
context -
rule -
typeConf -

addLogicalDependency

public void addLogicalDependency(InternalFactHandle handle,
                                 Object object,
                                 Object value,
                                 Activation activation,
                                 PropagationContext context,
                                 RuleImpl rule,
                                 ObjectTypeConf typeConf)

addLogicalDependency

public void addLogicalDependency(InternalFactHandle handle,
                                 Object object,
                                 Object value,
                                 Activation activation,
                                 PropagationContext context,
                                 RuleImpl rule,
                                 ObjectTypeConf typeConf,
                                 boolean read)

clear

public void clear()

getBeliefSystem

public BeliefSystem getBeliefSystem()

Drools :: Core 6.2.0.CR4

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.