public class VertexCoverAutomatonAction extends ComputationAction<VertexCoverAutomaton>
Constructor and Description |
---|
VertexCoverAutomatonAction(int maximumInterface,
int innerInterface,
int outerInterface,
Signature signature,
int coverSize)
Creates a new
Action to create a new vertex cover automaton with maximum interface size
maximumInterface over the signature signature and with a maximum vertex cover
size coverSize colors using the default vertex cover encoding. |
VertexCoverAutomatonAction(int maximumInterface,
int innerInterface,
int outerInterface,
Signature signature,
int coverSize,
String encodingName)
Creates a new
Action to create a new vertex cover automaton with maximum interface size
maximumInterface over the signature signature and with a maximum vertex cover
size coverSize colors using the vertex cover encoding named by encodingName . |
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.
|
VertexCoverAutomaton |
getResult()
Returns the result of the computation.
|
void |
removeComputationListener(ComputationListener l)
Removes the Computation Listener
l from this action. |
getElapsedTime
public VertexCoverAutomatonAction(int maximumInterface, int innerInterface, int outerInterface, Signature signature, int coverSize)
Action
to create a new vertex cover automaton with maximum interface size
maximumInterface
over the signature signature
and with a maximum vertex cover
size coverSize
colors using the default vertex cover encoding.maximumInterface
- the maximum interface sizeinnerInterface
- the size of the inner interfaceouterInterface
- the size of the outer interfacesignature
- the signature of the automatoncoverSize
- the maximum vertex cover sizeVertexCoverAutomatonAction(int, int, int, Signature, int, String)
,
AutomatonFactory
,
VertexCoverAutomaton
,
VertexCoverEncoding
,
DefaultVertexCoverEncoding
public VertexCoverAutomatonAction(int maximumInterface, int innerInterface, int outerInterface, Signature signature, int coverSize, String encodingName)
Action
to create a new vertex cover automaton with maximum interface size
maximumInterface
over the signature signature
and with a maximum vertex cover
size coverSize
colors using the vertex cover encoding named by encodingName
.maximumInterface
- the maximum interface sizeinnerInterface
- the size of the inner interfaceouterInterface
- the size of the outer interfacesignature
- the signature of the automatoncoverSize
- the maximum vertex cover sizeencodingName
- the name of the vertex cover encodingVertexCoverAutomatonAction(int, int, int, Signature, int)
,
AutomatonFactory
,
VertexCoverAutomaton
,
VertexCoverEncoding
,
DefaultVertexCoverEncoding
public void execute()
Action
public void addComputationListener(ComputationListener l)
ComputationAction
l
to this action.addComputationListener
in class ComputationAction<VertexCoverAutomaton>
l
- the listener to receive computation eventspublic void removeComputationListener(ComputationListener l)
ComputationAction
l
from this action.removeComputationListener
in class ComputationAction<VertexCoverAutomaton>
l
- the listener to be removedpublic VertexCoverAutomaton getResult()
ComputationAction
getResult
in class ComputationAction<VertexCoverAutomaton>
public void cancelComputation()
ComputationAction
ComputationAction
.cancelComputation
in class ComputationAction<VertexCoverAutomaton>
Action.execute()