Package org.apache.ctakes.drugner.fsm.elements.conditions

Examples of org.apache.ctakes.drugner.fsm.elements.conditions.StrengthUnitCombinedCondition


    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);
    startState.addTransition(new AnyCondition(), startState);
   
    dateState.addTransition(new NegateCondition( new PunctuationValueCondition('/')), connectState);
    dateState.addTransition(new AnyCondition(), startState);
   
    //Mayo SPM 2/20/2012 Changed due to separation of strength tokens
    connectState.addTransition(new StrengthUnitCondition(), ntEndState);
    connectState.addTransition(new StrengthUnitCombinedCondition(), endState);
    connectState.addTransition(new PunctuationValueCondition('-'), unitState);
    connectState.addTransition(new PunctuationValueCondition('.'), decimalState);
    connectState.addTransition(new AnyCondition(), startState);
   
    //Mayo SPM 2/20/2012 Changed due to separation of strength tokens
    decimalState.addTransition(new StrengthUnitCondition(), ntEndState);
    decimalState.addTransition(new StrengthUnitCombinedCondition(), endState);
    decimalState.addTransition(new PunctuationValueCondition('-'), unitState);
    decimalState.addTransition(new NumberCondition(), complexState);
    decimalState.addTransition(new AnyCondition(), startState);
   
    //Mayo SPM 2/20/2012 Changed due to separation of strength tokens
    unitState.addTransition(new StrengthUnitCondition(), ntEndHyphState);
    unitState.addTransition(new StrengthUnitCombinedCondition(), endState);
    unitState.addTransition(new AnyCondition(), startState);
   
    complexState.addTransition(new PunctuationValueCondition('-'), hyphenState);
    complexState.addTransition(new AnyCondition(), startState);
   
View Full Code Here

TOP

Related Classes of org.apache.ctakes.drugner.fsm.elements.conditions.StrengthUnitCombinedCondition

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.