Package de.learnlib.algorithm.lstar.dfa
Class ExtensibleLStarDFA<I>
- java.lang.Object
-
- de.learnlib.algorithm.lstar.AbstractLStar<A,I,D>
-
- de.learnlib.algorithm.lstar.AbstractAutomatonLStar<A,I,D,S,T,SP,TP,AI>
-
- Type Parameters:
I- input symbol type
- All Implemented Interfaces:
GlobalSuffixLearner<net.automatalib.automaton.fsa.DFA<?,I>,I,Boolean>,GlobalSuffixLearner.GlobalSuffixLearnerDFA<I>,LearningAlgorithm<net.automatalib.automaton.fsa.DFA<?,I>,I,Boolean>,LearningAlgorithm.DFALearner<I>,ObservationTableFeature<I,Boolean>,OTLearner<net.automatalib.automaton.fsa.DFA<?,I>,I,Boolean>,OTLearner.OTLearnerDFA<I>,Resumable<AutomatonLStarState<I,Boolean,net.automatalib.automaton.fsa.impl.CompactDFA<I>,Integer>>,net.automatalib.alphabet.SupportsGrowingAlphabet<I>
- Direct Known Subclasses:
ClassicLStarDFA,MalerPnueliDFA,RivestSchapireDFA
public class ExtensibleLStarDFA<I> extends AbstractExtensibleAutomatonLStar<net.automatalib.automaton.fsa.DFA<?,I>,I,Boolean,Integer,Integer,Boolean,Void,net.automatalib.automaton.fsa.impl.CompactDFA<I>> implements OTLearner.OTLearnerDFA<I>, GlobalSuffixLearner.GlobalSuffixLearnerDFA<I>
An implementation of Angluin's L* algorithm for learning DFAs, as described in the paper "Learning Regular Sets from Queries and Counterexamples".
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.learnlib.algorithm.lstar.AbstractExtensibleAutomatonLStar
AbstractExtensibleAutomatonLStar.BuilderDefaults
-
Nested classes/interfaces inherited from interface de.learnlib.algorithm.GlobalSuffixLearner
GlobalSuffixLearner.GlobalSuffixLearnerDFA<I extends Object>, GlobalSuffixLearner.GlobalSuffixLearnerMealy<I extends Object,O extends Object>
-
Nested classes/interfaces inherited from interface de.learnlib.algorithm.LearningAlgorithm
LearningAlgorithm.DFALearner<I extends Object>, LearningAlgorithm.MealyLearner<I extends Object,O extends Object>, LearningAlgorithm.MooreLearner<I extends Object,O extends Object>, LearningAlgorithm.NFALearner<I extends Object>
-
Nested classes/interfaces inherited from interface de.learnlib.datastructure.observationtable.OTLearner
OTLearner.OTLearnerDFA<I extends Object>, OTLearner.OTLearnerMealy<I extends Object,O extends Object>, OTLearner.OTLearnerMoore<I extends Object,O extends Object>
-
-
Field Summary
-
Fields inherited from class de.learnlib.algorithm.lstar.AbstractExtensibleAutomatonLStar
cexHandler, closingStrategy, initialPrefixes, initialSuffixes
-
Fields inherited from class de.learnlib.algorithm.lstar.AbstractAutomatonLStar
internalHyp, stateInfos
-
Fields inherited from class de.learnlib.algorithm.lstar.AbstractLStar
alphabet, oracle, table
-
-
Constructor Summary
Constructors Constructor Description ExtensibleLStarDFA(net.automatalib.alphabet.Alphabet<I> alphabet, MembershipOracle<I,Boolean> oracle, List<net.automatalib.word.Word<I>> initialSuffixes, ObservationTableCEXHandler<? super I,? super Boolean> cexHandler, ClosingStrategy<? super I,? super Boolean> closingStrategy)Constructor.ExtensibleLStarDFA(net.automatalib.alphabet.Alphabet<I> alphabet, MembershipOracle<I,Boolean> oracle, List<net.automatalib.word.Word<I>> initialPrefixes, List<net.automatalib.word.Word<I>> initialSuffixes, ObservationTableCEXHandler<? super I,? super Boolean> cexHandler, ClosingStrategy<? super I,? super Boolean> closingStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.automatalib.automaton.fsa.DFA<?,I>getHypothesisModel()protected net.automatalib.automaton.concept.SuffixOutput<I,Boolean>hypothesisOutput()protected BooleanstateProperty(ObservationTable<I,Boolean> table, Row<I> stateRow)Derives a state property from the corresponding row.protected VoidtransitionProperty(ObservationTable<I,Boolean> table, Row<I> stateRow, int inputIdx)Derives a transition property from the corresponding transition.-
Methods inherited from class de.learnlib.algorithm.lstar.AbstractExtensibleAutomatonLStar
initialPrefixes, initialSuffixes, refineHypothesisInternal, selectClosingRows
-
Methods inherited from class de.learnlib.algorithm.lstar.AbstractAutomatonLStar
addAlphabetSymbol, createState, doRefineHypothesis, resume, setTransition, startLearning, suspend, updateInternalHypothesis
-
Methods inherited from class de.learnlib.algorithm.lstar.AbstractLStar
addGlobalSuffixes, analyzeInconsistency, completeConsistentTable, getGlobalSuffixes, getObservationTable, incorporateCounterExample, refineHypothesis
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.learnlib.algorithm.GlobalSuffixLearner
addGlobalSuffixes, getGlobalSuffixes
-
Methods inherited from interface de.learnlib.algorithm.LearningAlgorithm
refineHypothesis, startLearning
-
Methods inherited from interface de.learnlib.datastructure.observationtable.ObservationTableFeature
getObservationTable
-
-
-
-
Constructor Detail
-
ExtensibleLStarDFA
public ExtensibleLStarDFA(net.automatalib.alphabet.Alphabet<I> alphabet, MembershipOracle<I,Boolean> oracle, List<net.automatalib.word.Word<I>> initialSuffixes, ObservationTableCEXHandler<? super I,? super Boolean> cexHandler, ClosingStrategy<? super I,? super Boolean> closingStrategy)
Constructor.- Parameters:
alphabet- the learning alphabetoracle- the DFA oracleinitialSuffixes- the list of initial suffixes used in the observation tablecexHandler- the strategy for handling counterexamplesclosingStrategy- the strategy for closing open rows of the observation table
-
ExtensibleLStarDFA
public ExtensibleLStarDFA(net.automatalib.alphabet.Alphabet<I> alphabet, MembershipOracle<I,Boolean> oracle, List<net.automatalib.word.Word<I>> initialPrefixes, List<net.automatalib.word.Word<I>> initialSuffixes, ObservationTableCEXHandler<? super I,? super Boolean> cexHandler, ClosingStrategy<? super I,? super Boolean> closingStrategy)
-
-
Method Detail
-
getHypothesisModel
public net.automatalib.automaton.fsa.DFA<?,I> getHypothesisModel()
- Specified by:
getHypothesisModelin interfaceLearningAlgorithm<net.automatalib.automaton.fsa.DFA<?,I>,I,Boolean>
-
stateProperty
protected Boolean stateProperty(ObservationTable<I,Boolean> table, Row<I> stateRow)
Description copied from class:AbstractAutomatonLStarDerives a state property from the corresponding row.- Specified by:
statePropertyin classAbstractAutomatonLStar<net.automatalib.automaton.fsa.DFA<?,I>,I,Boolean,Integer,Integer,Boolean,Void,net.automatalib.automaton.fsa.impl.CompactDFA<I>>- Parameters:
table- the current observation tablestateRow- the row for which the state is created- Returns:
- the state property of the corresponding state
-
transitionProperty
protected Void transitionProperty(ObservationTable<I,Boolean> table, Row<I> stateRow, int inputIdx)
Description copied from class:AbstractAutomatonLStarDerives a transition property from the corresponding transition.Note that not the transition row is passed to this method, but the row for the outgoing state. The transition row can be retrieved using
Row.getSuccessor(int).- Specified by:
transitionPropertyin classAbstractAutomatonLStar<net.automatalib.automaton.fsa.DFA<?,I>,I,Boolean,Integer,Integer,Boolean,Void,net.automatalib.automaton.fsa.impl.CompactDFA<I>>- Parameters:
table- the observation tablestateRow- the row for the source stateinputIdx- the index of the input symbol to consider- Returns:
- the transition property of the corresponding transition
-
hypothesisOutput
protected net.automatalib.automaton.concept.SuffixOutput<I,Boolean> hypothesisOutput()
- Specified by:
hypothesisOutputin classAbstractLStar<net.automatalib.automaton.fsa.DFA<?,I>,I,Boolean>
-
-