src/main/java/de/dfki/lt/loot/fsa/FiniteAutomaton.java
public SubAutomaton newCharSetAutomaton(Set<EdgeInfo> chars) {
    SubAutomaton result = new SubAutomaton();
    // created new initial and final state
    int initState = result.getInitialState();
    int finalState = newVertex();
    result.setFinalState(finalState);

    for(EdgeInfo c : chars) {
      // link states according to slides
      newEdge(c, initState, finalState);
    }
    return result;
  }
/** This constructs an automaton that matches a set of "characters."
   *
   * @param chars the respective set of characters
   */
This constructs an automaton that matches a set of "characters."
@param chars the respective set of characters
This constructs an automaton that matches a set of " characters . " @param chars the respective set of characters
public SubAutomaton newCharSetAutomaton(Set<EdgeInfo> chars) {
    SubAutomaton result = new SubAutomaton();
    int initState = result.getInitialState();
    int finalState = newVertex();
    result.setFinalState(finalState);
    for(EdgeInfo c : chars) {
      newEdge(c, initState, finalState);
    }
    return result;
  }
public SubAutomaton newCharSetAutomaton ( Set < EdgeInfo > chars ) { SubAutomaton result = new SubAutomaton ( ) ; int initState = result . getInitialState ( ) ; int finalState = newVertex ( ) ; result . setFinalState ( finalState ) ; for ( EdgeInfo c : chars ) { newEdge ( c , initState , finalState ) ; } return result ; }
This constructs an automaton that matches a set of "characters."
This constructs an automaton that matches a set of " characters . "
// created new initial and final state // link states according to slides