src/main/java/de/dfki/lt/loot/fsa/FiniteAutomaton.java
public FiniteAutomaton<EdgeInfo> copy() {

    FiniteAutomaton<EdgeInfo> copy = new FiniteAutomaton<EdgeInfo>();
    copy._comp = this._comp;
    copy.setInitialState(copy.newVertex());

    Map<Integer, Integer> stateMap = new HashMap<>();

    stateMap.put(this._initialState, copy.getInitialState());
    if (this.isFinalState(this._initialState)) {
      copy.setFinalState(copy.getInitialState());
    }
    copyState(this._initialState, copy, stateMap);

    return copy;
  }
/**
   * Returns a deep copy of this finite automaton.
   *
   * @return the copy of this finite automaton
   */
Returns a deep copy of this finite automaton.
@return the copy of this finite automaton
Returns a deep copy of this finite automaton . @return the copy of this finite automaton
public FiniteAutomaton<EdgeInfo> copy() {
    FiniteAutomaton<EdgeInfo> copy = new FiniteAutomaton<EdgeInfo>();
    copy._comp = this._comp;
    copy.setInitialState(copy.newVertex());
    Map<Integer, Integer> stateMap = new HashMap<>();
    stateMap.put(this._initialState, copy.getInitialState());
    if (this.isFinalState(this._initialState)) {
      copy.setFinalState(copy.getInitialState());
    }
    copyState(this._initialState, copy, stateMap);
    return copy;
  }
public FiniteAutomaton < EdgeInfo > copy ( ) { FiniteAutomaton < EdgeInfo > copy = new FiniteAutomaton < EdgeInfo > ( ) ; copy . _comp = this . _comp ; copy . setInitialState ( copy . newVertex ( ) ) ; Map < Integer , Integer > stateMap = new HashMap < > ( ) ; stateMap . put ( this . _initialState , copy . getInitialState ( ) ) ; if ( this . isFinalState ( this . _initialState ) ) { copy . setFinalState ( copy . getInitialState ( ) ) ; } copyState ( this . _initialState , copy , stateMap ) ; return copy ; }
Returns a deep copy of this finite automaton.
Returns a deep copy of this finite automaton .