org.drools.core.beliefsystem.jtms
Class JTMSBeliefSet
java.lang.Object
org.drools.core.util.LinkedList
org.drools.core.beliefsystem.jtms.JTMSBeliefSet
- All Implemented Interfaces:
- Externalizable, Serializable, BeliefSet
public class JTMSBeliefSet
- extends LinkedList
- implements BeliefSet
- See Also:
- Serialized Form
| Methods inherited from class org.drools.core.util.LinkedList |
addLast, clear, equals, fastIterator, get, getFirst, getLast, hashCode, insertAfter, isEmpty, iterator, javaUtilIterator, readExternal, removeFirst, removeLast, size, writeExternal |
JTMSBeliefSet
public JTMSBeliefSet(BeliefSystem beliefSystem,
InternalFactHandle rootHandle)
getPositiveFactHandle
public InternalFactHandle getPositiveFactHandle()
setPositiveFactHandle
public void setPositiveFactHandle(InternalFactHandle positiveFactHandle)
getNegativeFactHandle
public InternalFactHandle getNegativeFactHandle()
setNegativeFactHandle
public void setNegativeFactHandle(InternalFactHandle negativeFactHandle)
add
public void add(LinkedListNode node)
- Description copied from class:
LinkedList
- Add a
LinkedListNode to the list. If the LinkedList is empty then the first and
last nodes are set to the added node.
- Specified by:
add in interface BeliefSet- Overrides:
add in class LinkedList
- Parameters:
node - The LinkedListNode to be added
remove
public void remove(LinkedListNode node)
- Description copied from class:
LinkedList
- Removes a
LinkedListNode 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().
- Specified by:
remove in interface BeliefSet- Overrides:
remove in class LinkedList
- Parameters:
node - The LinkedListNode to be removed.
getBeliefSystem
public BeliefSystem getBeliefSystem()
- Specified by:
getBeliefSystem in interface BeliefSet
getFactHandle
public InternalFactHandle getFactHandle()
- Specified by:
getFactHandle in interface BeliefSet
isNegated
public boolean isNegated()
isConflicting
public boolean isConflicting()
isPositive
public boolean isPositive()
cancel
public void cancel(PropagationContext context)
- Description copied from interface:
BeliefSet
- This will remove all entries and do clean up, like retract FHs.
- Specified by:
cancel in interface BeliefSet
clear
public void clear(PropagationContext context)
- Description copied from interface:
BeliefSet
- This will remove all entries, but not do cleanup, the FH is most likely needed else where
- Specified by:
clear in interface BeliefSet
setWorkingMemoryAction
public void setWorkingMemoryAction(WorkingMemoryAction wmAction)
- Specified by:
setWorkingMemoryAction in interface BeliefSet
getWorkingMemoryAction
public WorkingMemoryAction getWorkingMemoryAction()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.