Package org.apache.ctakes.core.fsm.condition

Examples of org.apache.ctakes.core.fsm.condition.IntegerCondition


    State rightNumTextState = new NamedState("RIGHT_DOSAGE");
    State fslashState = new NamedState("FSLASH");
    Condition dashCondition = new PunctuationValueCondition('/');

    Condition leftNumTextCondition = new StrengthCondition();
    Condition rightIntegerCondition = new IntegerCondition();
    Condition rightNumTextCondition = new WordSetCondition(
        iv_textSuffixSet, false);

    startState.addTransition(leftNumTextCondition, leftNumTextState);
    startState.addTransition(new AnyCondition(), startState);
View Full Code Here


    State lastTextState = new NamedState("RIGHT_FREQ");
    State middleATextState = new NamedState("MID_TEXT");
    State firstDashState = new NamedState("FIRSTDASH");
    State secondDashState = new NamedState("SECONDDASH");

    Condition integerCondition = new IntegerCondition();
    Condition firstDashCondition = new PunctuationValueCondition('-');
    Condition secondDashCondition = new PunctuationValueCondition('-');

    Condition numericStartCondition = new WordSetCondition(iv_frequencySet,
        false);
View Full Code Here

        leftAbbreviateTState);
    startState.addTransition(new TextValueCondition("q", false),
        eightHourState);
    startState.addTransition(new IntegerValueCondition(8), eightHourState);
    startState.addTransition(TTDCondition, endState);
    startState.addTransition(new DisjoinCondition(new CombineCondition(new NegateCondition(new IntegerRangeCondition(1,7)), new IntegerCondition()), new IntegerValueCondition(8)), handleRangeState);
    startState.addTransition(new DisjoinCondition(new TextSetCondition(iv_postEightWordSet, false), new TextValueCondition("eight", false)), eightHourState);
 
    startState.addTransition(new AnyCondition(), startState);

    handleRangeState.addTransition(new PunctuationValueCondition('-'), hyphState);
View Full Code Here

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

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

    ntEndHyphState.setEndStateFlag(true);

    startState.addTransition(new RangeStrengthCondition(), endState);
    startState.addTransition(new FractionStrengthCondition(), dateState);
    startState.addTransition(new NumberCondition(), connectState);
    startState.addTransition(new IntegerCondition(), connectState);
    startState.addTransition(new DecimalCondition(), connectState);
    startState.addTransition(new WordSetCondition(iv_numberTextSet, false), connectState);
    //Mayo SPM 2/20/2012 Changed due to separation of strength tokens
//    startState.addTransition(new StrengthUnitCondition(), ntEndState);
    startState.addTransition(new StrengthUnitCombinedCondition(), endState);
View Full Code Here

    State leftNumIntegerState = new NamedState("LEFT_NUM_INTEGER");
    State leftNumRomanState = new NamedState("LEFT_NUM_ROMAN");
    State leftNumTextState = new NamedState("LEFT_NUM_TEXT");
    State dashState = new NamedState("DASH");

    Condition leftIntCondition = new IntegerCondition();
    Condition rightIntCondition = new IntegerCondition();
    Condition dashCondition = new PunctuationValueCondition('-');
    Condition leftRomanNumeralCondition = new RomanNumeralCondition();
    Condition rightRomanNumeralCondition = new RomanNumeralCondition();
    Condition leftNumTextCondition = new WordSetCondition(iv_textNumberSet,
        false);
View Full Code Here

    Machine m = new Machine(startState);
    State numeratorNumState = new NamedState("NUMERATOR_NUM");
    State fslashState = new NamedState("FORWARD_SLASH");
    State numeratorTextState = new NamedState("NUMERATOR_TEXT");

    Condition intNumeratorCondition = new IntegerCondition();
    Condition fslashCondition = new PunctuationValueCondition('/');
    Condition intDenominatorCondition = new IntegerCondition();
    Condition decimalCondition = new DecimalCondition();
    Condition textNumeratorCondition = new WordSetCondition(
        iv_textNumeratorSet, false);
    Condition textDenominatorCondition = new WordSetCondition(
        iv_textDenominatorSet, false);
View Full Code Here

TOP

Related Classes of org.apache.ctakes.core.fsm.condition.IntegerCondition

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.