public abstract class AbstractBitwiseHierarchyImpl<H,J extends LatticeElement<H>> extends Object implements Externalizable, org.drools.core.util.CodedHierarchy<H>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractBitwiseHierarchyImpl.HierCodeComparator |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
fixedRoot |
protected SortedMap<BitSet,J> |
line |
| Constructor and Description |
|---|
AbstractBitwiseHierarchyImpl() |
protected SortedMap<BitSet,J extends LatticeElement<H>> line
protected boolean fixedRoot
public int size()
size in interface org.drools.core.util.CodedHierarchy<H>protected void remove(J node)
protected boolean contains(J node)
public BitSet getCode(H val)
getCode in interface org.drools.core.util.CodedHierarchy<H>public BitSet metMembersCode(Collection<H> vals)
metMembersCode in interface org.drools.core.util.CodedHierarchy<H>public BitSet jointMembersCode(Collection<H> vals)
jointMembersCode in interface org.drools.core.util.CodedHierarchy<H>public BitSet meetCode(Collection<BitSet> codes)
meetCode in interface org.drools.core.util.CodedHierarchy<H>public BitSet joinCode(Collection<BitSet> codes)
joinCode in interface org.drools.core.util.CodedHierarchy<H>public List<H> getSortedMembers()
getSortedMembers in interface org.drools.core.util.CodedHierarchy<H>public Collection<H> upperAncestors(BitSet key)
upperAncestors in interface org.drools.core.util.CodedHierarchy<H>public Collection<H> lowerBorder(BitSet key)
lowerBorder in interface org.drools.core.util.CodedHierarchy<H>key - a key, possibly the meet of a number of member keyspublic Collection<H> immediateChildren(BitSet key)
immediateChildren in interface org.drools.core.util.CodedHierarchy<H>key - a key, possibly the meet of a number of member keysprotected int numBit(BitSet x)
public void writeExternal(ObjectOutput objectOutput) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput objectInput) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void removeMember(H val)
removeMember in interface org.drools.core.util.CodedHierarchy<H>public void removeMember(BitSet key)
removeMember in interface org.drools.core.util.CodedHierarchy<H>public Map<H,BitSet> getSortedMap()
getSortedMap in interface org.drools.core.util.CodedHierarchy<H>public boolean hasKey(BitSet key)
hasKey in interface org.drools.core.util.CodedHierarchy<H>public Collection<H> lowerDescendants(BitSet key)
lowerDescendants in interface org.drools.core.util.CodedHierarchy<H>protected abstract Collection<H> parentValues(J node)
public Collection<H> parents(H x)
parents in interface org.drools.core.util.CodedHierarchy<H>public Collection<H> parents(BitSet x)
parents in interface org.drools.core.util.CodedHierarchy<H>public Collection<H> upperBorder(BitSet key)
upperBorder in interface org.drools.core.util.CodedHierarchy<H>public Collection<H> immediateParents(BitSet key)
immediateParents in interface org.drools.core.util.CodedHierarchy<H>public boolean isEmpty()
public void clear()
protected void add(J node)
protected Collection<J> getNodes()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.