Package net.openai.util.fsm

Examples of net.openai.util.fsm.Machine


    State endState = new NamedState("END");
    State ntEndState = new NonTerminalEndState("NON TERMINAL END");
    ntEndState.setEndStateFlag(true);
    endState.setEndStateFlag(true);

    Machine m = new Machine(startState);

    State twelveHourState = new NamedState("TWELVEHOUR");
    State leftAbbreviateBState = new NamedState("LEFT_B");
    State middleAbbreviateBtoIState = new NamedState("MID_B2I");
    State rightAbbreviateBIDState = new NamedState("RIGHT_BID");
View Full Code Here


    State endState = new NamedState("END_EODM");
    State ntEndState = new NonTerminalEndState("NON TERMINAL END");
    ntEndState.setEndStateFlag(true);
    endState.setEndStateFlag(true);
 
    Machine m = new Machine(startState);
    State leftAbbreviateQState = new NamedState("LEFT_Q_EODM");
    State middleAbbreviateQtoAState = new NamedState("MID_Q2A_EODM");
    State rightAbbreviateQADState = new NamedState("RIGHT_QAD_EODM");
    State secondDotQtoAState = new NamedState("SECONDDOTQ2A_EODM");
    State firstDotQState = new NamedState("FIRSTDOTQ_EODM");
View Full Code Here

    State firstDotQState = new NamedState("FIRSTDOTQ_EOHM");
    State secondDotQtoOState = new NamedState("SECONDDOTQ2O");

    endState.setEndStateFlag(true);
 
    Machine m = new Machine(startState);
   
    startState.addTransition(new TextValueCondition("q", false),
        leftAbbreviateQState);
      startState.addTransition(new TextSetCondition(iv_everyOtherHourWordSet, false), endState);
    startState.addTransition(new AnyCondition(), startState);
View Full Code Here

        State ntEndState = new NonTerminalEndState("NON TERMINAL END");
    ntEndState.setEndStateFlag(true);
    endState.setEndStateFlag(true);
 
    Machine m = new Machine(startState);
   
    startState.addTransition(new TextValueCondition("as", false),
        asNeededState);
      startState.addTransition(new TextSetCondition(iv_prnWordSet, false), endState);
      startState.addTransition(new TextValueCondition("p", false), startPState);
View Full Code Here

    State rangeHourState = new NamedState("RANGEHOUR");
    State eightSuffixState = new NamedState("EIGHTSUFFIX");
    State firstDotQState = new NamedState("FIRSTDOTQ");
    State secondDotQtoDState = new NamedState("SECONDDOTQ2D");
    State secondDotQtoIState = new NamedState("SECONDDOTQ2I");
    Machine m = new Machine(startState);
   
    startState.addTransition(new TextValueCondition("q", false),
        leftAbbreviateQState);
    startState.addTransition(new TextSetCondition(
        iv_fourTimesPerDayWordSet, false) , endState);
View Full Code Here

    State fourHourState = new NamedState("FOURHOUR");
    State firstDotQState = new NamedState("FIRSTDOTQ");
    State secondDotQtoDState = new NamedState("SECONDDOTQ2D");

    Machine m = new Machine(startState);

    startState.addTransition(new TextSetCondition(
        iv_sixTimesPerDayWordSet, false) , endState);
    startState.addTransition(new IntegerValueCondition(4), fourHourState);
    startState.addTransition(new DisjoinCondition(new CombineCondition(new NegateCondition(new IntegerRangeCondition(1,3)), new IntegerCondition()), new IntegerValueCondition(4)), handleRangeState);
View Full Code Here

      State endState = new NamedState("END");
     
      State ntEndState = new NonTerminalEndState("NON TERMINAL END");
      ntEndState.setEndStateFlag(true);
      endState.setEndStateFlag(true);
      Machine m = new Machine(startState);

      State leftAbbreviateState = new NamedState("LEFT_FREQ");

      State clockState = new NamedState("CLOCK");
      //2 and 3 letter latin abbreviations
View Full Code Here

    State ntEndState = new NonTerminalEndState("NON TERMINAL END");
    ntEndState.setEndStateFlag(true);
    endState.setEndStateFlag(true);
    skipFirstState.setEndStateFlag(true);
   
    Machine m = new Machine(ntStartState);
    State forwardSlashState = new NamedState("FSLASH");
 
   
 
    Condition suffixCondition = new TextSetCondition(iv_yearlySuffixSet,
View Full Code Here

    State ntEndState = new NonTerminalEndState("NON TERMINAL END");
    ntEndState.setEndStateFlag(true);
    endState.setEndStateFlag(true);
    skipFirstState.setEndStateFlag(true);
   
    Machine m = new Machine(ntStartState);
    State forwardSlashState = new NamedState("FSLASH");
 
   
 
    Condition suffixCondition = new TextSetCondition(iv_monthlySuffixSet,
View Full Code Here

    State ntEndState = new NonTerminalEndState("NON TERMINAL END");
    ntEndState.setEndStateFlag(true);
    endState.setEndStateFlag(true);
    skipFirstState.setEndStateFlag(true);
   
    Machine m = new Machine(ntStartState);
    State forwardSlashState = new NamedState("FSLASH");
 
   
 
    Condition suffixCondition = new TextSetCondition(iv_weeklySuffixSet,
View Full Code Here

TOP

Related Classes of net.openai.util.fsm.Machine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.