Package org.drools.tms.beliefsystem.jtms
Class JTMSBeliefSetImpl<M extends JTMSMode<M>>
- java.lang.Object
-
- org.drools.core.util.LinkedList<M>
-
- org.drools.tms.beliefsystem.jtms.JTMSBeliefSetImpl<M>
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,BeliefSet<M>,JTMSBeliefSet<M>
public class JTMSBeliefSetImpl<M extends JTMSMode<M>> extends org.drools.core.util.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
org.drools.core.util.LinkedList.JavaUtilIterator<T extends org.drools.core.util.LinkedListNode<T>>, org.drools.core.util.LinkedList.LinkedListFastIterator<K extends org.drools.core.util.Entry<K>>, org.drools.core.util.LinkedList.LinkedListIterator<T extends org.drools.core.util.LinkedListNode<T>>
-
-
Constructor Summary
Constructors Constructor Description JTMSBeliefSetImpl()JTMSBeliefSetImpl(BeliefSystem<M> beliefSystem, org.drools.core.common.InternalFactHandle rootHandle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(M node)voidcancel(org.drools.core.common.PropagationContext context)This will remove all entries and do clean up, like retract FHs.voidclear(org.drools.core.common.PropagationContext context)This will remove all entries, but not do cleanup, the FH is most likely needed else whereBeliefSystemgetBeliefSystem()org.drools.core.common.InternalFactHandlegetFactHandle()org.drools.core.common.WorkingMemoryActiongetWorkingMemoryAction()booleanisConflicting()booleanisDecided()booleanisNegated()booleanisPositive()voidremove(M node)voidsetWorkingMemoryAction(org.drools.core.common.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.tms.beliefsystem.BeliefSet
getFirst, isEmpty, iterator, size
-
Methods inherited from interface org.drools.tms.beliefsystem.jtms.JTMSBeliefSet
getLast
-
-
-
-
Constructor Detail
-
JTMSBeliefSetImpl
public JTMSBeliefSetImpl(BeliefSystem<M> beliefSystem, org.drools.core.common.InternalFactHandle rootHandle)
-
JTMSBeliefSetImpl
public JTMSBeliefSetImpl()
-
-
Method Detail
-
add
public void add(M node)
-
remove
public void remove(M node)
-
getBeliefSystem
public BeliefSystem getBeliefSystem()
- Specified by:
getBeliefSystemin interfaceBeliefSet<M extends JTMSMode<M>>
-
getFactHandle
public org.drools.core.common.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(org.drools.core.common.PropagationContext context)
Description copied from interface:BeliefSetThis will remove all entries and do clean up, like retract FHs.
-
clear
public void clear(org.drools.core.common.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(org.drools.core.common.WorkingMemoryAction wmAction)
- Specified by:
setWorkingMemoryActionin interfaceBeliefSet<M extends JTMSMode<M>>
-
getWorkingMemoryAction
public org.drools.core.common.WorkingMemoryAction getWorkingMemoryAction()
-
-