Package net.openai.util.fsm

Examples of net.openai.util.fsm.Condition


    Machine m = new Machine(startState);
    State hyphState = new NamedState("HYPHTERM");
    State dosageState = new NamedState("DOSAGE");

    Condition decimalCondition = new DecimalCondition();
    Condition numberCondition = new NumberCondition();
    Condition strengthFormCondition = new DisjoinCondition(
        new RouteCondition(), new FormCondition());
    Condition numberTextCondition = new WordSetCondition(iv_textNumberSet,
        false);
    Condition rangeCondition = new RangeStrengthCondition();
    Condition fractionRangeCondition = new FractionStrengthCondition();
    Condition decimalStart = new DisjoinCondition(
        new IntegerValueCondition(0), new NumberCondition());

    startState.addTransition(new WordSetCondition(iv_soloTextSet, true),
        endState);
    startState.addTransition(numberCondition, dosageState);
View Full Code Here


 
      State secondDotQtoWState = new NamedState("SECONDDOTQ2W");
 
 
      Condition firstDotConditionQ = new PunctuationValueCondition('.');
      Condition secondDotConditionQW = new PunctuationValueCondition('.');
      Condition thirdDotConditionQWK = new PunctuationValueCondition('.');

      Condition soloCondition = new TextSetCondition(iv_perWeekWordSet, false);
 
 
      startState.addTransition(new TextValueCondition("q", false),
          leftAbbreviateQState);
      startState.addTransition(new TextValueCondition("a", false),
View Full Code Here

    State rightAbbreviateTIDState = new NamedState("RIGHT_TID");
    State firstDotTState = new NamedState("FIRSTDOTT");
    State secondDotTtoIState = new NamedState("SECONDDOTT2I");
    State eightHourState = new NamedState("EIGHTHOUR");

    Condition firstDotConditionT = new PunctuationValueCondition('.');
    Condition secondDotConditionTI = new PunctuationValueCondition('.');
    Condition thirdDotConditionTID = new PunctuationValueCondition('.');
   
    Condition TTDCondition = new TextSetCondition(iv_threeTimesADayWordSet, false);
 
    startState.addTransition(new TextValueCondition("t", false),
        leftAbbreviateTState);
    startState.addTransition(new TextValueCondition("q", false),
        eightHourState);
View Full Code Here

    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);
View Full Code Here

    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);
View Full Code Here

      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);
View Full Code Here

    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);
View Full Code Here

    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);
View Full Code Here

    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);
View Full Code Here

    Machine m = new Machine(ntStartState);
    State forwardSlashState = new NamedState("FSLASH");
 
   
 
    Condition suffixCondition = new TextSetCondition(iv_dailySuffixSet,
        false);
    Condition forwardSlashCondition = new PunctuationValueCondition('/');
   
 
 
    ntStartState.addTransition(forwardSlashCondition, forwardSlashState);
    ntStartState.addTransition(new AnyCondition(), ntStartState);
View Full Code Here

TOP

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

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.