Class Transition


  • public class Transition
    extends Object
    This class allows us to represent a transition that is a useful object when defining finite automatons.
    • Field Detail

      • start

        public String start
        The source state, where the transition begins.
      • value

        public Object value
        The value (object) labeling the transition.
      • end

        public String end
        The target state, where the transition ends.
    • Constructor Detail

      • Transition

        public Transition​(String firstState,
                          Object symbol,
                          String secondState)
        Constructs a transition from the specified arguments.
        Parameters:
        firstState - the first state, where the transition begins
        symbol - the symbol labeling the transition
        secondState - the second state, where the transition ends