FiniteStringsIterator

open class FiniteStringsIterator(a: Automaton, startState: Int, endState: Int)

Iterates all accepted strings.

If the Automaton has cycles then this iterator may throw an IllegalArgumentException, but this is not guaranteed!

Be aware that the iteration order is implementation dependent and may change across releases.

If the automaton is not determinized then it's possible this iterator will return duplicates.

Inheritors

Constructors

Link copied to clipboard
constructor(a: Automaton, startState: Int, endState: Int)
constructor(a: Automaton)

Constructor.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun next(): IntsRef?

Generate next finite string. The return value is just valid until the next call of this method!