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:
Externalizable,Serializable,BeliefSet<M>,JTMSBeliefSet<M>
public class JTMSBeliefSetImpl<M extends JTMSMode<M>>
extends LinkedList<M>
implements JTMSBeliefSet<M>
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.drools.core.util.LinkedList
LinkedList.JavaUtilIterator<T extends DoubleLinkedEntry<T>>, LinkedList.LinkedListFastIterator, LinkedList.LinkedListIterator<T extends DoubleLinkedEntry<T>>, LinkedList.TMSLinkedListFastIterator<K extends SingleLinkedEntry<K>> -
Field Summary
Fields inherited from class org.drools.core.util.LinkedList
fastIterator -
Constructor Summary
ConstructorsConstructorDescriptionJTMSBeliefSetImpl(BeliefSystem<M> beliefSystem, InternalFactHandle rootHandle) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcancel(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 wherebooleanbooleanbooleanbooleanvoidvoidsetWorkingMemoryAction(WorkingMemoryAction wmAction) Methods inherited from class org.drools.core.util.LinkedList
addAllToCollection, addFirst, addLast, clear, contains, copyStateInto, equals, fastIterator, get, get, getFirst, getLast, hashCode, insertAfter, isEmpty, javaUtilIterator, readExternal, removeAdd, removeFirst, removeLast, size, writeExternalMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.drools.tms.beliefsystem.BeliefSet
fastIterator, getFirst, isEmpty, sizeMethods inherited from interface org.drools.tms.beliefsystem.jtms.JTMSBeliefSet
getLast
-
Constructor Details
-
JTMSBeliefSetImpl
-
JTMSBeliefSetImpl
public JTMSBeliefSetImpl()
-
-
Method Details
-
add
-
remove
-
getBeliefSystem
- Specified by:
getBeliefSystemin interfaceBeliefSet<M extends JTMSMode<M>>
-
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
Description copied from interface:BeliefSetThis will remove all entries and do clean up, like retract FHs. -
clear
Description copied from interface:BeliefSetThis will remove all entries, but not do cleanup, the FH is most likely needed else where -
setWorkingMemoryAction
- Specified by:
setWorkingMemoryActionin interfaceBeliefSet<M extends JTMSMode<M>>
-
getWorkingMemoryAction
-