public class EmptinessCheckAction extends ComputationAction<Boolean>
Constructor and Description |
---|
EmptinessCheckAction(Algorithm.SearchType type,
Automaton automaton)
Creates a new
Action to execute the emptiness check for the automaton automaton . |
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.
|
Boolean |
getResult()
Returns the result of the computation.
|
void |
removeComputationListener(ComputationListener l)
Removes the Computation Listener
l from this action. |
getElapsedTime
public EmptinessCheckAction(Algorithm.SearchType type, Automaton automaton)
Action
to execute the emptiness check for the automaton automaton
.type
- the search type used by the algorithm, either forward
or backward
automaton
- the automaton for which the emptiness is checkedForwardEmptinessCheck
,
BackwardEmptinessCheck
public void execute()
Action
public Boolean getResult()
ComputationAction
getResult
in class ComputationAction<Boolean>
public void addComputationListener(ComputationListener l)
ComputationAction
l
to this action.addComputationListener
in class ComputationAction<Boolean>
l
- the listener to receive computation eventspublic void removeComputationListener(ComputationListener l)
ComputationAction
l
from this action.removeComputationListener
in class ComputationAction<Boolean>
l
- the listener to be removedpublic void cancelComputation()
ComputationAction
ComputationAction
.cancelComputation
in class ComputationAction<Boolean>
Action.execute()