tokenStartIndex++;
}
BaseToken startToken = (BaseToken) tokens
.get(tokenStartIndex);
BaseToken endToken = token;
RouteToken segmentToken = null;
if (fsm.equals(iv_PatchesMachine)){
segmentToken = new RouteToken(
startToken.getStartOffset(), endToken
.getEndOffset());
segmentToken.setFormMethod(RouteToken.TRANSDERMAL);
}
else if (fsm.equals(iv_GastricMachine)){
segmentToken = new RouteToken(
startToken.getStartOffset(), endToken
.getEndOffset());
segmentToken.setFormMethod(RouteToken.GASTRIC);
}
else if (fsm.equals(iv_TopicalMachine)){
segmentToken = new RouteToken(
startToken.getStartOffset(), endToken
.getEndOffset());
segmentToken.setFormMethod(RouteToken.TOPICAL);
}
else if (fsm.equals(iv_OralMachine)){
segmentToken = new RouteToken(
startToken.getStartOffset(), endToken
.getEndOffset());
segmentToken.setFormMethod(RouteToken.ORAL);
}
else if (fsm.equals(iv_RectalMachine)){
segmentToken = new RouteToken(
startToken.getStartOffset(), endToken
.getEndOffset());
segmentToken.setFormMethod(RouteToken.RECTAL);
}
else if (fsm.equals(iv_InjectMachine)){
segmentToken = new RouteToken(
startToken.getStartOffset(), endToken
.getEndOffset());
segmentToken.setFormMethod(RouteToken.INTRAVENOUS);
}
fractionSet.add(segmentToken);
fsm.reset();
}