Class EnumeratingTree<N extends TreeNode & LocallyExpandable<N>>
- java.lang.Object
-
- org.processmining.specpp.componenting.system.link.AbstractBaseClass
-
- org.processmining.specpp.datastructures.tree.base.impls.EnumeratingTree<N>
-
- All Implemented Interfaces:
FullComponentSystemUser,EfficientTreeComponent<N>,HasComponentCollection,IsGlobalProvider,UsesGlobalComponentSystem,UsesLocalComponentSystem,EfficientTree<N>,DelayedRooting<N>,Tree<N>,Initializable
- Direct Known Subclasses:
EventingEnumeratingTree
public class EnumeratingTree<N extends TreeNode & LocallyExpandable<N>> extends AbstractBaseClass implements EfficientTreeComponent<N>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.processmining.specpp.datastructures.tree.base.traits.DelayedRooting
DelayedRooting.Treexecption
-
-
Constructor Summary
Constructors Constructor Description EnumeratingTree(N root, ExpansionStrategy<N> expansionStrategy)EnumeratingTree(ExpansionStrategy<N> expansionStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanaddLeaf(N node)protected Nexpand()protected NexpandNode(N node)java.util.Collection<N>getLeaves()NgetRoot()protected voidinitSelf()Hook for subclasses to initialize themselves after the initial constructor call.protected voidinsertNewNode(N node)protected voidlastExpansionNotExpandable()protected voidlastProposalNotExpandable()protected voidnodeExpanded(N node, N child)protected voidnotExpandable(N node)protected booleanremoveLeaf(N node)voidsetRootOnce(N root)protected voidsoftExpand(N child)java.lang.StringtoString()NtryExpandingTree()-
Methods inherited from class org.processmining.specpp.componenting.system.link.AbstractBaseClass
collectTransitiveSubcomponents, getComponentCollection, getSubComponents, globalComponentSystem, init, localComponentSystem, postSubComponentInit, preSubComponentInit, registerSubComponent, unregisterSubComponent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.processmining.specpp.componenting.system.FullComponentSystemUser
collectTransitiveSubcomponents, connectLocalComponentSystem, getComponentCollection, registerSubComponent, unregisterSubComponent
-
Methods inherited from interface org.processmining.specpp.traits.Initializable
init
-
Methods inherited from interface org.processmining.specpp.componenting.traits.UsesGlobalComponentSystem
globalComponentSystem
-
Methods inherited from interface org.processmining.specpp.componenting.traits.UsesLocalComponentSystem
bridgeToChildren, localComponentSystem
-
-
-
-
Field Detail
-
root
protected N extends TreeNode & LocallyExpandable<N> root
-
leaves
protected final java.util.Set<N extends TreeNode & LocallyExpandable<N>> leaves
-
-
Constructor Detail
-
EnumeratingTree
public EnumeratingTree(ExpansionStrategy<N> expansionStrategy)
-
EnumeratingTree
public EnumeratingTree(N root, ExpansionStrategy<N> expansionStrategy)
-
-
Method Detail
-
getRoot
public N getRoot()
-
setRootOnce
public void setRootOnce(N root)
- Specified by:
setRootOncein interfaceDelayedRooting<N extends TreeNode & LocallyExpandable<N>>
-
getLeaves
public java.util.Collection<N> getLeaves()
- Specified by:
getLeavesin interfaceEfficientTree<N extends TreeNode & LocallyExpandable<N>>
-
insertNewNode
protected void insertNewNode(N node)
-
addLeaf
protected boolean addLeaf(N node)
-
removeLeaf
protected boolean removeLeaf(N node)
-
softExpand
protected void softExpand(N child)
-
expand
protected N expand()
-
lastProposalNotExpandable
protected void lastProposalNotExpandable()
-
lastExpansionNotExpandable
protected void lastExpansionNotExpandable()
-
notExpandable
protected void notExpandable(N node)
-
tryExpandingTree
public N tryExpandingTree()
- Specified by:
tryExpandingTreein interfaceEfficientTree<N extends TreeNode & LocallyExpandable<N>>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
initSelf
protected void initSelf()
Description copied from class:AbstractBaseClassHook for subclasses to initialize themselves after the initial constructor call. At the time this is called, all fulfillable local & global component system requests will be fulfilled. Unless advanced interaction with the underlying systems is required, this is the only relevant hook for user-defined subclasses.- Specified by:
initSelfin classAbstractBaseClass
-
-