src/main/java/de/dfki/lt/loot/fsa/FiniteAutomaton.java
private void collectStates(int state, BitSet states) {

    for (Edge<EdgeInfo> oneOutEdge : FiniteAutomaton.this.getOutEdges(state)) {
      int targetState = oneOutEdge.getTarget();
      // if this state was already visited, it is in the state set
      if (!states.get(targetState)) {
        states.set(targetState);
        collectStates(targetState, states);
      }
    }
  }
/**
   * Collects all states reachable from the given state in the given bit set.
   *
   * @param state
   *          the start state
   * @param states
   *          the collected states
   */
Collects all states reachable from the given state in the given bit set.
@param state
the start state
@param states
the collected states
Collects all states reachable from the given state in the given bit set . @param state the start state @param states the collected states
private void collectStates(int state, BitSet states) {
    for (Edge<EdgeInfo> oneOutEdge : FiniteAutomaton.this.getOutEdges(state)) {
      int targetState = oneOutEdge.getTarget();
      if (!states.get(targetState)) {
        states.set(targetState);
        collectStates(targetState, states);
      }
    }
  }
private void collectStates ( int state , BitSet states ) { for ( Edge < EdgeInfo > oneOutEdge : FiniteAutomaton . this . getOutEdges ( state ) ) { int targetState = oneOutEdge . getTarget ( ) ; if ( ! states . get ( targetState ) ) { states . set ( targetState ) ; collectStates ( targetState , states ) ; } } }
Collects all states reachable from the given state in the given bit set.
Collects all states reachable from the given state in the given bit set .
// if this state was already visited, it is in the state set