Class TruthMaintenanceSystemEqualityKey

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable

    public class TruthMaintenanceSystemEqualityKey
    extends org.drools.core.common.EqualityKey
    Upon instantiation the EqualityKey caches the first Object's hashCode this can never change. The EqualityKey has an internal datastructure which references all the handles which are equal. It also records Whether the referenced facts are JUSTIFIED or STATED
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.drools.core.util.LinkedList

        org.drools.core.util.LinkedList.JavaUtilIterator<T extends org.drools.core.util.LinkedListNode<T>>, org.drools.core.util.LinkedList.LinkedListFastIterator<K extends org.drools.core.util.Entry<K>>, org.drools.core.util.LinkedList.LinkedListIterator<T extends org.drools.core.util.LinkedListNode<T>>
    • Field Summary

      • Fields inherited from class org.drools.core.common.EqualityKey

        JUSTIFIED, STATED
      • Fields inherited from class org.drools.core.util.LinkedList

        fastIterator
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      BeliefSet getBeliefSet()  
      org.drools.core.common.InternalFactHandle getLogicalFactHandle()  
      void setBeliefSet​(BeliefSet beliefSet)  
      void setLogicalFactHandle​(org.drools.core.common.InternalFactHandle logicalFactHandle)  
      • Methods inherited from class org.drools.core.common.EqualityKey

        addFactHandle, equals, getFactHandle, getStatus, hashCode, readExternal, removeFactHandle, setStatus, toString, writeExternal
      • Methods inherited from class org.drools.core.util.LinkedList

        add, addFirst, addLast, clear, contains, fastIterator, get, getFirst, getLast, insertAfter, isEmpty, iterator, javaUtilIterator, remove, removeFirst, removeLast, size
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TruthMaintenanceSystemEqualityKey

        public TruthMaintenanceSystemEqualityKey()
      • TruthMaintenanceSystemEqualityKey

        public TruthMaintenanceSystemEqualityKey​(org.drools.core.common.InternalFactHandle handle)
      • TruthMaintenanceSystemEqualityKey

        public TruthMaintenanceSystemEqualityKey​(org.drools.core.common.InternalFactHandle handle,
                                                 int status)
    • Method Detail

      • getLogicalFactHandle

        public org.drools.core.common.InternalFactHandle getLogicalFactHandle()
        Specified by:
        getLogicalFactHandle in class org.drools.core.common.EqualityKey
      • setLogicalFactHandle

        public void setLogicalFactHandle​(org.drools.core.common.InternalFactHandle logicalFactHandle)
        Specified by:
        setLogicalFactHandle in class org.drools.core.common.EqualityKey
      • getBeliefSet

        public BeliefSet getBeliefSet()
      • setBeliefSet

        public void setBeliefSet​(BeliefSet beliefSet)