expandNode
public java.util.Collection<AlphaPairImpl<java.util.Collection<E>,java.util.Collection<E>>> expandNode(AlphaPairImpl<java.util.Collection<E>,java.util.Collection<E>> toExpand,
org.processmining.framework.plugin.Progress progress,
java.util.Collection<AlphaPairImpl<java.util.Collection<E>,java.util.Collection<E>>> unmodifiableResultCollection)
Description copied from interface: org.processmining.framework.util.search.NodeExpander
This method is called by the searcher when a node in the search tree has
to be considered for expansion. The node to expand is given as a
parameter and the method should return a collection of nodes representing
the children of this node. If the node turns out to be a leaf, an empty
collection has to be returned.
- Specified by:
expandNode
in interface org.processmining.framework.util.search.NodeExpander<AlphaPairImpl<java.util.Collection<E>,java.util.Collection<E>>>
- Overrides:
expandNode
in class AlphaClassicNodeExpanderImpl<E>
- Parameters:
toExpand
- The node to expand.
progress
- The progress indicator provided to the searcher in which this
expander is registered. The expander may increment the
progress, but it should check for cancellation, especially
when doing long computations.
unmodifiableResultCollection
- the leafs of the search space that have been added to the
resultCollection by the processLeaf method. Note that any
access to this collection should be synchronized and this
collection should not be modified in this method. However the
provided collection is modifiable, as for synchronization
purposes, the actual resultCollection is provided.
- Returns:
- A collection of child nodes, or an empty collection if this node
turns out to be a leaf.