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 InternalWorkingMemoryEntryPoint
ep
protected static org.slf4j.Logger
log
static boolean
STRICT
-
Constructor Summary
Constructors Constructor Description JTMSBeliefSystem(InternalWorkingMemoryEntryPoint ep, TruthMaintenanceSystem tms)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description M
asMode(Object value)
void
delete(M mode, RuleImpl rule, Activation activation, Object payload, BeliefSet<M> beliefSet, PropagationContext context)
void
delete(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.TruthMaintenanceSystem
getTruthMaintenanceSystem()
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 lookupsBeliefSet
newBeliefSet(InternalFactHandle fh)
LogicalDependency
newLogicalDependency(Activation<M> activation, BeliefSet<M> beliefSet, Object object, Object value)
void
read(LogicalDependency<M> node, BeliefSet<M> beliefSet, PropagationContext context, ObjectTypeConf typeConf)
void
stage(PropagationContext context, BeliefSet<M> beliefSet)
void
unstage(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:
getTruthMaintenanceSystem
in 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:
insert
in 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:BeliefSystem
TypeConf is already available, so we pass it, to avoid additional lookups- Specified by:
insert
in interfaceBeliefSystem<M extends JTMSMode<M>>
-
read
public void read(LogicalDependency<M> node, BeliefSet<M> beliefSet, PropagationContext context, ObjectTypeConf typeConf)
- Specified by:
read
in interfaceBeliefSystem<M extends JTMSMode<M>>
-
delete
public void delete(LogicalDependency<M> node, BeliefSet<M> 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 interfaceBeliefSystem<M extends JTMSMode<M>>
-
delete
public void delete(M mode, RuleImpl rule, Activation activation, Object payload, BeliefSet<M> beliefSet, PropagationContext context)
- Specified by:
delete
in interfaceBeliefSystem<M extends JTMSMode<M>>
-
stage
public void stage(PropagationContext context, BeliefSet<M> beliefSet)
- Specified by:
stage
in interfaceBeliefSystem<M extends JTMSMode<M>>
-
unstage
public void unstage(PropagationContext context, BeliefSet<M> beliefSet)
- Specified by:
unstage
in interfaceBeliefSystem<M extends JTMSMode<M>>
-
newBeliefSet
public BeliefSet newBeliefSet(InternalFactHandle fh)
- Specified by:
newBeliefSet
in interfaceBeliefSystem<M extends JTMSMode<M>>
-
newLogicalDependency
public LogicalDependency newLogicalDependency(Activation<M> activation, BeliefSet<M> beliefSet, Object object, Object value)
- Specified by:
newLogicalDependency
in interfaceBeliefSystem<M extends JTMSMode<M>>
-
-