Class SimpleBeliefSet
- java.lang.Object
-
- org.drools.core.util.LinkedList<SimpleMode>
-
- org.drools.core.beliefsystem.simple.SimpleBeliefSet
-
- All Implemented Interfaces:
Externalizable,Serializable,BeliefSet<SimpleMode>
public class SimpleBeliefSet extends LinkedList<SimpleMode> implements BeliefSet<SimpleMode>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.drools.core.util.LinkedList
LinkedList.JavaUtilIterator<T extends LinkedListNode<T>>, LinkedList.LinkedListFastIterator, LinkedList.LinkedListIterator<T extends LinkedListNode<T>>
-
-
Field Summary
Fields Modifier and Type Field Description protected BeliefSystembeliefSystemprotected InternalFactHandlefhprotected WorkingMemoryActionwmAction-
Fields inherited from class org.drools.core.util.LinkedList
fastIterator
-
-
Constructor Summary
Constructors Constructor Description SimpleBeliefSet()SimpleBeliefSet(BeliefSystem beliefSystem, InternalFactHandle fh)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel(PropagationContext context)This will remove all entries and do clean up, like retract FHs.voidclear(PropagationContext context)This will remove all entries, but not do cleanup, the FH is most likely needed else whereBeliefSystemgetBeliefSystem()InternalFactHandlegetFactHandle()WorkingMemoryActiongetWorkingMemoryAction()booleanisConflicting()booleanisDecided()booleanisNegated()booleanisPositive()voidsetWorkingMemoryAction(WorkingMemoryAction wmAction)-
Methods inherited from class org.drools.core.util.LinkedList
add, addFirst, addLast, clear, contains, equals, fastIterator, get, getFirst, getLast, hashCode, insertAfter, isEmpty, iterator, javaUtilIterator, readExternal, remove, removeFirst, removeLast, size, writeExternal
-
-
-
-
Field Detail
-
beliefSystem
protected BeliefSystem beliefSystem
-
fh
protected InternalFactHandle fh
-
wmAction
protected WorkingMemoryAction wmAction
-
-
Constructor Detail
-
SimpleBeliefSet
public SimpleBeliefSet(BeliefSystem beliefSystem, InternalFactHandle fh)
-
SimpleBeliefSet
public SimpleBeliefSet()
-
-
Method Detail
-
getBeliefSystem
public BeliefSystem getBeliefSystem()
- Specified by:
getBeliefSystemin interfaceBeliefSet<SimpleMode>
-
getFactHandle
public InternalFactHandle getFactHandle()
- Specified by:
getFactHandlein interfaceBeliefSet<SimpleMode>
-
cancel
public void cancel(PropagationContext context)
Description copied from interface:BeliefSetThis will remove all entries and do clean up, like retract FHs.- Specified by:
cancelin interfaceBeliefSet<SimpleMode>
-
clear
public void clear(PropagationContext context)
Description copied from interface:BeliefSetThis will remove all entries, but not do cleanup, the FH is most likely needed else where- Specified by:
clearin interfaceBeliefSet<SimpleMode>
-
getWorkingMemoryAction
public WorkingMemoryAction getWorkingMemoryAction()
-
setWorkingMemoryAction
public void setWorkingMemoryAction(WorkingMemoryAction wmAction)
- Specified by:
setWorkingMemoryActionin interfaceBeliefSet<SimpleMode>
-
isNegated
public boolean isNegated()
- Specified by:
isNegatedin interfaceBeliefSet<SimpleMode>
-
isDecided
public boolean isDecided()
- Specified by:
isDecidedin interfaceBeliefSet<SimpleMode>
-
isConflicting
public boolean isConflicting()
- Specified by:
isConflictingin interfaceBeliefSet<SimpleMode>
-
isPositive
public boolean isPositive()
- Specified by:
isPositivein interfaceBeliefSet<SimpleMode>
-
-