src/main/java/de/dfki/lt/loot/fsa/FiniteAutomaton.java
@Override
  public Edge<EdgeInfo> newEdge(
      EdgeInfo transChar,
      int aStartState,
      int anEndState) {

    // only add transChar to alphabet if it is not Epsilon
    if (! isEpsilon(transChar)) {
      this.getAlphabet().add(transChar);
    }
    return super.newEdge(transChar, aStartState, anEndState);
  }
/**
   * This creates a new transition in the automaton.
   *
   * @param transChar a <code>EdgeInfo</code> with the alphabet symbol of the
   * transition
   * @param aStartState a <code>int</code>
   * with the start state of the transition
   * @param anEndState a <code>int</code>
   * with the end state of the transition
   * @return a <code>Edge<EdgeInfo></code> with the
   * newly created transition
   */
This creates a new transition in the automaton.
@param transChar a EdgeInfo with the alphabet symbol of the
transition
@param aStartState a int
with the start state of the transition
@param anEndState a int
with the end state of the transition
@return a Edge with the
newly created transition
This creates a new transition in the automaton . @param transChar a EdgeInfo with the alphabet symbol of the transition @param aStartState a int with the start state of the transition @param anEndState a int with the end state of the transition @return a Edge with the newly created transition
@Override
  public Edge<EdgeInfo> newEdge(
      EdgeInfo transChar,
      int aStartState,
      int anEndState) {
    if (! isEpsilon(transChar)) {
      this.getAlphabet().add(transChar);
    }
    return super.newEdge(transChar, aStartState, anEndState);
  }
@ Override public Edge < EdgeInfo > newEdge ( EdgeInfo transChar , int aStartState , int anEndState ) { if ( ! isEpsilon ( transChar ) ) { this . getAlphabet ( ) . add ( transChar ) ; } return super . newEdge ( transChar , aStartState , anEndState ) ; }
This creates a new transition in the automaton.
This creates a new transition in the automaton .
// only add transChar to alphabet if it is not Epsilon