public class LibTWGreedyFillInAction extends ComputationAction<TreeDecomposition>
Constructor and Description |
---|
LibTWGreedyFillInAction(Graph graph)
Creates a new
Action to start the Greedy Fill-In algorithm decomposing the graph
graph . |
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.
|
TreeDecomposition |
getResult()
Returns the result of the computation.
|
void |
removeComputationListener(ComputationListener l)
Removes the Computation Listener
l from this action. |
getElapsedTime
public LibTWGreedyFillInAction(Graph graph)
Action
to start the Greedy Fill-In algorithm decomposing the graph
graph
.graph
- the graph which will be decomposedpublic void execute()
Action
public TreeDecomposition getResult()
ComputationAction
getResult
in class ComputationAction<TreeDecomposition>
public void addComputationListener(ComputationListener l)
ComputationAction
l
to this action.addComputationListener
in class ComputationAction<TreeDecomposition>
l
- the listener to receive computation eventspublic void removeComputationListener(ComputationListener l)
ComputationAction
l
from this action.removeComputationListener
in class ComputationAction<TreeDecomposition>
l
- the listener to be removedpublic void cancelComputation()
ComputationAction
ComputationAction
.cancelComputation
in class ComputationAction<TreeDecomposition>
Action.execute()