Class AbstractIncrementalDFABuilder<I>

    • Field Detail

      • inputAlphabet

        protected final Alphabet<I> inputAlphabet
      • alphabetSize

        protected int alphabetSize
    • Constructor Detail

      • AbstractIncrementalDFABuilder

        public AbstractIncrementalDFABuilder​(Alphabet<I> inputAlphabet)
        Constructor.
        Parameters:
        inputAlphabet - the input alphabet
    • Method Detail

      • addAlphabetSymbol

        public void addAlphabetSymbol​(I symbol)
        Description copied from interface: SupportsGrowingAlphabet
        Notifies the data structure that a new symbol should be added to the alphabet. Behavior depends on the implementation:
        • After adding a new symbol, the symbol-related data may either be initialized with default values or undefined.
        • Duplicate symbols may: (1) be handled accordingly, (2) be ignored or (3) result in an error.
        Some data structures may need to be properly initialized (e.g. with a GrowingAlphabet) to handle potentially shared state across multiple instances. If the needed requirements are not met, a GrowingAlphabetNotSupportedException can be thrown.
        Specified by:
        addAlphabetSymbol in interface SupportsGrowingAlphabet<I>
        Parameters:
        symbol - the symbol to add to the alphabet.