public final class PaigeTarjanExtractors extends Object
PaigeTarjan
coarsest stable partition computation
into several common, more usable forms such as automata.
Most of the methods defined in this class expect the partition data to be in a certain form, and moreover may require
additional information, both of which is provided by corresponding methods defined in PaigeTarjanInitializers
.
Modifier and Type | Method and Description |
---|---|
static <I,T,SP,TP,A extends MutableDeterministic<?,I,?,SP,TP>> |
toDeterministic(PaigeTarjan pt,
AutomatonCreator<A,I> creator,
Alphabet<I> inputs,
DeterministicAutomaton.FullIntAbstraction<T> absOriginal,
IntFunction<? extends SP> spExtractor,
Function<? super T,? extends TP> tpExtractor,
boolean pruneUnreachable)
Translates the results of a coarsest stable partition computation into a deterministic automaton.
|
static <S1,S2,I,T1,T2,SP,TP,A extends MutableDeterministic<S2,I,T2,SP,TP>> |
toDeterministic(PaigeTarjan pt,
AutomatonCreator<A,I> creator,
Alphabet<I> inputs,
DeterministicAutomaton<S1,I,T1> original,
StateIDs<S1> origIds,
Function<? super S1,? extends SP> spExtractor,
Function<? super T1,? extends TP> tpExtractor,
boolean pruneUnreachable)
Translates the results of a coarsest stable partition computation into a deterministic automaton.
|
public static <S1,S2,I,T1,T2,SP,TP,A extends MutableDeterministic<S2,I,T2,SP,TP>> A toDeterministic(PaigeTarjan pt, AutomatonCreator<A,I> creator, Alphabet<I> inputs, DeterministicAutomaton<S1,I,T1> original, StateIDs<S1> origIds, Function<? super S1,? extends SP> spExtractor, Function<? super T1,? extends TP> tpExtractor, boolean pruneUnreachable)
This method is designed to match the following methods from PaigeTarjanInitializers
:
PaigeTarjanInitializers.initDeterministic(PaigeTarjan,
net.automatalib.automata.simple.SimpleDeterministicAutomaton,Alphabet, Function, Object)
PaigeTarjanInitializers.initDeterministic(PaigeTarjan,DeterministicAutomaton, Alphabet,
java.util.function.Predicate, boolean)
Both the spExtractor
and the tpExtractor
can be null
, in which case they are replaced by
a function always returning null
.
pt
- the partition refinement data structure, after computing the coarsest stable partitioncreator
- an AutomatonCreator
for creating the resulting automatoninputs
- the input alphabet to useoriginal
- the original automaton on which the partition was computedorigIds
- the StateIDs
that translate the int
s from the PaigeTarjan
to states of original
(e.g., obtained as the result from PaigeTarjanInitializers.initDeterministic(PaigeTarjan,
DeterministicAutomaton, Alphabet, java.util.function.Predicate, boolean)
spExtractor
- the state property extractor, or null
tpExtractor
- the transition property extractor, or null
pruneUnreachable
- true
if unreachable states should be pruned during construction, false
otherwisePaigeTarjan
objectpublic static <I,T,SP,TP,A extends MutableDeterministic<?,I,?,SP,TP>> A toDeterministic(PaigeTarjan pt, AutomatonCreator<A,I> creator, Alphabet<I> inputs, DeterministicAutomaton.FullIntAbstraction<T> absOriginal, IntFunction<? extends SP> spExtractor, Function<? super T,? extends TP> tpExtractor, boolean pruneUnreachable)
This method is designed to match the following methods from PaigeTarjanInitializers
:
PaigeTarjanInitializers.initCompleteDeterministic(PaigeTarjan,
net.automatalib.automata.simple.SimpleDeterministicAutomaton.FullIntAbstraction, IntFunction, boolean)
PaigeTarjanInitializers.initCompleteDeterministic(PaigeTarjan,
net.automatalib.automata.UniversalDeterministicAutomaton.FullIntAbstraction,
PaigeTarjanInitializers.AutomatonInitialPartitioning, boolean)
Both the spExtractor
and the tpExtractor
can be null
, in which case they are replaced by
a function always returning null
.
pt
- the partition refinement data structure, after computing the coarsest stable partitioncreator
- an AutomatonCreator
for creating the resulting automatoninputs
- the input alphabet to useabsOriginal
- the abstraction of the original automaton that was used to build the partition refinement data structurespExtractor
- the state property extractor, or null
tpExtractor
- the transition property extractor, or null
pruneUnreachable
- true
if unreachable states should be pruned during construction, false
otherwisePaigeTarjan
objectCopyright © 2018. All rights reserved.