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

Examples of org.apache.ctakes.drugner.fsm.output.elements.DrugChangeStatusToken


            tokenStartIndex++;
          }
          BaseToken startToken = (BaseToken) tokens
              .get(tokenStartIndex);
          BaseToken endToken = token;
          DrugChangeStatusToken fractionToken = null;
          if (fsm.equals(iv_startStatusMachine)) {
            fractionToken = new DrugChangeStatusToken(startToken
                .getStartOffset(), endToken.getEndOffset(),DrugChangeStatusToken.START);
          } else if (fsm.equals(iv_stopStatusMachine)) {
            fractionToken = new DrugChangeStatusToken(startToken
                .getStartOffset(), endToken.getEndOffset(), DrugChangeStatusToken.STOP);
          } else if (fsm.equals(iv_increaseFromStatusMachine)) {
            fractionToken = new DrugChangeStatusToken(startToken
                .getStartOffset(), endToken.getEndOffset(), DrugChangeStatusToken.INCREASEFROM);
          } else if (fsm.equals(iv_decreaseFromStatusMachine)) {
            fractionToken = new DrugChangeStatusToken(startToken
                .getStartOffset(), endToken.getEndOffset(), DrugChangeStatusToken.DECREASEFROM);
          else if (fsm.equals(iv_increaseStatusMachine)) {
            fractionToken = new DrugChangeStatusToken(startToken
                .getStartOffset(), endToken.getEndOffset(), DrugChangeStatusToken.INCREASE);
          } else if (fsm.equals(iv_decreaseStatusMachine)) {
            fractionToken = new DrugChangeStatusToken(startToken
                .getStartOffset(), endToken.getEndOffset(), DrugChangeStatusToken.DECREASE);
          } else if (fsm.equals(iv_noChangeStatusMachine)) {
            fractionToken = new DrugChangeStatusToken(startToken
                .getStartOffset(), endToken.getEndOffset(), DrugChangeStatusToken.NOCHANGE);
           
          } else if (fsm.equals(iv_changeStatusMachine)) {
            fractionToken = new DrugChangeStatusToken(startToken
                .getStartOffset(), endToken.getEndOffset(), DrugChangeStatusToken.OTHER);
          } else if (fsm.equals(iv_sumStatusMachine)) {
            fractionToken = new DrugChangeStatusToken(startToken
                .getStartOffset(), endToken.getEndOffset(), DrugChangeStatusToken.SUM);
           
          } else if (fsm.equals(iv_maxStatusMachine)) {
            fractionToken = new DrugChangeStatusToken(startToken
                .getStartOffset(), endToken.getEndOffset(), DrugChangeStatusToken.MAX);
           
          }

          fractionSet.add(fractionToken);
View Full Code Here

TOP

Related Classes of org.apache.ctakes.drugner.fsm.output.elements.DrugChangeStatusToken

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.