Package net.openai.util.fsm

Examples of net.openai.util.fsm.Condition


        endState.setEndStateFlag(true);

        Machine m = new Machine(startState);

        Condition colonDxC = new TextSetCondition(
                iv_colonDxSet,
                false);

        startState.addTransition(colonDxC, endState);
        startState.addTransition(new AnyCondition(), startState);
View Full Code Here


       
        endState.setEndStateFlag(true);

        Machine m = new Machine(startState);

        Condition padDxC = new TextSetCondition(iv_padDxSet, false);
        Condition padDxHyphenBeginC = new TextSetCondition(iv_padDxHyphenBeginSet, false);
        Condition padDxHyphenEndC = new TextSetCondition(iv_padDxHyphenEndSet, false);
        Condition pad1of2DxC = new TextSetCondition(iv_padOneOfTwoDxSet, false);
        Condition pad2of2DxC = new TextSetCondition(iv_padTwoOfTwoDxSet, false);
        Condition pad1of3DxC = new TextSetCondition(iv_padOneOfThreeDxSet, false);
        Condition pad2of3DxC = new TextSetCondition(iv_padTwoOfThreeDxSet, false);
        Condition pad3of3DxC = new TextSetCondition(iv_padThreeOfThreeDxSet, false);

        Condition padNegConfirm1Of2DxC = new TextSetCondition(iv_padOneOfTwoNegConfirmDxSet, false);
        Condition padNegConfirm2Of2DxC = new TextSetCondition(iv_padTwoOfTwoNegConfirmDxSet, false);
       
        startState.addTransition(padDxC, endState);
        startState.addTransition(padNegConfirm1Of2DxC, pad2of2NegConfirmState);
        startState.addTransition(pad1of2DxC, pad2of2State);
        startState.addTransition(pad1of3DxC, pad2of3State);
View Full Code Here

        ntEndState.setEndStateFlag(true);

        Machine m = new Machine(startState);

        Condition negInitDetC = new TextSetCondition(iv_negInitialDeterminersSet, false);
        Condition negInit1of2DetC = new TextSetCondition(iv_negCol1of2PartSet, false);
        Condition negInit2of2DetC = new TextSetCondition(iv_negCol2of2PartSet, false);
        Condition negInit1of3DetC = new TextSetCondition(iv_negCol1Of3PartSet, false);
        Condition negInit2of3DetC = new TextSetCondition(iv_negCol2Of3PartSet, false);
        Condition negInit3of3DetC = new TextSetCondition(iv_negCol3Of3PartSet, false);
        Condition negInit1of3ArterialDetC = new TextSetCondition(iv_negCol1Of3ArterialPartSet, false);
        Condition negInit2of3ArterialDetC = new TextSetCondition(iv_negCol2Of3ArterialPartSet, false);
        Condition negInit3of3ArterialDetC = new TextSetCondition(iv_negCol3Of3ArterialPartSet, false);
        Condition negInitNtEndDetC = new TextSetCondition(iv_negColAnyOf3PartSet, false);
       
        startState.addTransition(negInitDetC, endState); // start with a modal
        startState.addTransition(negInit1of2DetC, twoPartState);
        startState.addTransition(negInit1of3DetC, twoOfThreePartState);
        startState.addTransition(negInit1of3ArterialDetC, twoArterialPartState);
View Full Code Here

    State beginEndState = new NamedState("STOPBEGINSTART");
    State endEndState = new NamedState("STARTENDSTART");
    State sectionStatusState = new NamedState("DUALSTARTSTART");
    State thenStatusState = new NamedState("DUALSTARTTHENSTART");
   
    Condition rangeCombineCondition = new DisjoinCondition(
        new RangeCondition(), new RangeStrengthCondition());
 
    Condition sectionBracket = new PunctuationValueCondition('[');
    Condition soloCondition = new WordSetCondition(iv_singleStartWordSet,
        false);
    Condition soloEndCondition = new WordSetCondition(
        iv_singleStartWordSet, false);
    Condition firstDualCondition = new WordSetCondition(
        iv_firstStartDualWordSet, false);
    Condition secondDualCondition = new WordSetCondition(
        iv_secondDualWordSet, false);
    Condition thenCondition = new WordSetCondition(
        iv_multiThenWordSet, false);
    Condition containsDosagesCondition = new StrengthCondition();
 
    startState.addTransition(thenCondition, thenStatusState);
    startState.addTransition(firstDualCondition, sectionStatusState);
    startState.addTransition(sectionBracket, beginEndState);
    startState.addTransition(rangeCombineCondition, leftDosagesState);
View Full Code Here

   
 
    State sectionStatusState = new NamedState("DUALSTARTNOCHANGE");
    State dualWordState = new NamedState("START_NOCHANGE");
 
    Condition rangeCombineCondition = new DisjoinCondition(
        new RangeCondition(), new RangeStrengthCondition());
 
    Condition soloCondition = new WordSetCondition(iv_singleNoChangeWordSet,
        false);
    Condition firstDualCondition = new WordSetCondition(
        iv_firstNoChangeDualWordSet, false);
    Condition secondDualCondition = new WordSetCondition(
        iv_secondDualWordSet, false);
    Condition thenCondition = new WordSetCondition(
        iv_multiThenWordSet, false);
    Condition containsDosagesCondition = new StrengthCondition();
 
    startState.addTransition(thenCondition, thenStatusState);
    startState.addTransition(soloCondition, endState);
    startState.addTransition(firstDualCondition, sectionStatusState);
    startState.addTransition(rangeCombineCondition, leftDosagesState);
View Full Code Here

    Machine m = new Machine(startState);
 
    State thenStatusState = new NamedState("DUALSTARTTHENINCREASE");
    State sectionStatusState = new NamedState("DUALSTARTINCREASE");
   
    Condition soloCondition = new WordSetCondition(iv_singleIncreaseWordSet,
        false);
    Condition firstDualCondition = new WordSetCondition(
        iv_firstIncreaseDualWordSet, false);
    Condition secondDualCondition = new WordSetCondition(
        iv_secondDualWordSet, false);
    Condition thenCondition = new WordSetCondition(
        iv_multiThenWordSet, false);
   
    startState.addTransition(thenCondition, thenStatusState);
    startState.addTransition(soloCondition, endState);
    startState.addTransition(firstDualCondition, sectionStatusState);
View Full Code Here

    Machine m = new Machine(startState);
 
    State thenStatusState = new NamedState("DUALSTARTTHENINCREASEFROM");
    State sectionStatusState = new NamedState("DUALFROMINCREASE");

    Condition firstDualCondition = new WordSetCondition(
        iv_firstIncreaseDualWordSet, false);
    Condition secondDualCondition = new WordSetCondition(
        iv_secondDualFromWordSet, false);
    Condition thenCondition = new WordSetCondition(
        iv_multiThenWordSet, false);
   
    startState.addTransition(thenCondition, thenStatusState);
    startState.addTransition(firstDualCondition, sectionStatusState);
    startState.addTransition(new AnyCondition(), startState);
View Full Code Here

    State leftStatusState = new NamedState("LEFT_STATUS_DECREASE");
    State thenStatusState = new NamedState("DUALSTARTTHENDECREASE");
    State sectionStatusState = new NamedState("DUALSTARTDECREASE");

    Condition soloCondition = new WordSetCondition(iv_singleDecreaseWordSet,
        false);
    Condition firstDualCondition = new WordSetCondition(
        iv_firstDecreaseDualWordSet, false);
    Condition secondDualCondition = new WordSetCondition(
        iv_secondDualWordSet, false);
    Condition thenCondition = new WordSetCondition(
        iv_multiThenWordSet, false);
 
    startState.addTransition(thenCondition, thenStatusState);
    startState.addTransition(soloCondition, endState);
    startState.addTransition(firstDualCondition, sectionStatusState);
View Full Code Here

    State thenStatusState = new NamedState("DUALSTARTTHENDECREASEFROM");
    State sectionStatusState = new NamedState("DUALFROMDECREASE");
//    State firstTheState = new NamedState("FIRSTTHEDECREASE");
//    State secondTheState = new NamedState("SECONDTHEDECREASE");
   
    Condition firstDualCondition = new WordSetCondition(
        iv_firstDecreaseDualWordSet, false);
    Condition secondDualCondition = new WordSetCondition(
        iv_secondDualFromWordSet, false);
    Condition thenCondition = new WordSetCondition(
        iv_multiThenWordSet, false);

    startState.addTransition(thenCondition, thenStatusState);
    startState.addTransition(firstDualCondition, sectionStatusState);
    startState.addTransition(new AnyCondition(), startState);
View Full Code Here

    State firstDashState = new NamedState("FIRSTDASHSTOP");
    State beginEndState = new NamedState("STOPBEGINSTOP");
    State endEndState = new NamedState("STOPENDSTOP");
    State sectionStatusState = new NamedState("DUALSTARTSTOP");

    Condition rangeCombineCondition = new DisjoinCondition(
        new RangeCondition(), new RangeStrengthCondition());

    Condition sectionBracket = new PunctuationValueCondition('[');
    Condition soloCondition = new WordSetCondition(iv_singleStopWordSet,
        false);
    Condition soloEndCondition = new WordSetCondition(iv_singleStopWordSet,
        false);
    Condition firstDualCondition = new WordSetCondition(
        iv_firstStopDualWordSet, false);
    Condition secondOffDualCondition = new WordSetCondition(
        iv_secondOffDualWordSet, false);
    Condition secondDualCondition = new WordSetCondition(
        iv_secondDualWordSet, false);
    Condition thenCondition = new WordSetCondition(
        iv_multiThenWordSet, false);
   
    Condition containsDosagesCondition = new StrengthCondition();

    startState.addTransition(thenCondition, thenStatusState);
    startState.addTransition(soloCondition, endState);
    startState.addTransition(firstDualCondition, sectionStatusState);
    startState.addTransition(sectionBracket, beginEndState);
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.