Package org.drools.traits.core.factmodel
Interface CodedHierarchy<T>
- All Known Subinterfaces:
HierarchyEncoder<T>,TypeLattice<T>
- All Known Implementing Classes:
AbstractBitwiseHierarchyImpl,AbstractCodedHierarchyImpl,CodedHierarchyImpl,HierarchyEncoderImpl,IndexedTypeHierarchy,TraitFieldImpl.DefaultValueHierarchy,TraitRegistryImpl.CachingHierarcyEncoderImpl,TraitTypeMapImpl,TypeHierarchy
public interface CodedHierarchy<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoiddescendants(BitSet key) descendants(T y) booleanimmediateChildren(BitSet key) * Return the "ceiling" of the key's descendants, excluding the element whose code is key, if anyimmediateParents(BitSet key) Return the "floor" of the key's ancetsors, down to and excluding the element whose code is keyjoinCode(Collection<BitSet> codes) jointMembersCode(Collection<T> vals) lowerBorder(BitSet key) Return the "ceiling" of the key's descendants, up to and including the element whose code is keylowerDescendants(BitSet key) Returns all elements whose code is a descendant of keymeetCode(Collection<BitSet> codes) metMembersCode(Collection<T> vals) voidremoveMember(BitSet key) voidremoveMember(T val) intsize()upperAncestors(BitSet key) Returns all elements whose code is an ancestor of keyupperBorder(BitSet key) Return the "floor" of the key's ancestors, down to and including the element whose code is key, if any
-
Method Details
-
size
int size() -
addMember
-
removeMember
-
removeMember
-
getCode
-
metMembersCode
-
jointMembersCode
-
meetCode
-
joinCode
-
getSortedMembers
-
getSortedMap
-
getMember
-
hasKey
-
children
-
descendants
-
children
-
descendants
-
lowerBorder
Return the "ceiling" of the key's descendants, up to and including the element whose code is key- Parameters:
key- a key, possibly the join of a number of member keys- Returns:
-
immediateChildren
* Return the "ceiling" of the key's descendants, excluding the element whose code is key, if any- Parameters:
key- a key, possibly the join of a number of member keys- Returns:
-
lowerDescendants
Returns all elements whose code is a descendant of key- Parameters:
key-- Returns:
-
parents
-
parents
-
ancestors
-
ancestors
-
upperBorder
Return the "floor" of the key's ancestors, down to and including the element whose code is key, if any- Parameters:
key- a key, possibly the meet of a number of member keys- Returns:
-
immediateParents
Return the "floor" of the key's ancetsors, down to and excluding the element whose code is key- Parameters:
key- a key, possibly the meet of a number of member keys- Returns:
-
upperAncestors
Returns all elements whose code is an ancestor of key- Parameters:
key-- Returns:
-