Class SimpleBeliefSet
- java.lang.Object
-
- org.drools.core.util.LinkedList<SimpleMode>
-
- org.drools.core.beliefsystem.simple.SimpleBeliefSet
-
- All Implemented Interfaces:
Externalizable
,Serializable
,BeliefSet<SimpleMode>
public class SimpleBeliefSet extends LinkedList<SimpleMode> implements BeliefSet<SimpleMode>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.drools.core.util.LinkedList
LinkedList.JavaUtilIterator<T extends LinkedListNode<T>>, LinkedList.LinkedListFastIterator, LinkedList.LinkedListIterator<T extends LinkedListNode<T>>
-
-
Field Summary
Fields Modifier and Type Field Description protected BeliefSystem
beliefSystem
protected InternalFactHandle
fh
protected WorkingMemoryAction
wmAction
-
Fields inherited from class org.drools.core.util.LinkedList
fastIterator
-
-
Constructor Summary
Constructors Constructor Description SimpleBeliefSet()
SimpleBeliefSet(BeliefSystem beliefSystem, InternalFactHandle fh)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 whereBeliefSystem
getBeliefSystem()
InternalFactHandle
getFactHandle()
WorkingMemoryAction
getWorkingMemoryAction()
boolean
isConflicting()
boolean
isDecided()
boolean
isNegated()
boolean
isPositive()
void
setWorkingMemoryAction(WorkingMemoryAction wmAction)
-
Methods inherited from class org.drools.core.util.LinkedList
add, addFirst, addLast, clear, contains, equals, fastIterator, get, getFirst, getLast, hashCode, insertAfter, isEmpty, iterator, javaUtilIterator, readExternal, remove, removeFirst, removeLast, size, writeExternal
-
-
-
-
Field Detail
-
beliefSystem
protected BeliefSystem beliefSystem
-
fh
protected InternalFactHandle fh
-
wmAction
protected WorkingMemoryAction wmAction
-
-
Constructor Detail
-
SimpleBeliefSet
public SimpleBeliefSet(BeliefSystem beliefSystem, InternalFactHandle fh)
-
SimpleBeliefSet
public SimpleBeliefSet()
-
-
Method Detail
-
getBeliefSystem
public BeliefSystem getBeliefSystem()
- Specified by:
getBeliefSystem
in interfaceBeliefSet<SimpleMode>
-
getFactHandle
public InternalFactHandle getFactHandle()
- Specified by:
getFactHandle
in interfaceBeliefSet<SimpleMode>
-
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 interfaceBeliefSet<SimpleMode>
-
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 interfaceBeliefSet<SimpleMode>
-
getWorkingMemoryAction
public WorkingMemoryAction getWorkingMemoryAction()
-
setWorkingMemoryAction
public void setWorkingMemoryAction(WorkingMemoryAction wmAction)
- Specified by:
setWorkingMemoryAction
in interfaceBeliefSet<SimpleMode>
-
isNegated
public boolean isNegated()
- Specified by:
isNegated
in interfaceBeliefSet<SimpleMode>
-
isDecided
public boolean isDecided()
- Specified by:
isDecided
in interfaceBeliefSet<SimpleMode>
-
isConflicting
public boolean isConflicting()
- Specified by:
isConflicting
in interfaceBeliefSet<SimpleMode>
-
isPositive
public boolean isPositive()
- Specified by:
isPositive
in interfaceBeliefSet<SimpleMode>
-
-