Package net.openai.util.fsm

Examples of net.openai.util.fsm.Machine


    State startState = new NamedState("START1");
    State endState = new NamedState("END1");
    State foundDualFirstState = new NamedState("MAXBEGIN");
    endState.setEndStateFlag(true);
   
    Machine m = new Machine(startState);
   
    startState.addTransition(new WordSetCondition(iv_singleMaxWordSet, false), endState);
    startState.addTransition(new WordSetCondition(iv_firstMaxDualWordSet, false), foundDualFirstState);
    startState.addTransition(new AnyCondition(), startState);
   
View Full Code Here


    State startState = new NamedState("START2");
    State endState = new NamedState("END2");
    State byState = new NamedState("BYSTATE");
    endState.setEndStateFlag(true);
   
    Machine m = new Machine(startState);
   
    startState.addTransition(new WordSetCondition(iv_singleChangeWordSet, false), endState);
    startState.addTransition(new TextValueCondition("followed", false), byState);
    startState.addTransition(
        new WordSetCondition(iv_changeWordSet, false), endState);
View Full Code Here

  private Machine getSumStatusMachine() {
    State startState = new NamedState("START3");
    State endState = new NamedState("END3");
    endState.setEndStateFlag(true);
 
    Machine m = new Machine(startState);
 
    startState.addTransition(new WordSetCondition(iv_singleSumWordSet, false), endState);
    startState.addTransition(new AnyCondition(), startState);
   
    endState.addTransition(new AnyCondition(), startState);
View Full Code Here

  private Machine getStartStatusMachine() {
    State startState = new NamedState("START4");
    State endState = new NamedState("END4");
    endState.setEndStateFlag(true);
 
    Machine m = new Machine(startState);
 
    State leftStatusState = new NamedState("LEFT_START_STATUS");
    State leftDosagesState = new NamedState("LEFT_START_DOSE");
    State lastTextState = new NamedState("RIGHT_START_FREQ");
    State middleATextState = new NamedState("MID_START_TEXT");
View Full Code Here

  private Machine getNoChangeStatusMachine() {
    State startState = new NamedState("START5");
    State endState = new NamedState("END5");
    endState.setEndStateFlag(true);
 
    Machine m = new Machine(startState);
 
    State leftStatusState = new NamedState("LEFT_STATUS_NOCHANGE");
    State leftDosagesState = new NamedState("LEFT_DOSE_NOCHANGE");
    State lastTextState = new NamedState("RIGHT_FREQ_NOCHANGE");
    State middleATextState = new NamedState("MID_TEXT_NOCHANGE");
View Full Code Here

  private Machine getIncreaseStatusMachine() {
    State startState = new NamedState("START6");
    State endState = new NamedState("END6");
    endState.setEndStateFlag(true);
 
    Machine m = new Machine(startState);
 
    State thenStatusState = new NamedState("DUALSTARTTHENINCREASE");
    State sectionStatusState = new NamedState("DUALSTARTINCREASE");
   
    Condition soloCondition = new WordSetCondition(iv_singleIncreaseWordSet,
View Full Code Here

  private Machine getIncreaseFromAndTheStatusMachine() {
    State startState = new NamedState("START7");
    State endState = new NamedState("END7");
    endState.setEndStateFlag(true);
 
    Machine m = new Machine(startState);
 
    State thenStatusState = new NamedState("DUALSTARTTHENINCREASEFROM");
    State sectionStatusState = new NamedState("DUALFROMINCREASE");

    Condition firstDualCondition = new WordSetCondition(
View Full Code Here

  private Machine getDecreaseStatusMachine() {
    State startState = new NamedState("START8");
    State endState = new NamedState("END8");
    endState.setEndStateFlag(true);

    Machine m = new Machine(startState);

    State leftStatusState = new NamedState("LEFT_STATUS_DECREASE");
    State thenStatusState = new NamedState("DUALSTARTTHENDECREASE");
    State sectionStatusState = new NamedState("DUALSTARTDECREASE");
View Full Code Here

  private Machine getDecreaseFromAndTheStatusMachine() {
    State startState = new NamedState("START9");
    State endState = new NamedState("END9");
    endState.setEndStateFlag(true);

    Machine m = new Machine(startState);

    State thenStatusState = new NamedState("DUALSTARTTHENDECREASEFROM");
    State sectionStatusState = new NamedState("DUALFROMDECREASE");
//    State firstTheState = new NamedState("FIRSTTHEDECREASE");
//    State secondTheState = new NamedState("SECONDTHEDECREASE");
View Full Code Here

  private Machine getStopStatusMachine() {
    State startState = new NamedState("START10");
    State endState = new NamedState("END10");
    endState.setEndStateFlag(true);

    Machine m = new Machine(startState);
   
    State thenStatusState = new NamedState("DUALSTARTTHENSTOP");
    State leftStatusState = new NamedState("LEFT_STATUS_STOP");
    State leftDosagesState = new NamedState("LEFT_DOSE_STOP");
    State lastTextState = new NamedState("RIGHT_FREQ_STOP");
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.