public class VertexCountingAutomatonAction extends ComputationAction<VertexCountingAutomaton>
Constructor and Description |
---|
VertexCountingAutomatonAction(int maximumInterface,
int innerInterface,
int outerInterface,
Signature signature,
int divisor,
int remainder)
Creates a new
Action to create a new vertex-counting automaton with maximum
interface size maximumInterface over the signature signature , which accepts
all graphs whose number of vertices is equal to remainder modulo divisor
using the default dominating set encoding. |
VertexCountingAutomatonAction(int maximumInterface,
int innerInterface,
int outerInterface,
Signature signature,
int divisor,
int remainder,
String encodingName)
Creates a new
Action to create a new vertex-counting automaton with maximum
interface size maximumInterface over the signature signature , which accepts
all graphs whose number of vertices is equal to remainder modulo divisor
using the edge-counting 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.
|
VertexCountingAutomaton |
getResult()
Returns the result of the computation.
|
void |
removeComputationListener(ComputationListener l)
Removes the Computation Listener
l from this action. |
getElapsedTime
public VertexCountingAutomatonAction(int maximumInterface, int innerInterface, int outerInterface, Signature signature, int divisor, int remainder)
Action
to create a new vertex-counting automaton with maximum
interface size maximumInterface
over the signature signature
, which accepts
all graphs whose number of vertices is equal to remainder
modulo divisor
using the default dominating set encoding.maximumInterface
- the maximum interface sizeinnerInterface
- size of the inner interfaceouterInterface
- size of the outer interfacesignature
- the signature of the automatonremainder
- the remainder for the number of edgesdivisor
- the divisor modulo which edges are countedVertexCountingAutomatonAction(int, int, int, Signature, int, int, String)
,
AutomatonFactory
,
VertexCountingAutomaton
,
VertexCountingEncoding
,
DefaultVertexCountingEncoding
public VertexCountingAutomatonAction(int maximumInterface, int innerInterface, int outerInterface, Signature signature, int divisor, int remainder, String encodingName)
Action
to create a new vertex-counting automaton with maximum
interface size maximumInterface
over the signature signature
, which accepts
all graphs whose number of vertices is equal to remainder
modulo divisor
using the edge-counting encoding named by
encodingName
.maximumInterface
- the maximum interface sizeinnerInterface
- size of the inner interfaceouterInterface
- size of the outer interfacesignature
- the signature of the automatonremainder
- the remainder for the number of edgesdivisor
- the divisor modulo which edges are countedencodingName
- the name of the dominating set encodingVertexCountingAutomatonAction(int, int, int, Signature, int, int)
,
AutomatonFactory
,
VertexCountingAutomaton
,
VertexCountingEncoding
,
DefaultVertexCountingEncoding
public void execute()
Action
public VertexCountingAutomaton getResult()
ComputationAction
getResult
in class ComputationAction<VertexCountingAutomaton>
public void addComputationListener(ComputationListener l)
ComputationAction
l
to this action.addComputationListener
in class ComputationAction<VertexCountingAutomaton>
l
- the listener to receive computation eventspublic void removeComputationListener(ComputationListener l)
ComputationAction
l
from this action.removeComputationListener
in class ComputationAction<VertexCountingAutomaton>
l
- the listener to be removedpublic void cancelComputation()
ComputationAction
ComputationAction
.cancelComputation
in class ComputationAction<VertexCountingAutomaton>
Action.execute()