Package org.apache.uima.util

Examples of org.apache.uima.util.Progress


  }
 
  private void initTotal() {
    String mid = "initTotal";
    mh.frameworkTrace(cid, mid, "enter");
    Progress progress = getProgress();
    if(progress != null) {
      total = (int)progress.getTotal();
    }
    mh.frameworkTrace(cid, mid, "exit");
  }
View Full Code Here


      return cr.getProgress();
    }
  }
 
  public Progress getProgress() {
    Progress progress = null;
    Progress[] progressArray = getProgressArray();
    if(progressArray != null) {
      progress = progressArray[0];
    }
    return progress;
View Full Code Here

    }
    return progress;
  }
 
  private void initTotal() {
    Progress progress = getProgress();
    if(progress != null) {
      total = (int)progress.getTotal();
    }
  }
View Full Code Here

  }

  private void displayProgress() {
    if (mCPE != null) {
      try {
        Progress progress[] = mCPE.getProgress();
        if (progress != null && progress.length > 0) {
          int FILE_ENTITY_PROGRESS_INDEX = -1;

          if (FILE_ENTITY_PROGRESS_INDEX == -1) {
            for (int i = 0; i < progress.length; i++) {
View Full Code Here

  class StatusCallbackListenerImpl implements StatusCallbackListener {
    public void initializationComplete() {
      // init progress bar
      int nrFiles = -1;
      Progress progress[] = mCPE.getProgress();
      if (progress != null) {
        for (int i = 0; i < progress.length; i++) {
          if (progress[i].getUnit().equals(Progress.ENTITIES)) {
            nrFiles = (int) progress[i].getTotal();
            break;
View Full Code Here

    jCas.setDocumentText(lines[lineIndex]);
    lineIndex++;
  }

  public Progress[] getProgress() {
    Progress progress = new ProgressImpl(lineIndex, lines.length, Progress.ENTITIES);
    return new Progress[] { progress };
  }
View Full Code Here

     *
     * @see org.apache.uima.collection.base_cpm.BaseCollectionReader#getProgress()
     */
    public Progress[] getProgress()
    {
        Progress p = new ProgressImpl(currRowCount, totalRowCount,
                Progress.ENTITIES);
        return new Progress[] { p };
    }
View Full Code Here

 
}

@Override
public Progress[] getProgress() {
  Progress p = new ProgressImpl(i, list.size(), Progress.ENTITIES);
  return new Progress[]{ p};
}
View Full Code Here

    return (index < docs.length);
  }

  @Override
  public Progress[] getProgress() {
    Progress p = new ProgressImpl(index, docs.length, Progress.ENTITIES);
    return new Progress[]{ p};
  }
View Full Code Here

     *
     * @see org.apache.uima.collection.base_cpm.BaseCollectionReader#getProgress()
     */
    public Progress[] getProgress()
    {
        Progress p = new ProgressImpl(currRowCount, totalRowCount,
                Progress.ENTITIES);
        return new Progress[] { p };
    }
View Full Code Here

TOP

Related Classes of org.apache.uima.util.Progress

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.