public class JTMSBeliefSystem<M extends JTMSMode<M>> extends Object implements BeliefSystem<M>
| Modifier and Type | Field and Description |
|---|---|
protected NamedEntryPoint |
ep |
protected static org.slf4j.Logger |
log |
static boolean |
STRICT |
| Constructor and Description |
|---|
JTMSBeliefSystem(NamedEntryPoint ep,
TruthMaintenanceSystem tms) |
| Modifier and Type | Method and Description |
|---|---|
M |
asMode(Object value) |
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.
|
void |
delete(M mode,
RuleImpl rule,
Activation activation,
Object payload,
BeliefSet<M> beliefSet,
PropagationContext context) |
TruthMaintenanceSystem |
getTruthMaintenanceSystem() |
BeliefSet<M> |
insert(LogicalDependency<M> node,
BeliefSet<M> beliefSet,
PropagationContext context,
ObjectTypeConf typeConf)
TypeConf is already available, so we pass it, to avoid additional lookups
|
BeliefSet<M> |
insert(M mode,
RuleImpl rule,
Activation activation,
Object payload,
BeliefSet<M> beliefSet,
PropagationContext context,
ObjectTypeConf typeConf) |
BeliefSet |
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) |
protected static final transient org.slf4j.Logger log
public static boolean STRICT
protected NamedEntryPoint ep
public JTMSBeliefSystem(NamedEntryPoint ep, TruthMaintenanceSystem tms)
public TruthMaintenanceSystem getTruthMaintenanceSystem()
getTruthMaintenanceSystem in interface BeliefSystem<M extends JTMSMode<M>>public BeliefSet<M> insert(M mode, RuleImpl rule, Activation activation, Object payload, BeliefSet<M> beliefSet, PropagationContext context, ObjectTypeConf typeConf)
insert in interface BeliefSystem<M extends JTMSMode<M>>public BeliefSet<M> insert(LogicalDependency<M> node, BeliefSet<M> beliefSet, PropagationContext context, ObjectTypeConf typeConf)
BeliefSysteminsert in interface BeliefSystem<M extends JTMSMode<M>>public void read(LogicalDependency<M> node, BeliefSet<M> beliefSet, PropagationContext context, ObjectTypeConf typeConf)
read in interface BeliefSystem<M extends JTMSMode<M>>public void delete(LogicalDependency<M> node, BeliefSet<M> beliefSet, PropagationContext context)
BeliefSystemdelete in interface BeliefSystem<M extends JTMSMode<M>>public void delete(M mode, RuleImpl rule, Activation activation, Object payload, BeliefSet<M> beliefSet, PropagationContext context)
delete in interface BeliefSystem<M extends JTMSMode<M>>public void stage(PropagationContext context, BeliefSet<M> beliefSet)
stage in interface BeliefSystem<M extends JTMSMode<M>>public void unstage(PropagationContext context, BeliefSet<M> beliefSet)
unstage in interface BeliefSystem<M extends JTMSMode<M>>public BeliefSet newBeliefSet(InternalFactHandle fh)
newBeliefSet in interface BeliefSystem<M extends JTMSMode<M>>public LogicalDependency newLogicalDependency(Activation<M> activation, BeliefSet<M> beliefSet, Object object, Object value)
newLogicalDependency in interface BeliefSystem<M extends JTMSMode<M>>Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.