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. |
getElapsedTimepublic LibTWGreedyFillInAction(Graph graph)
Action to start the Greedy Fill-In algorithm decomposing the graph
graph.graph - the graph which will be decomposedpublic void execute()
Actionpublic TreeDecomposition getResult()
ComputationActiongetResult in class ComputationAction<TreeDecomposition>public void addComputationListener(ComputationListener l)
ComputationActionl to this action.addComputationListener in class ComputationAction<TreeDecomposition>l - the listener to receive computation eventspublic void removeComputationListener(ComputationListener l)
ComputationActionl from this action.removeComputationListener in class ComputationAction<TreeDecomposition>l - the listener to be removedpublic void cancelComputation()
ComputationActionComputationAction.cancelComputation in class ComputationAction<TreeDecomposition>Action.execute()