Package org.drools.tms.beliefsystem
Interface BeliefSet<M extends ModedAssertion<M>>
-
- All Known Subinterfaces:
JTMSBeliefSet<M>
- All Known Implementing Classes:
DefeasibleBeliefSet,JTMSBeliefSetImpl,SimpleBeliefSet
public interface BeliefSet<M extends ModedAssertion<M>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(M node)voidcancel(org.drools.core.common.PropagationContext propagationContext)This will remove all entries and do clean up, like retract FHs.voidclear(org.drools.core.common.PropagationContext propagationContext)This will remove all entries, but not do cleanup, the FH is most likely needed else whereBeliefSystemgetBeliefSystem()org.drools.core.common.InternalFactHandlegetFactHandle()MgetFirst()booleanisConflicting()booleanisDecided()booleanisEmpty()booleanisNegated()booleanisPositive()org.drools.core.util.FastIteratoriterator()voidremove(M node)voidsetWorkingMemoryAction(org.drools.core.common.WorkingMemoryAction wmAction)intsize()
-
-
-
Method Detail
-
getBeliefSystem
BeliefSystem getBeliefSystem()
-
getFactHandle
org.drools.core.common.InternalFactHandle getFactHandle()
-
getFirst
M getFirst()
-
iterator
org.drools.core.util.FastIterator iterator()
-
add
void add(M node)
-
remove
void remove(M node)
-
isEmpty
boolean isEmpty()
-
size
int size()
-
cancel
void cancel(org.drools.core.common.PropagationContext propagationContext)
This will remove all entries and do clean up, like retract FHs.- Parameters:
propagationContext-
-
clear
void clear(org.drools.core.common.PropagationContext propagationContext)
This will remove all entries, but not do cleanup, the FH is most likely needed else where- Parameters:
propagationContext-
-
setWorkingMemoryAction
void setWorkingMemoryAction(org.drools.core.common.WorkingMemoryAction wmAction)
-
isNegated
boolean isNegated()
-
isDecided
boolean isDecided()
-
isConflicting
boolean isConflicting()
-
isPositive
boolean isPositive()
-
-