Class JTMSBeliefSystem<M extends JTMSMode<M>>
- java.lang.Object
-
- org.drools.core.beliefsystem.jtms.JTMSBeliefSystem<M>
-
- All Implemented Interfaces:
BeliefSystem<M>
- Direct Known Subclasses:
DefeasibleBeliefSystem
public class JTMSBeliefSystem<M extends JTMSMode<M>> extends Object implements BeliefSystem<M>
-
-
Field Summary
Fields Modifier and Type Field Description protected InternalWorkingMemoryEntryPointepprotected static org.slf4j.Loggerlogstatic booleanSTRICT
-
Constructor Summary
Constructors Constructor Description JTMSBeliefSystem(InternalWorkingMemoryEntryPoint ep, TruthMaintenanceSystem tms)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MasMode(Object value)voiddelete(M mode, RuleImpl rule, Activation activation, Object payload, BeliefSet<M> beliefSet, PropagationContext context)voiddelete(LogicalDependency<M> node, BeliefSet<M> 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.TruthMaintenanceSystemgetTruthMaintenanceSystem()BeliefSet<M>insert(M mode, RuleImpl rule, Activation activation, Object payload, BeliefSet<M> beliefSet, PropagationContext context, ObjectTypeConf typeConf)BeliefSet<M>insert(LogicalDependency<M> node, BeliefSet<M> beliefSet, PropagationContext context, ObjectTypeConf typeConf)TypeConf is already available, so we pass it, to avoid additional lookupsBeliefSetnewBeliefSet(InternalFactHandle fh)LogicalDependencynewLogicalDependency(Activation<M> activation, BeliefSet<M> beliefSet, Object object, Object value)voidread(LogicalDependency<M> node, BeliefSet<M> beliefSet, PropagationContext context, ObjectTypeConf typeConf)voidstage(PropagationContext context, BeliefSet<M> beliefSet)voidunstage(PropagationContext context, BeliefSet<M> beliefSet)
-
-
-
Field Detail
-
log
protected static final org.slf4j.Logger log
-
STRICT
public static boolean STRICT
-
ep
protected InternalWorkingMemoryEntryPoint ep
-
-
Constructor Detail
-
JTMSBeliefSystem
public JTMSBeliefSystem(InternalWorkingMemoryEntryPoint ep, TruthMaintenanceSystem tms)
-
-
Method Detail
-
getTruthMaintenanceSystem
public TruthMaintenanceSystem getTruthMaintenanceSystem()
- Specified by:
getTruthMaintenanceSystemin interfaceBeliefSystem<M extends JTMSMode<M>>
-
insert
public BeliefSet<M> insert(M mode, RuleImpl rule, Activation activation, Object payload, BeliefSet<M> beliefSet, PropagationContext context, ObjectTypeConf typeConf)
- Specified by:
insertin interfaceBeliefSystem<M extends JTMSMode<M>>- Returns:
-
insert
public BeliefSet<M> insert(LogicalDependency<M> node, BeliefSet<M> beliefSet, PropagationContext context, ObjectTypeConf typeConf)
Description copied from interface:BeliefSystemTypeConf is already available, so we pass it, to avoid additional lookups- Specified by:
insertin interfaceBeliefSystem<M extends JTMSMode<M>>
-
read
public void read(LogicalDependency<M> node, BeliefSet<M> beliefSet, PropagationContext context, ObjectTypeConf typeConf)
- Specified by:
readin interfaceBeliefSystem<M extends JTMSMode<M>>
-
delete
public void delete(LogicalDependency<M> node, BeliefSet<M> beliefSet, PropagationContext context)
Description copied from interface:BeliefSystemThe typeConf has not yet been looked up, so we leave it to the implementation to decide if it needs it or not.- Specified by:
deletein interfaceBeliefSystem<M extends JTMSMode<M>>
-
delete
public void delete(M mode, RuleImpl rule, Activation activation, Object payload, BeliefSet<M> beliefSet, PropagationContext context)
- Specified by:
deletein interfaceBeliefSystem<M extends JTMSMode<M>>
-
stage
public void stage(PropagationContext context, BeliefSet<M> beliefSet)
- Specified by:
stagein interfaceBeliefSystem<M extends JTMSMode<M>>
-
unstage
public void unstage(PropagationContext context, BeliefSet<M> beliefSet)
- Specified by:
unstagein interfaceBeliefSystem<M extends JTMSMode<M>>
-
newBeliefSet
public BeliefSet newBeliefSet(InternalFactHandle fh)
- Specified by:
newBeliefSetin interfaceBeliefSystem<M extends JTMSMode<M>>
-
newLogicalDependency
public LogicalDependency newLogicalDependency(Activation<M> activation, BeliefSet<M> beliefSet, Object object, Object value)
- Specified by:
newLogicalDependencyin interfaceBeliefSystem<M extends JTMSMode<M>>
-
-