Drools :: Core 6.2.0.Final

org.drools.core.beliefsystem.simple
Class SimpleBeliefSet

java.lang.Object
  extended by org.drools.core.util.LinkedList<SimpleMode>
      extended by 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 inherited from class org.drools.core.util.LinkedList
fastIterator
 
Constructor Summary
SimpleBeliefSet(BeliefSystem beliefSystem, InternalFactHandle fh)
           
 
Method Summary
 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 isNegated()
           
 boolean isPositive()
           
 boolean isUndecided()
           
 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.core.beliefsystem.BeliefSet
add, getFirst, isEmpty, iterator, remove, size
 

Constructor Detail

SimpleBeliefSet

public SimpleBeliefSet(BeliefSystem beliefSystem,
                       InternalFactHandle fh)
Method Detail

getBeliefSystem

public BeliefSystem getBeliefSystem()
Specified by:
getBeliefSystem in interface BeliefSet<SimpleMode>

getFactHandle

public InternalFactHandle getFactHandle()
Specified by:
getFactHandle in interface BeliefSet<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 interface BeliefSet<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 interface BeliefSet<SimpleMode>

getWorkingMemoryAction

public WorkingMemoryAction getWorkingMemoryAction()

setWorkingMemoryAction

public void setWorkingMemoryAction(WorkingMemoryAction wmAction)
Specified by:
setWorkingMemoryAction in interface BeliefSet<SimpleMode>

isNegated

public boolean isNegated()
Specified by:
isNegated in interface BeliefSet<SimpleMode>

isUndecided

public boolean isUndecided()
Specified by:
isUndecided in interface BeliefSet<SimpleMode>

isConflicting

public boolean isConflicting()
Specified by:
isConflicting in interface BeliefSet<SimpleMode>

isPositive

public boolean isPositive()
Specified by:
isPositive in interface BeliefSet<SimpleMode>

Drools :: Core 6.2.0.Final

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.