public class LinkAutomatonAction extends ComputationAction<LinkAutomaton>
Constructor and Description |
---|
LinkAutomatonAction(int maximumInterface,
int innerInterface,
int outerInterface,
Signature signature)
Creates a new
Action to create a new link automaton with maximum interface
size maximumInterface over the signature signature , which accepts all
graphs that have at least one edge from a node from the inner to a node from the outer interface
using the default link encoding. |
LinkAutomatonAction(int maximumInterface,
int innerInterface,
int outerInterface,
Signature signature,
String encodingName)
Creates a new
Action to create a new link automaton with maximum interface
size maximumInterface over the signature signature , which accepts all
graphs that have at least one edge from a node from the inner to a node from the outer interface
using the link 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.
|
LinkAutomaton |
getResult()
Returns the result of the computation.
|
void |
removeComputationListener(ComputationListener l)
Removes the Computation Listener
l from this action. |
getElapsedTime
public LinkAutomatonAction(int maximumInterface, int innerInterface, int outerInterface, Signature signature)
Action
to create a new link automaton with maximum interface
size maximumInterface
over the signature signature
, which accepts all
graphs that have at least one edge from a node from the inner to a node from the outer interface
using the default link encoding.maximumInterface
- the maximum interface sizeinnerInterface
- the size of the inner interfaceouterInterface
- the size of the outer interfacesignature
- the signature of the automatonpublic LinkAutomatonAction(int maximumInterface, int innerInterface, int outerInterface, Signature signature, String encodingName)
Action
to create a new link automaton with maximum interface
size maximumInterface
over the signature signature
, which accepts all
graphs that have at least one edge from a node from the inner to a node from the outer interface
using the link 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 automatonencodingName
- the name of the link encodingAutomatonFactory
,
LinkAutomaton
,
LinkEncoding
,
DefaultLinkEncoding
public void execute()
Action
public LinkAutomaton getResult()
ComputationAction
getResult
in class ComputationAction<LinkAutomaton>
public void addComputationListener(ComputationListener l)
ComputationAction
l
to this action.addComputationListener
in class ComputationAction<LinkAutomaton>
l
- the listener to receive computation eventspublic void removeComputationListener(ComputationListener l)
ComputationAction
l
from this action.removeComputationListener
in class ComputationAction<LinkAutomaton>
l
- the listener to be removedpublic void cancelComputation()
ComputationAction
ComputationAction
.cancelComputation
in class ComputationAction<LinkAutomaton>
Action.execute()