public class JTMSBeliefSetImpl<M extends JTMSMode<M>> extends LinkedList<M> implements JTMSBeliefSet<M>
| Modifier and Type | Class and Description |
|---|---|
static class |
JTMSBeliefSetImpl.MODE |
LinkedList.JavaUtilIterator<T extends LinkedListNode<T>>, LinkedList.LinkedListFastIterator, LinkedList.LinkedListIterator<T extends LinkedListNode<T>>fastIterator| Constructor and Description |
|---|
JTMSBeliefSetImpl() |
JTMSBeliefSetImpl(BeliefSystem<M> beliefSystem,
InternalFactHandle rootHandle) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(M node)
Add a
LinkedListNode to the list. |
void |
cancel(PropagationContext context)
This will remove all entries and do clean up, like retract FHs.
|
void |
clear(PropagationContext context)
This will remove all entries, but not do cleanup, the FH is most likely needed else where
|
BeliefSystem |
getBeliefSystem() |
InternalFactHandle |
getFactHandle() |
WorkingMemoryAction |
getWorkingMemoryAction() |
boolean |
isConflicting() |
boolean |
isDecided() |
boolean |
isNegated() |
boolean |
isPositive() |
void |
remove(M node)
Removes a
LinkedListNode from the list. |
void |
setWorkingMemoryAction(WorkingMemoryAction wmAction) |
addFirst, addLast, clear, contains, equals, fastIterator, get, getFirst, getLast, hashCode, insertAfter, isEmpty, iterator, javaUtilIterator, readExternal, removeFirst, removeLast, size, writeExternalclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetLastpublic JTMSBeliefSetImpl(BeliefSystem<M> beliefSystem, InternalFactHandle rootHandle)
public JTMSBeliefSetImpl()
public void add(M node)
LinkedListLinkedListNode to the list. If the LinkedList is empty then the first and
last nodes are set to the added node.public void remove(M node)
LinkedListLinkedListNode from the list. This works by attach the previous reference to the child reference.
When the node to be removed is the first node it calls removeFirst(). When the node to be removed is the last node
it calls removeLast().public BeliefSystem getBeliefSystem()
getBeliefSystem in interface BeliefSet<M extends JTMSMode<M>>public InternalFactHandle getFactHandle()
getFactHandle in interface BeliefSet<M extends JTMSMode<M>>public boolean isNegated()
public boolean isDecided()
public boolean isConflicting()
isConflicting in interface BeliefSet<M extends JTMSMode<M>>public boolean isPositive()
isPositive in interface BeliefSet<M extends JTMSMode<M>>public void cancel(PropagationContext context)
BeliefSetpublic void clear(PropagationContext context)
BeliefSetpublic void setWorkingMemoryAction(WorkingMemoryAction wmAction)
setWorkingMemoryAction in interface BeliefSet<M extends JTMSMode<M>>public WorkingMemoryAction getWorkingMemoryAction()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.