org.drools.common
Class SimpleBeliefSystem

java.lang.Object
  extended by org.drools.common.SimpleBeliefSystem
All Implemented Interfaces:
BeliefSystem

public class SimpleBeliefSystem
extends Object
implements BeliefSystem

Default implementation emulates classical Drools TMS behaviour.


Constructor Summary
SimpleBeliefSystem(InternalWorkingMemory wm, TruthMaintenanceSystem tms)
           
 
Method Summary
 void delete(LogicalDependency node, BeliefSet beliefSet, PropagationContext context)
          The typeConf has not yet been looked up, so we leave it to the implementation to decide if it needs it or not.
 void insert(LogicalDependency node, BeliefSet beliefSet, PropagationContext context, ObjectTypeConf typeConf)
          TypeConf is already available, so we pass it, to avoid additional lookups
 BeliefSet newBeliefSet()
           
 LogicalDependency newLogicalDependency(Activation activation, InternalFactHandle handle, Object value)
           
 void read(LogicalDependency node, BeliefSet beliefSet, PropagationContext context, ObjectTypeConf typeConf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleBeliefSystem

public SimpleBeliefSystem(InternalWorkingMemory wm,
                          TruthMaintenanceSystem tms)
Method Detail

insert

public void insert(LogicalDependency node,
                   BeliefSet beliefSet,
                   PropagationContext context,
                   ObjectTypeConf typeConf)
Description copied from interface: BeliefSystem
TypeConf is already available, so we pass it, to avoid additional lookups

Specified by:
insert in interface BeliefSystem

read

public void read(LogicalDependency node,
                 BeliefSet beliefSet,
                 PropagationContext context,
                 ObjectTypeConf typeConf)
Specified by:
read in interface BeliefSystem

delete

public void delete(LogicalDependency node,
                   BeliefSet beliefSet,
                   PropagationContext context)
Description copied from interface: BeliefSystem
The typeConf has not yet been looked up, so we leave it to the implementation to decide if it needs it or not.

Specified by:
delete in interface BeliefSystem

newBeliefSet

public BeliefSet newBeliefSet()
Specified by:
newBeliefSet in interface BeliefSystem

newLogicalDependency

public LogicalDependency newLogicalDependency(Activation activation,
                                              InternalFactHandle handle,
                                              Object value)
Specified by:
newLogicalDependency in interface BeliefSystem


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