Class BricsNFA

All Implemented Interfaces:
Iterable<State>, Automaton<State,Character,State>, Automaton.RegularAutomaton<State,Character,State>, FiniteRepresentation, InitialStates<State>, Output<Character,Boolean>, OutputAutomaton<State,Character,State,Boolean>, SuffixOutput<Character,Boolean>, FiniteStateAcceptor<State,Character>, NFA<State,Character>, SimpleAutomaton<State,Character>, UniversalAutomaton<State,Character,State,Boolean,Void>, UniversalAutomaton.RegularAutomaton<State,Character,State,Boolean,Void>, GraphViewable, FiniteSemantics, Semantics, AcceptorTS<State,Character>, OutputTS<State,Character,State,Boolean>, SimpleTS<State,Character>, TransitionSystem<State,Character,State>, UniversalTransitionSystem<State,Character,State,Boolean,Void>

public class BricsNFA extends AbstractBricsAutomaton implements NFA<State,Character>
Adapter class for wrapping a Brics automaton as an NFA.

This adapter is backed by the Brics automaton, so changes to the Automaton are reflected.

As a DFA can be regarded as a special case of an NFA, using this class on a Brics Automaton will always work. However, determining successor states for input characters might be much less efficient than when using a BricsDFA.

  • Constructor Details

    • BricsNFA

      public BricsNFA(Automaton automaton)
      Constructor.

      Note: Brics automata may only be partially defined (especially when created from regular expressions). If you plan to use this wrapper in any structural analysis (e.g. for determining equivalence), consider using BricsNFA(Automaton, boolean) instead.

      Parameters:
      automaton - the Brics automaton to wrap.
    • BricsNFA

      public BricsNFA(Automaton automaton, boolean totalize)
      Constructor.

      If the parameter totalize is set to true, an additional sink state will be added to the automaton and all otherwise undefined transitions will transition the automaton into the sink. Note: this mutates the original automaton.

      Parameters:
      automaton - the Brics automaton to wrap.
      totalize - flag, indicating whether the automaton should have a total transition function.