Class BreadthFirstExpandCollection<N>
java.lang.Object
org.processmining.framework.util.search.DepthFirstExpandCollection<N>
org.processmining.framework.util.search.BreadthFirstExpandCollection<N>
- All Implemented Interfaces:
ExpandCollection<N>
-
Field Summary
Fields inherited from class org.processmining.framework.util.search.DepthFirstExpandCollection
stack
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Collection<? extends N> newElements) Adds the given elements to the collection.Methods inherited from class org.processmining.framework.util.search.DepthFirstExpandCollection
isEmpty, pop
-
Constructor Details
-
BreadthFirstExpandCollection
public BreadthFirstExpandCollection()
-
-
Method Details
-
add
Description copied from interface:ExpandCollection
Adds the given elements to the collection. Note that implementing classes may safely assume that the calling thread owns the monitor, i.e. there is no need to synchronize on the collection retained by this expandcollection and removals are allowed. Furthermore, the implementing class may decide not to include any of the given newElements if it decides that they are not to be investigated further.- Specified by:
add
in interfaceExpandCollection<N>
- Overrides:
add
in classDepthFirstExpandCollection<N>
- Parameters:
newElements
- the nodes to expand further
-