Class JTMSBeliefSetImpl<M extends JTMSMode<M>>
- java.lang.Object
-
- org.drools.core.util.LinkedList<M>
-
- org.drools.core.beliefsystem.jtms.JTMSBeliefSetImpl<M>
-
- All Implemented Interfaces:
Externalizable,Serializable,BeliefSet<M>,JTMSBeliefSet<M>
public class JTMSBeliefSetImpl<M extends JTMSMode<M>> extends LinkedList<M> implements JTMSBeliefSet<M>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJTMSBeliefSetImpl.MODE-
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 inherited from class org.drools.core.util.LinkedList
fastIterator
-
-
Constructor Summary
Constructors Constructor Description JTMSBeliefSetImpl()JTMSBeliefSetImpl(BeliefSystem<M> beliefSystem, InternalFactHandle rootHandle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(M node)Add aLinkedListNodeto the list.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()voidremove(M node)Removes aLinkedListNodefrom the list.voidsetWorkingMemoryAction(WorkingMemoryAction wmAction)-
Methods inherited from class org.drools.core.util.LinkedList
addFirst, addLast, clear, contains, equals, fastIterator, get, getFirst, getLast, hashCode, insertAfter, isEmpty, iterator, javaUtilIterator, readExternal, removeFirst, removeLast, size, writeExternal
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.core.beliefsystem.BeliefSet
getFirst, isEmpty, iterator, size
-
Methods inherited from interface org.drools.core.beliefsystem.jtms.JTMSBeliefSet
getLast
-
-
-
-
Constructor Detail
-
JTMSBeliefSetImpl
public JTMSBeliefSetImpl(BeliefSystem<M> beliefSystem, InternalFactHandle rootHandle)
-
JTMSBeliefSetImpl
public JTMSBeliefSetImpl()
-
-
Method Detail
-
add
public void add(M node)
Description copied from class:LinkedListAdd aLinkedListNodeto the list. If theLinkedListis empty then the first and last nodes are set to the added node.
-
remove
public void remove(M node)
Description copied from class:LinkedListRemoves aLinkedListNodefrom the list. This works by attach the previous reference to the child reference. When the node to be removed is the first node it callsremoveFirst(). When the node to be removed is the last node it callsremoveLast().
-
getBeliefSystem
public BeliefSystem getBeliefSystem()
- Specified by:
getBeliefSystemin interfaceBeliefSet<M extends JTMSMode<M>>
-
getFactHandle
public InternalFactHandle getFactHandle()
- Specified by:
getFactHandlein interfaceBeliefSet<M extends JTMSMode<M>>
-
isNegated
public boolean isNegated()
-
isDecided
public boolean isDecided()
-
isConflicting
public boolean isConflicting()
- Specified by:
isConflictingin interfaceBeliefSet<M extends JTMSMode<M>>
-
isPositive
public boolean isPositive()
- Specified by:
isPositivein interfaceBeliefSet<M extends JTMSMode<M>>
-
cancel
public void cancel(PropagationContext context)
Description copied from interface:BeliefSetThis will remove all entries and do clean up, like retract FHs.
-
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
-
setWorkingMemoryAction
public void setWorkingMemoryAction(WorkingMemoryAction wmAction)
- Specified by:
setWorkingMemoryActionin interfaceBeliefSet<M extends JTMSMode<M>>
-
getWorkingMemoryAction
public WorkingMemoryAction getWorkingMemoryAction()
-
-