public final class DefaultCospanDecompositionAlgorithm extends Object implements CospanDecompositionAlgorithm
Cospan
object into
an atomic cospan decomposition, represented by a CospanDecomposition
object.
The algorithm does the following:
CospanDecompositionAlgorithm.Implementations
Algorithm.OrderingType, Algorithm.SearchType
Constructor and Description |
---|
DefaultCospanDecompositionAlgorithm() |
Modifier and Type | Method and Description |
---|---|
void |
addComputationListener(ComputationListener l)
Adds the Computation Listener
l to this algorithm. |
void |
cancelComputation()
Cancels the computation of this algorithm.
|
CospanDecomposition |
decompose(Cospan cospan)
Returns a cospan decomposition of the cospan
cospan . |
void |
removeComputationListener(ComputationListener l)
Removes the Computation Listener
l from this algorithm. |
public CospanDecomposition decompose(Cospan cospan)
CospanDecompositionAlgorithm
cospan
.decompose
in interface CospanDecompositionAlgorithm
cospan
- the cospan to be decomposedpublic void addComputationListener(ComputationListener l)
Algorithm
l
to this algorithm.addComputationListener
in interface Algorithm
l
- the listener to receive computation eventspublic void removeComputationListener(ComputationListener l)
Algorithm
l
from this algorithm.removeComputationListener
in interface Algorithm
l
- the listener to be removedpublic void cancelComputation()
Algorithm
cancelComputation
in interface Algorithm