Class AbstractLasso<I,​D>

    • Constructor Detail

      • AbstractLasso

        public AbstractLasso​(DetOutputAutomaton<S,​I,​?,​D> automaton,
                             Collection<? extends I> inputs,
                             int unfoldTimes)
        Constructs a finite representation of a given automaton (that contains a lasso), by unrolling the loop unfoldTimes.
        Type Parameters:
        S - the state type
        Parameters:
        automaton - the automaton containing the lasso.
        inputs - the input alphabet.
        unfoldTimes - the number of times the loop needs to be unrolled, must be > 0.
    • Method Detail

      • getAutomaton

        public DetOutputAutomaton<?,​I,​?,​D> getAutomaton()
        Description copied from interface: Lasso
        Returns the original automaton from which this lasso is constructed.
        Specified by:
        getAutomaton in interface Lasso<I,​D>
        Returns:
        the original automaton.
      • getUnfolds

        public int getUnfolds()
        Description copied from interface: Lasso
        Returns the number of times the loop is unfolded.

        The returned value is always greater than 0.

        Specified by:
        getUnfolds in interface Lasso<I,​D>
        Returns:
        the number of times the loop is unfolded.
      • getWord

        public Word<I> getWord()
        Description copied from interface: Lasso
        Gets the finite representation of the lasso.
        Specified by:
        getWord in interface Lasso<I,​D>
        Returns:
        the Word.
      • getLoop

        public Word<I> getLoop()
        Description copied from interface: Lasso
        Gets the loop of the lasso.
        Specified by:
        getLoop in interface Lasso<I,​D>
        Returns:
        the Word.
      • getPrefix

        public Word<I> getPrefix()
        Description copied from interface: Lasso
        Gets the prefix of the lasso.
        Specified by:
        getPrefix in interface Lasso<I,​D>
        Returns:
        the Word.
      • getOutput

        public D getOutput()
        Description copied from interface: Lasso
        Gets the finite representation of the output of the lasso.
        Specified by:
        getOutput in interface Lasso<I,​D>
        Returns:
        the output type D.
      • getLoopBeginIndices

        public SortedSet<Integer> getLoopBeginIndices()
        Description copied from interface: Lasso
        The sorted set containing some symbol indices after which the beginning state of the loop is visited.
        Specified by:
        getLoopBeginIndices in interface Lasso<I,​D>
      • getStates

        public Collection<Integer> getStates()
        Description copied from interface: SimpleAutomaton
        Retrieves all states of the transition system. Implementing classes should return an unmodifiable collection
        Specified by:
        getStates in interface SimpleAutomaton<I,​D>
        Returns:
        all states in the transition system