public class SimpleBeliefSet extends LinkedList<SimpleMode> implements BeliefSet<SimpleMode>
LinkedList.JavaUtilIterator<T extends LinkedListNode<T>>, LinkedList.LinkedListFastIterator, LinkedList.LinkedListIterator<T extends LinkedListNode<T>>
Modifier and Type | Field and Description |
---|---|
protected BeliefSystem |
beliefSystem |
protected InternalFactHandle |
fh |
protected WorkingMemoryAction |
wmAction |
fastIterator
Constructor and Description |
---|
SimpleBeliefSet() |
SimpleBeliefSet(BeliefSystem beliefSystem,
InternalFactHandle fh) |
Modifier and Type | Method and Description |
---|---|
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 |
setWorkingMemoryAction(WorkingMemoryAction wmAction) |
add, addFirst, addLast, clear, contains, equals, fastIterator, get, getFirst, getLast, hashCode, insertAfter, isEmpty, iterator, javaUtilIterator, readExternal, remove, removeFirst, removeLast, size, writeExternal
protected BeliefSystem beliefSystem
protected InternalFactHandle fh
protected WorkingMemoryAction wmAction
public SimpleBeliefSet(BeliefSystem beliefSystem, InternalFactHandle fh)
public SimpleBeliefSet()
public BeliefSystem getBeliefSystem()
getBeliefSystem
in interface BeliefSet<SimpleMode>
public InternalFactHandle getFactHandle()
getFactHandle
in interface BeliefSet<SimpleMode>
public void cancel(PropagationContext context)
BeliefSet
cancel
in interface BeliefSet<SimpleMode>
public void clear(PropagationContext context)
BeliefSet
clear
in interface BeliefSet<SimpleMode>
public WorkingMemoryAction getWorkingMemoryAction()
public void setWorkingMemoryAction(WorkingMemoryAction wmAction)
setWorkingMemoryAction
in interface BeliefSet<SimpleMode>
public boolean isNegated()
isNegated
in interface BeliefSet<SimpleMode>
public boolean isDecided()
isDecided
in interface BeliefSet<SimpleMode>
public boolean isConflicting()
isConflicting
in interface BeliefSet<SimpleMode>
public boolean isPositive()
isPositive
in interface BeliefSet<SimpleMode>
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.