iv_machineSet.add(iv_subSectionIDConfirmMachine);
}
private Machine getHistorySubSectionMachine() {
State startState = new NamedState("START");
State endState = new NamedState("END");
State medState = new NamedState("MEDHIST");
State midWordState = new NamedState("MIDDLE");
State ntEndState = new NonTerminalEndState("NON TERMINAL END");
endState.setEndStateFlag(true);
ntEndState.setEndStateFlag(true);
Machine m = new Machine(startState);
Condition subFirstBegin = new TextSetCondition(iv_historySubBeginSet,
false);
Condition subFirstMid = new TextSetCondition(iv_historySubMidSet,
false);
Condition subFirstNext = new TextSetCondition(iv_historySubNextSet,
false);
startState.addTransition(subFirstBegin, medState);
startState.addTransition(new AnyCondition(), startState);
medState.addTransition(subFirstNext, endState);
medState.addTransition(subFirstMid, midWordState);
medState.addTransition(new PunctuationValueCondition(':'), endState);
//medState.addTransition(new PunctuationValueCondition('/'), ntEndState);
medState.addTransition(new AnyCondition(), startState);
midWordState.addTransition(subFirstNext, endState);
midWordState.addTransition(new PunctuationValueCondition(':'), endState);
midWordState.addTransition(new AnyCondition(), startState);
ntEndState.addTransition(new AnyCondition(), startState);
endState.addTransition(new AnyCondition(), startState);
return m;
}