Package org.drools.core.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 void
add(M node)
void
cancel(PropagationContext propagationContext)
This will remove all entries and do clean up, like retract FHs.void
clear(PropagationContext propagationContext)
This will remove all entries, but not do cleanup, the FH is most likely needed else whereBeliefSystem
getBeliefSystem()
InternalFactHandle
getFactHandle()
M
getFirst()
boolean
isConflicting()
boolean
isDecided()
boolean
isEmpty()
boolean
isNegated()
boolean
isPositive()
FastIterator
iterator()
void
remove(M node)
void
setWorkingMemoryAction(WorkingMemoryAction wmAction)
int
size()
-
-
-
Method Detail
-
getBeliefSystem
BeliefSystem getBeliefSystem()
-
getFactHandle
InternalFactHandle getFactHandle()
-
getFirst
M getFirst()
-
iterator
FastIterator iterator()
-
add
void add(M node)
-
remove
void remove(M node)
-
isEmpty
boolean isEmpty()
-
size
int size()
-
cancel
void cancel(PropagationContext propagationContext)
This will remove all entries and do clean up, like retract FHs.- Parameters:
propagationContext
-
-
clear
void clear(PropagationContext propagationContext)
This will remove all entries, but not do cleanup, the FH is most likely needed else where- Parameters:
propagationContext
-
-
setWorkingMemoryAction
void setWorkingMemoryAction(WorkingMemoryAction wmAction)
-
isNegated
boolean isNegated()
-
isDecided
boolean isDecided()
-
isConflicting
boolean isConflicting()
-
isPositive
boolean isPositive()
-
-