Package net.openai.util.fsm

Examples of net.openai.util.fsm.State


   * </ol>
   *
   * @return
   */
  private Machine getTwiceADayMachine() {
    State startState = new NamedState("START");
    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");
    State firstDotBState = new NamedState("FIRSTDOTB");
    State secondDotBtoIState = new NamedState("SECONDDOTB2I");
    Condition TDCondition = new TextSetCondition(iv_twiceADayWordSet, false);
   
    startState.addTransition(new TextValueCondition("b", false),
        leftAbbreviateBState);
    startState.addTransition(new TextValueCondition("q", false), twelveHourState);
    startState.addTransition(new IntegerValueCondition(12), twelveHourState);
    startState.addTransition(new TextValueCondition("twelve", false), twelveHourState);
    startState.addTransition(TDCondition, endState);
    startState.addTransition(new AnyCondition(), startState);

        twelveHourState.addTransition(new TextSetCondition(iv_hourlySuffixSet, false), endState);
        twelveHourState.addTransition(new TextSetCondition(iv_twiceADayWordSet, false), endState);
       // twelveHourState.addTransition(new RangeStrengthCondition(), endState);
        twelveHourState.addTransition(new AnyCondition(), startState);
       
    leftAbbreviateBState.addTransition(new PunctuationValueCondition('.'), firstDotBState);
    leftAbbreviateBState.addTransition(new AnyCondition(), startState);

    firstDotBState.addTransition(new TextValueCondition("i", false),
        middleAbbreviateBtoIState);
    firstDotBState.addTransition(new AnyCondition(), startState);

    middleAbbreviateBtoIState.addTransition(new PunctuationValueCondition('.'),
        secondDotBtoIState);
    middleAbbreviateBtoIState.addTransition(new AnyCondition(), startState);
   
    secondDotBtoIState.addTransition(new TextValueCondition("d", false),
        rightAbbreviateBIDState);
    secondDotBtoIState.addTransition(new AnyCondition(), startState);


    rightAbbreviateBIDState.addTransition(new PunctuationValueCondition('.'), endState);
    rightAbbreviateBIDState.addTransition(new AnyCondition (), startState);
   
View Full Code Here


   * </ol>
   *
   * @return
   */
  private Machine getEveryOtherDayMachine() {
    State startState = new NamedState("START_EODM");
    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");
    State EODState = new NamedState("FIRSTDOTQ_EODM");
   
    Condition EODCondition = new TextSetCondition(iv_everyOtherDayWordSet, false);
   
    startState.addTransition(new TextValueCondition("q", false),
        leftAbbreviateQState);
    startState.addTransition(EODCondition, endState);
    startState.addTransition(new TextValueCondition("every-other", false), EODState);
    startState.addTransition(new AnyCondition(), startState);
   
    leftAbbreviateQState.addTransition(new PunctuationValueCondition('.'),
        firstDotQState);
  //leftAbbreviateQState.addTransition(new RangeStrengthCondition(), endState);
    leftAbbreviateQState.addTransition(new AnyCondition(), startState);
   
    firstDotQState.addTransition(new TextValueCondition("a", false),
        middleAbbreviateQtoAState);
    firstDotQState.addTransition(new AnyCondition(), startState);
   
    middleAbbreviateQtoAState.addTransition(new PunctuationValueCondition('.'),
        secondDotQtoAState);
    middleAbbreviateQtoAState.addTransition(new AnyCondition(), startState);
   
    secondDotQtoAState.addTransition(new TextValueCondition("d", false),
        rightAbbreviateQADState);
    secondDotQtoAState.addTransition(new AnyCondition(), startState);
   
    EODState.addTransition(new TextSetCondition(iv_dailyWordSet, false), endState);
    EODState.addTransition(new AnyCondition(), startState);
   
    rightAbbreviateQADState.addTransition(new PunctuationValueCondition('.'), endState);
    rightAbbreviateQADState.addTransition(new AnyCondition(), startState);
   
   
View Full Code Here

   * </ol>
   *
   * @return
   */
  private Machine getEveryOtherHourMachine() {
    State startState = new NamedState("START_EOHM");
    State endState = new NamedState("END_EOHM");
    State leftAbbreviateQState = new NamedState("LEFT_Q_EOHM");
    State middleAbbreviateQtoOState = new NamedState("MID_Q2O");
    State rightAbbreviateQODState = new NamedState("RIGHT_QOD");
    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);
   
    leftAbbreviateQState.addTransition(new PunctuationValueCondition('.'), firstDotQState);
    leftAbbreviateQState.addTransition(new AnyCondition(), startState);
   
    firstDotQState.addTransition(new TextValueCondition("o", false),
        middleAbbreviateQtoOState);
      firstDotQState.addTransition(new AnyCondition(),  startState);
     
    middleAbbreviateQtoOState.addTransition(new PunctuationValueCondition('.'),
        secondDotQtoOState);
    middleAbbreviateQtoOState.addTransition(new AnyCondition(), startState);
   
    secondDotQtoOState.addTransition(new TextValueCondition("d", false),
        rightAbbreviateQODState);
    secondDotQtoOState.addTransition(new AnyCondition(), startState);
   
    rightAbbreviateQODState.addTransition(new PunctuationValueCondition('.'), endState);
    rightAbbreviateQODState.addTransition(new AnyCondition(), startState);
   
  //  ntEndState.addTransition(new AnyCondition(), startState);
View Full Code Here

   * </ol>
   *
   * @return
   */
  private Machine getAsNeededMachine() {
    State startState = new NamedState("START_PRN");
    State endState = new NamedState("END_PRN");
    State asNeededState = new NamedState("PRN");
    State asNeededHyphState = new NamedState("HYPHPRN");
        State startPState = new NamedState("PSTATE");
        State startPDOTState = new NamedState("PDOTSTATE");
        State startRState = new NamedState("RSTATE");
        State startRDOTState = new NamedState("RDOTSTATE");
        State startNState = new NamedState("NSTATE");

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

   * </ol>
   *
   * @return
   */
  private Machine getFourTimesADayMachine() {
    State startState = new NamedState("START_4TDM");
    State endState = new NamedState("END_4TDM");
    State ntEndState = new NonTerminalEndState("NON TERMINAL END");
    ntEndState.setEndStateFlag(true);
    endState.setEndStateFlag(true);
    State leftAbbreviateQState = new NamedState("LEFT_Q_FTD");
    State middleAbbreviateQtoIState = new NamedState("MID_Q2I");
    State middleAbbreviateQtoDState = new NamedState("MID_Q2D");
    State rightAbbreviateQDSState = new NamedState("RIGHT_QDS");
    State rightAbbreviateQIDState = new NamedState("RIGHT_QID");
    State handleRangeState = new NamedState("HANDLERANGE");
    State sixHourState = new NamedState("SIXHOUR");
    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);
    startState.addTransition(new IntegerValueCondition(6), sixHourState);
    startState.addTransition(new DisjoinCondition(new CombineCondition(new NegateCondition(new IntegerRangeCondition(1,5)), new IntegerCondition()), new IntegerValueCondition(6)), handleRangeState);
    startState.addTransition(new DisjoinCondition(new TextSetCondition(iv_postSixWordSet, false), new TextValueCondition("six", false)), sixHourState);

    startState.addTransition(new AnyCondition(), startState);
   
    handleRangeState.addTransition(new PunctuationValueCondition('-'), rangeHourState);
    handleRangeState.addTransition(new AnyCondition(), startState);
   
      leftAbbreviateQState.addTransition(new PunctuationValueCondition('.'), firstDotQState);
      leftAbbreviateQState.addTransition(new TextValueCondition("six", false), sixHourState);
      leftAbbreviateQState.addTransition(new IntegerValueCondition(6), sixHourState);

      leftAbbreviateQState.addTransition(new TextSetCondition(
        iv_fourTimesPerDayWordSet, false) , sixHourState);
      leftAbbreviateQState.addTransition(new AnyCondition(), startState);
     
     
      rangeHourState.addTransition(new IntegerRangeCondition(7,10), eightSuffixState);
      rangeHourState.addTransition(new TextValueCondition("seven", false), eightSuffixState);
      rangeHourState.addTransition(new TextValueCondition("eight", false), eightSuffixState);
      rangeHourState.addTransition(new TextValueCondition("nine", false), eightSuffixState);
      rangeHourState.addTransition(new TextValueCondition("ten", false), eightSuffixState);
      rangeHourState.addTransition(new AnyCondition(), startState);
     
      eightSuffixState.addTransition(new TextSetCondition(iv_hourlySuffixSet, false), endState);
      eightSuffixState.addTransition(new AnyCondition(), startState);
   
   
    sixHourState.addTransition(new PunctuationValueCondition('-'), rangeHourState);
    sixHourState.addTransition(new TextValueCondition("to", false), rangeHourState);
    sixHourState.addTransition(new TextSetCondition(iv_hourlySuffixSet, false), endState);
    sixHourState.addTransition(new TextSetCondition(iv_fourTimesPerDayWordSet, false), endState);
    sixHourState.addTransition(new AnyCondition(), startState);
     
    firstDotQState.addTransition(new TextValueCondition("d", false),
        middleAbbreviateQtoDState);
    firstDotQState.addTransition(new TextValueCondition("i", false),
        middleAbbreviateQtoIState);
      firstDotQState.addTransition(new AnyCondition(), startState);
     
    middleAbbreviateQtoDState.addTransition(new PunctuationValueCondition('.'),
        secondDotQtoDState);
    middleAbbreviateQtoDState.addTransition(new AnyCondition(), startState);
   
           
    secondDotQtoDState.addTransition(new TextValueCondition("s", false),
        rightAbbreviateQDSState);
    secondDotQtoDState.addTransition(new AnyCondition(), startState);
 
    secondDotQtoIState.addTransition(new TextValueCondition("d", false),
        rightAbbreviateQIDState);
    secondDotQtoIState.addTransition(new AnyCondition(), startState);
   
    middleAbbreviateQtoIState.addTransition(new PunctuationValueCondition('.'),
        secondDotQtoIState);
    middleAbbreviateQtoIState.addTransition(new AnyCondition(), startState);
 
View Full Code Here

   * </ol>
   *
   * @return
   */
  private Machine getSixTimesADayMachine() {
    State startState = new NamedState("START_6TDM");
    State endState = new NamedState("END_6TDM");
    State ntEndState = new NonTerminalEndState("NON TERMINAL END");
    State hyphState = new NamedState("HYPHSTATE");
    State handleRangeState = new NamedState("HANDLERANGE");
    State numState = new NamedState("NUMSTATE");
    ntEndState.setEndStateFlag(true);
    endState.setEndStateFlag(true);

   
    State middleAbbreviateQtoDState = new NamedState("MID_Q2D");
    State rightAbbreviateQDSState = new NamedState("RIGHT_QDS");

    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);
    startState.addTransition(new DisjoinCondition(new TextSetCondition(iv_postFourWordSet, false), new TextValueCondition("four", false)), fourHourState);
   
    startState.addTransition(new AnyCondition(), startState);
   
    handleRangeState.addTransition(new PunctuationValueCondition('-'), hyphState);
    handleRangeState.addTransition(new AnyCondition(), startState);
   
    fourHourState.addTransition(new PunctuationValueCondition('-'), hyphState);
    fourHourState.addTransition(new TextValueCondition("to", false), hyphState);
    //fourHourState.addTransition(new TextSetCondition(iv_hourlySuffixSet, false), endState);
   
    fourHourState.addTransition(new AnyCondition(), startState);
   
    firstDotQState.addTransition(new TextValueCondition("d", false),
        middleAbbreviateQtoDState);

        firstDotQState.addTransition(new AnyCondition(), startState);
       
        hyphState.addTransition(new IntegerRangeCondition(5,8), numState);
        hyphState.addTransition(new TextValueCondition("five", false), numState);
        hyphState.addTransition(new TextValueCondition("six", false), numState);
        hyphState.addTransition(new TextValueCondition("seven", false), numState);
        hyphState.addTransition(new TextValueCondition("eight", false), numState);
        hyphState.addTransition(new AnyCondition(), startState);
       
        numState.addTransition(new TextSetCondition(iv_hourlySuffixSet, false), endState);
        numState.addTransition(new AnyCondition(), startState);
       
    middleAbbreviateQtoDState.addTransition(new PunctuationValueCondition('.'),
        secondDotQtoDState);
    middleAbbreviateQtoDState.addTransition(new AnyCondition(), startState);
   
           
    secondDotQtoDState.addTransition(new TextValueCondition("s", false),
        rightAbbreviateQDSState);
    secondDotQtoDState.addTransition(new AnyCondition(), startState);

    rightAbbreviateQDSState.addTransition(new PunctuationValueCondition('.'), endState);
    rightAbbreviateQDSState.addTransition(new AnyCondition(), startState);
   
   
View Full Code Here

     * </ol>
     *
     * @return
     */
    private Machine getDailyMachine() {
      State startState = new NamedState("START");
      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
      State leftAbbreviateAState = new NamedState("LEFT_A");
      State leftAbbreviatePState = new NamedState("LEFT_P");
      State leftAbbreviateQState = new NamedState("LEFT_Q");
      State leftAbbreviateOState = new NamedState("LEFT_O");
      State leftAbbreviateHState = new NamedState("LEFT_H");
     
 
  //    2 letter latin abbreviations   
      State rightAbbreviateODState = new NamedState("RIGHT_OD");
      State rightAbbreviateQDState = new NamedState("RIGHT_QD");
      State rightAbbreviateHSState = new NamedState("RIGHT_HS");
      State rightAbbreviateAMState = new NamedState("RIGHT_AM");
      State rightAbbreviatePMState = new NamedState("RIGHT_PM");
  //    3 letter latin abbreviations
      State middleAbbreviateQtoHState = new NamedState("MID_Q2H");
 
      State rightAbbreviateQHSState = new NamedState("RIGHT_QHS");
      State secondDotQtoHState = new NamedState("SECONDDOTQ2H");
     
      State firstDotAState = new NamedState("FIRSTDOTA");
      State firstDotPState = new NamedState("FIRSTDOTP");
      State firstDotQState = new NamedState("FIRSTDOTQ");
      State firstDotOState = new NamedState("FIRSTDOTO");
      State firstDotHState = new NamedState("FIRSTDOTH");
     
 
     
      Condition specificWordCondition = new TextSetCondition(
          iv_dailyWordSet, false);
      Condition soloCondition = new TextSetCondition(iv_perDayWordSet, false);
      Condition containsSoloTermCondition = new ContainsSetTextValueCondition(
          iv_perDayWordSet, false);
       
     
      startState.addTransition(new TextValueCondition("q", false),
          leftAbbreviateQState);
      startState.addTransition(new TextValueCondition("o", false),
          leftAbbreviateOState);
      startState.addTransition(new TextValueCondition("h", false),
          leftAbbreviateHState);
 
            startState.addTransition(new IntegerRangeCondition(1,12), clockState);
            startState.addTransition(new TimeCondition(), endState);
      startState.addTransition(new TextValueCondition("bed", false),
          leftAbbreviateState);
      startState.addTransition(new TextValueCondition("per", false),
          leftAbbreviateState);
 
      startState.addTransition(specificWordCondition, endState);
      startState.addTransition(soloCondition, endState);
      startState.addTransition(containsSoloTermCondition, endState);
     
      startState.addTransition(new AnyCondition(), startState);
     
      clockState.addTransition(new TextValueCondition("a", false),
      leftAbbreviateAState);
      clockState.addTransition(new TextValueCondition("p", false),
      leftAbbreviatePState);
      clockState.addTransition(new AnyCondition(), startState);
     
      leftAbbreviateState.addTransition(specificWordCondition, endState);
      leftAbbreviateState.addTransition(new TextValueCondition("time", false), endState);
      leftAbbreviateState.addTransition(new AnyCondition(), startState);
     
      leftAbbreviateQState.addTransition(new PunctuationValueCondition('.'), firstDotQState);
      leftAbbreviateQState.addTransition(new AnyCondition(), startState);
       
      leftAbbreviateOState.addTransition(new PunctuationValueCondition('.'), firstDotOState);
      leftAbbreviateOState.addTransition(new AnyCondition(), startState);
     
      leftAbbreviateHState.addTransition(new PunctuationValueCondition('.'), firstDotHState);
      leftAbbreviateHState.addTransition(new AnyCondition(), startState);
     
      firstDotQState.addTransition(new TextValueCondition("d", false),
          rightAbbreviateQDState);
      firstDotQState.addTransition(new TextValueCondition("h", false),
          middleAbbreviateQtoHState);
      firstDotQState.addTransition(new AnyCondition(), startState);
     
      firstDotOState.addTransition(new TextValueCondition("d", false),
          rightAbbreviateODState);
      firstDotOState.addTransition(new AnyCondition(), startState);
     
      middleAbbreviateQtoHState.addTransition(new PunctuationValueCondition('.'),
          secondDotQtoHState);
      middleAbbreviateQtoHState.addTransition(new AnyCondition(), startState);
     
      leftAbbreviateAState.addTransition(new PunctuationValueCondition('.'), firstDotAState);
      //leftAbbreviateAState.addTransition(soloCondition, endState);
      leftAbbreviateAState.addTransition(new AnyCondition(), startState);
   
      leftAbbreviatePState.addTransition(new PunctuationValueCondition('.'), firstDotPState);
      leftAbbreviatePState.addTransition(new AnyCondition(), startState);
   
      firstDotAState.addTransition(new TextValueCondition("m", false),
          rightAbbreviateAMState);
      firstDotAState.addTransition(new AnyCondition(), startState);
     

       
      firstDotPState.addTransition(new TextValueCondition("m", false),
          rightAbbreviatePMState);
      firstDotPState.addTransition(new AnyCondition(), startState);
     
      secondDotQtoHState.addTransition(new TextValueCondition("s", false),
          rightAbbreviateQHSState);
     
      secondDotQtoHState.addTransition(new AnyCondition(), startState);
     

      rightAbbreviateAMState.addTransition(new PunctuationValueCondition('.'), endState);
      rightAbbreviateAMState.addTransition(new AnyCondition(), startState);
   
      rightAbbreviatePMState.addTransition(new PunctuationValueCondition('.'), endState);
      rightAbbreviatePMState.addTransition(new AnyCondition(), startState);
     
      firstDotHState.addTransition(new TextValueCondition("s", false),
          rightAbbreviateHSState);
      firstDotHState.addTransition(new AnyCondition(), startState);
     
      rightAbbreviateODState.addTransition(new PunctuationValueCondition('.'), endState);
      rightAbbreviateODState.addTransition(new AnyCondition(), startState);
     
      rightAbbreviateQDState.addTransition(new PunctuationValueCondition('.'), endState);
View Full Code Here

   *
   * @return
   */
  private Machine getYearlySuffixMachine() {
 
    State endState = new NamedState("END");
    State ntStartState = new NamedState("START");
    State skipFirstState = new IndentStartState("NON TERMINAL START");
    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,
        false);
    Condition forwardSlashCondition = new PunctuationValueCondition('/');
   
 
 
    ntStartState.addTransition(forwardSlashCondition, forwardSlashState);
    ntStartState.addTransition(new AnyCondition(), ntStartState);
 
   
    forwardSlashState.addTransition(suffixCondition, skipFirstState);
    forwardSlashState.addTransition(new AnyCondition(), ntStartState);
 
   
    skipFirstState.addTransition(new AnyCondition(), ntStartState);
    endState.addTransition(new AnyCondition(), ntStartState);
 
View Full Code Here

   *
   * @return
   */
  private Machine getMonthlySuffixMachine() {
 
    State endState = new NamedState("END");
    State ntStartState = new NamedState("START");
    State skipFirstState = new IndentStartState("NON TERMINAL START");
    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,
        false);
    Condition forwardSlashCondition = new PunctuationValueCondition('/');
   
 
 
    ntStartState.addTransition(forwardSlashCondition, forwardSlashState);
    ntStartState.addTransition(new AnyCondition(), ntStartState);
 
   
    forwardSlashState.addTransition(suffixCondition, skipFirstState);
    forwardSlashState.addTransition(new AnyCondition(), ntStartState);
 
   
    skipFirstState.addTransition(new AnyCondition(), ntStartState);
    endState.addTransition(new AnyCondition(), ntStartState);
 
View Full Code Here

   *
   * @return
   */
  private Machine getWeeklySuffixMachine() {
 
    State endState = new NamedState("END");
    State ntStartState = new NamedState("START");
    State skipFirstState = new IndentStartState("NON TERMINAL START");
    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,
        false);
    Condition forwardSlashCondition = new PunctuationValueCondition('/');
   
 
 
    ntStartState.addTransition(forwardSlashCondition, forwardSlashState);
    ntStartState.addTransition(new AnyCondition(), ntStartState);
 
   
    forwardSlashState.addTransition(suffixCondition, skipFirstState);
    forwardSlashState.addTransition(new AnyCondition(), ntStartState);
 
   
    skipFirstState.addTransition(new AnyCondition(), ntStartState);
    endState.addTransition(new AnyCondition(), ntStartState);
 
View Full Code Here

TOP

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

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.