public class ColorabilityAutomatonAction extends ComputationAction<ColorabilityAutomaton>
Constructor and Description |
---|
ColorabilityAutomatonAction(int maximumInterface,
int innerInterface,
int outerInterface,
Signature signature,
int colors)
Creates a new
Action to create a new colorability automaton with maximum interface size
maximumInterface over the signature signature and with colors colors
using the default colorability encoding. |
ColorabilityAutomatonAction(int maximumInterface,
int innerInterface,
int outerInterface,
Signature signature,
int colors,
String encodingName)
Creates a new
Action to create a new colorability automaton with maximum interface size
maximumInterface over the signature signature and with colors colors using
the colorability 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.
|
ColorabilityAutomaton |
getResult()
Returns the result of the computation.
|
void |
removeComputationListener(ComputationListener l)
Removes the Computation Listener
l from this action. |
getElapsedTime
public ColorabilityAutomatonAction(int maximumInterface, int innerInterface, int outerInterface, Signature signature, int colors)
Action
to create a new colorability automaton with maximum interface size
maximumInterface
over the signature signature
and with colors
colors
using the default colorability encoding.maximumInterface
- the maximum interface sizeinnerInterface
- size of the inner interfaceouterInterface
- size of the outer interfacesignature
- the signature of the automatoncolors
- the number of colorsColorabilityAutomatonAction(int, int, int, Signature, int, String)
,
AutomatonFactory
,
ColorabilityAutomaton
,
ColorabilityEncoding
,
DefaultColorabilityEncoding
public ColorabilityAutomatonAction(int maximumInterface, int innerInterface, int outerInterface, Signature signature, int colors, String encodingName)
Action
to create a new colorability automaton with maximum interface size
maximumInterface
over the signature signature
and with colors
colors using
the colorability encoding named by encodingName
.maximumInterface
- the maximum interface sizeinnerInterface
- size of the inner interfaceouterInterface
- size of the outer interfacesignature
- the signature of the automatoncolors
- the number of colorsencodingName
- the name of the colorability encodingColorabilityAutomatonAction(int, int, int, Signature, int)
,
AutomatonFactory
,
ColorabilityAutomaton
,
ColorabilityEncoding
,
DefaultColorabilityEncoding
public void execute()
Action
public ColorabilityAutomaton getResult()
ComputationAction
getResult
in class ComputationAction<ColorabilityAutomaton>
public void addComputationListener(ComputationListener l)
ComputationAction
l
to this action.addComputationListener
in class ComputationAction<ColorabilityAutomaton>
l
- the listener to receive computation eventspublic void removeComputationListener(ComputationListener l)
ComputationAction
l
from this action.removeComputationListener
in class ComputationAction<ColorabilityAutomaton>
l
- the listener to be removedpublic void cancelComputation()
ComputationAction
ComputationAction
.cancelComputation
in class ComputationAction<ColorabilityAutomaton>
Action.execute()