Class ExtensibleLStarMoore<I,​O>

    • Constructor Detail

      • ExtensibleLStarMoore

        public ExtensibleLStarMoore​(net.automatalib.alphabet.Alphabet<I> alphabet,
                                    MembershipOracle<I,​net.automatalib.word.Word<O>> oracle,
                                    List<net.automatalib.word.Word<I>> initialSuffixes,
                                    ObservationTableCEXHandler<? super I,​? super net.automatalib.word.Word<O>> cexHandler,
                                    ClosingStrategy<? super I,​? super net.automatalib.word.Word<O>> closingStrategy)
      • ExtensibleLStarMoore

        public ExtensibleLStarMoore​(net.automatalib.alphabet.Alphabet<I> alphabet,
                                    MembershipOracle<I,​net.automatalib.word.Word<O>> oracle,
                                    List<net.automatalib.word.Word<I>> initialPrefixes,
                                    List<net.automatalib.word.Word<I>> initialSuffixes,
                                    ObservationTableCEXHandler<? super I,​? super net.automatalib.word.Word<O>> cexHandler,
                                    ClosingStrategy<? super I,​? super net.automatalib.word.Word<O>> closingStrategy)
    • Method Detail

      • getHypothesisModel

        public net.automatalib.automaton.transducer.MooreMachine<?,​I,​?,​O> getHypothesisModel()
        Specified by:
        getHypothesisModel in interface LearningAlgorithm<net.automatalib.automaton.transducer.MooreMachine<?,​I,​?,​O>,​I,​net.automatalib.word.Word<O>>
      • stateProperty

        protected O stateProperty​(ObservationTable<I,​net.automatalib.word.Word<O>> table,
                                  Row<I> stateRow)
        Description copied from class: AbstractAutomatonLStar
        Derives a state property from the corresponding row.
        Specified by:
        stateProperty in class AbstractAutomatonLStar<net.automatalib.automaton.transducer.MooreMachine<?,​I,​?,​O>,​I,​net.automatalib.word.Word<O>,​Integer,​Integer,​O,​Void,​net.automatalib.automaton.transducer.impl.CompactMoore<I,​O>>
        Parameters:
        table - the current observation table
        stateRow - the row for which the state is created
        Returns:
        the state property of the corresponding state
      • transitionProperty

        protected Void transitionProperty​(ObservationTable<I,​net.automatalib.word.Word<O>> table,
                                          Row<I> stateRow,
                                          int inputIdx)
        Description copied from class: AbstractAutomatonLStar
        Derives 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:
        transitionProperty in class AbstractAutomatonLStar<net.automatalib.automaton.transducer.MooreMachine<?,​I,​?,​O>,​I,​net.automatalib.word.Word<O>,​Integer,​Integer,​O,​Void,​net.automatalib.automaton.transducer.impl.CompactMoore<I,​O>>
        Parameters:
        table - the observation table
        stateRow - the row for the source state
        inputIdx - the index of the input symbol to consider
        Returns:
        the transition property of the corresponding transition
      • hypothesisOutput

        protected net.automatalib.automaton.concept.SuffixOutput<I,​net.automatalib.word.Word<O>> hypothesisOutput()
        Specified by:
        hypothesisOutput in class AbstractLStar<net.automatalib.automaton.transducer.MooreMachine<?,​I,​?,​O>,​I,​net.automatalib.word.Word<O>>