Package org.apache.ctakes.core.fsm.token

Examples of org.apache.ctakes.core.fsm.token.IntegerToken


   * Called to check if the conditional meets the criteria defined by this
   * state.
   */
  public boolean satisfiedBy(Object conditional) {
    if (conditional instanceof IntegerToken) {
      IntegerToken t = (IntegerToken) conditional;
      if (t.getValue() == iv_num) {
        return true;
      }
    }

    return false;
View Full Code Here


   * Called to check if the conditional meets the criteria defined by this
   * state.
   */
  public boolean satisfiedBy(Object conditional) {
    if (conditional instanceof IntegerToken) {
      IntegerToken t = (IntegerToken) conditional;
      if ((t.getValue() >= iv_lowNum) && (t.getValue() <= iv_highNum)) {
        return true;
      }
    }

    return false;
View Full Code Here

        PunctuationToken pt = new PunctuationTokenAdapter(t);
        baseTokens.add(pt);
        break;
      case Token.TYPE_NUMBER:
        if (t.isInteger()) {
          IntegerToken it = new IntegerTokenAdapter(t);
          baseTokens.add(it);
        } else {
          DecimalToken dt = new DecimalTokenAdapter(t);
          baseTokens.add(dt);
        }
View Full Code Here

TOP

Related Classes of org.apache.ctakes.core.fsm.token.IntegerToken

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.