Drools :: Core 6.0.0.Beta5

org.drools.core.factmodel.traits
Class TypeHierarchy<T>

java.lang.Object
  extended by org.drools.core.util.CodedHierarchyImpl<T>
      extended by org.drools.core.factmodel.traits.TypeHierarchy<T>
All Implemented Interfaces:
Externalizable, Serializable, TypeLattice<T>, CodedHierarchy<T>
Direct Known Subclasses:
TraitTypeMap

public class TypeHierarchy<T>
extends CodedHierarchyImpl<T>
implements TypeLattice<T>, Externalizable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.drools.core.util.CodedHierarchyImpl
CodedHierarchyImpl.HierCodeComparator, CodedHierarchyImpl.HierNode<T>
 
Field Summary
 
Fields inherited from class org.drools.core.util.CodedHierarchyImpl
fixedRoot, line
 
Constructor Summary
TypeHierarchy()
           
TypeHierarchy(T topElement, BitSet topKey, T bottomElement, BitSet bottomKey)
           
 
Method Summary
 BitSet getBottomCode()
           
 BitSet getTopCode()
           
 void readExternal(ObjectInput objectInput)
           
 void setBottomCode(BitSet bottom)
           
 void setTopCode(BitSet top)
           
 String toString()
           
 void writeExternal(ObjectOutput objectOutput)
           
 
Methods inherited from class org.drools.core.util.CodedHierarchyImpl
add, addMember, ancestorNodes, ancestors, ancestors, ancestorValues, children, children, childrenValues, clear, contains, descendantNodes, descendants, descendants, descendantValues, getCode, getMember, getNode, getNodeByKey, getNodes, getSortedMap, getSortedMembers, hasKey, immediateChildren, immediateParents, joinCode, jointMembersCode, lowerBorder, lowerDescendants, meetCode, metMembersCode, parents, parents, parentValues, remove, removeMember, removeMember, size, stringToBitSet, supersetOrEqualset, toBinaryString, toBinaryString, upperAncestors, upperBorder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.drools.core.util.CodedHierarchy
addMember, ancestors, ancestors, children, children, descendants, descendants, getCode, getMember, getSortedMap, getSortedMembers, hasKey, immediateChildren, immediateParents, joinCode, jointMembersCode, lowerBorder, lowerDescendants, meetCode, metMembersCode, parents, parents, removeMember, removeMember, size, upperAncestors, upperBorder
 

Constructor Detail

TypeHierarchy

public TypeHierarchy()

TypeHierarchy

public TypeHierarchy(T topElement,
                     BitSet topKey,
                     T bottomElement,
                     BitSet bottomKey)
Method Detail

writeExternal

public void writeExternal(ObjectOutput objectOutput)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class CodedHierarchyImpl<T>
Throws:
IOException

readExternal

public void readExternal(ObjectInput objectInput)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class CodedHierarchyImpl<T>
Throws:
IOException
ClassNotFoundException

toString

public String toString()
Overrides:
toString in class CodedHierarchyImpl<T>

getTopCode

public BitSet getTopCode()
Specified by:
getTopCode in interface TypeLattice<T>

getBottomCode

public BitSet getBottomCode()
Specified by:
getBottomCode in interface TypeLattice<T>

setBottomCode

public void setBottomCode(BitSet bottom)
Specified by:
setBottomCode in interface TypeLattice<T>

setTopCode

public void setTopCode(BitSet top)
Specified by:
setTopCode in interface TypeLattice<T>

Drools :: Core 6.0.0.Beta5

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