public final class SimulationAntichainUniversality extends Object implements UniversalityAlgorithm
UniversalityAlgorithm.ImplementationsAlgorithm.OrderingType, Algorithm.SearchTypeUNIVERSALITY_ITERATION_STEP| Constructor and Description |
|---|
SimulationAntichainUniversality(Algorithm.SearchType searchType)
Creates a new instance of the antichain-based universality algorithm.
|
SimulationAntichainUniversality(Algorithm.SearchType searchType,
Algorithm.OrderingType orderingType)
Creates a new instance of the antichain-based universality algorithm.
|
SimulationAntichainUniversality(Algorithm.SearchType searchType,
Algorithm.OrderingType orderingType,
boolean computeCounterExample)
Creates a new instance of the antichain-based universality algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addComputationListener(ComputationListener l)
Adds the Computation Listener
l to this algorithm. |
void |
cancelComputation()
Cancels the computation of this algorithm.
|
CospanCounterExample |
getCounterExample()
Returns the counter example, if the language of the automaton is not
universal and
null otherwise |
boolean |
isUniversal(Automaton automaton)
Returns
true if and only if the automaton automaton is universal. |
void |
removeComputationListener(ComputationListener l)
Removes the Computation Listener
l from this algorithm. |
public SimulationAntichainUniversality(Algorithm.SearchType searchType, Algorithm.OrderingType orderingType, boolean computeCounterExample)
searchType - the search type used by the algorithm, either forward or
backwardorderingType - the ordering type used by the algorithm either identityRelation,
forwardSimulation or backwardSimulationcomputeCounterExample - if true a counterexample will be computed if the input
language is not universalAlgorithm.SearchType,
Algorithm.OrderingTypepublic SimulationAntichainUniversality(Algorithm.SearchType searchType, Algorithm.OrderingType orderingType)
searchType - the search type used by the algorithm, either forward or
backwardorderingType - the ordering type used by the algorithm either identityRelation,
forwardSimulation or backwardSimulationAlgorithm.SearchType,
Algorithm.OrderingTypepublic SimulationAntichainUniversality(Algorithm.SearchType searchType)
searchType - the search type used by the algorithm, either forward or
backwardAlgorithm.SearchTypepublic void addComputationListener(ComputationListener l)
Algorithml to this algorithm.addComputationListener in interface Algorithml - the listener to receive computation eventspublic void removeComputationListener(ComputationListener l)
Algorithml from this algorithm.removeComputationListener in interface Algorithml - the listener to be removedpublic boolean isUniversal(Automaton automaton)
UniversalityAlgorithmtrue if and only if the automaton automaton is universal.isUniversal in interface UniversalityAlgorithmautomaton - the automaton to be checkedtrue if the automaton is universal, false otherwisepublic CospanCounterExample getCounterExample()
UniversalityAlgorithmnull otherwisegetCounterExample in interface UniversalityAlgorithmnull
otherwisepublic void cancelComputation()
AlgorithmcancelComputation in interface Algorithm