Drools :: Core 6.2.0.CR4

org.drools.core.beliefsystem.simple
Class SimpleBeliefSystem

java.lang.Object
  extended by org.drools.core.beliefsystem.simple.SimpleBeliefSystem
All Implemented Interfaces:
BeliefSystem<SimpleMode>

public class SimpleBeliefSystem
extends Object
implements BeliefSystem<SimpleMode>

Default implementation emulates classical Drools TMS behaviour.


Constructor Summary
SimpleBeliefSystem(NamedEntryPoint ep, TruthMaintenanceSystem tms)
           
 
Method Summary
 void delete(LogicalDependency<SimpleMode> node, BeliefSet<SimpleMode> 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.
 TruthMaintenanceSystem getTruthMaintenanceSystem()
           
 void insert(LogicalDependency<SimpleMode> node, BeliefSet<SimpleMode> beliefSet, PropagationContext context, ObjectTypeConf typeConf)
          TypeConf is already available, so we pass it, to avoid additional lookups
 BeliefSet newBeliefSet(InternalFactHandle fh)
           
 LogicalDependency newLogicalDependency(Activation activation, BeliefSet beliefSet, Object object, Object value)
           
 void read(LogicalDependency<SimpleMode> node, BeliefSet<SimpleMode> 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(NamedEntryPoint ep,
                          TruthMaintenanceSystem tms)
Method Detail

getTruthMaintenanceSystem

public TruthMaintenanceSystem getTruthMaintenanceSystem()
Specified by:
getTruthMaintenanceSystem in interface BeliefSystem<SimpleMode>

insert

public void insert(LogicalDependency<SimpleMode> node,
                   BeliefSet<SimpleMode> 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<SimpleMode>

read

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

delete

public void delete(LogicalDependency<SimpleMode> node,
                   BeliefSet<SimpleMode> 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<SimpleMode>

newBeliefSet

public BeliefSet newBeliefSet(InternalFactHandle fh)
Specified by:
newBeliefSet in interface BeliefSystem<SimpleMode>

newLogicalDependency

public LogicalDependency newLogicalDependency(Activation activation,
                                              BeliefSet beliefSet,
                                              Object object,
                                              Object value)
Specified by:
newLogicalDependency in interface BeliefSystem<SimpleMode>

Drools :: Core 6.2.0.CR4

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