Interface SimpleDeterministicAutomaton.IntAbstraction

    • Field Detail

      • INVALID_STATE

        static final int INVALID_STATE
        Representative for an invalid state. This is the value being returned by methods that would return null in their non-abstracted version. However, for determining whether a state is valid or not, code should never rely on the corresponding integer being equal to this value, since any integer outside the range [0, size() - 1] is invalid, in particular all negative integers.
        See Also:
        Constant Field Values
    • Method Detail

      • getIntInitialState

        int getIntInitialState()
        Retrieves the initial state of the (abstracted) automaton as an integer. If the automaton has no initial state, INVALID_STATE is returned.
        Returns:
        the integer representing the initial state, or INVALID_STATE.