public class CospanDecomposeAction extends ComputationAction<CospanDecomposition>
Constructor and Description |
---|
CospanDecomposeAction(Cospan cospan)
Creates a new
Action to decompose the cospan cospan . |
Modifier and Type | Method and Description |
---|---|
void |
addComputationListener(ComputationListener l)
Adds the Computation Listener
l to this action. |
void |
cancelComputation()
Cancels the computation started by execution of this
ComputationAction . |
void |
execute()
Causes this action to begin execution.
|
CospanDecomposition |
getResult()
Returns the result of the computation.
|
void |
removeComputationListener(ComputationListener l)
Removes the Computation Listener
l from this action. |
getElapsedTime
public CospanDecomposeAction(Cospan cospan)
Action
to decompose the cospan cospan
.cospan
- the cospan to be decomposedpublic void execute()
Action
public CospanDecomposition getResult()
ComputationAction
getResult
in class ComputationAction<CospanDecomposition>
public void addComputationListener(ComputationListener l)
ComputationAction
l
to this action.addComputationListener
in class ComputationAction<CospanDecomposition>
l
- the listener to receive computation eventspublic void removeComputationListener(ComputationListener l)
ComputationAction
l
from this action.removeComputationListener
in class ComputationAction<CospanDecomposition>
l
- the listener to be removedpublic void cancelComputation()
ComputationAction
ComputationAction
.cancelComputation
in class ComputationAction<CospanDecomposition>
Action.execute()