org.apache.uima.util.Progress Java Examples
The following examples show how to use
org.apache.uima.util.Progress.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CpmPanel.java From uima-uimaj with Apache License 2.0 | 6 votes |
@Override 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; } } } if (nrFiles != -1) { progressBar.setMaximum(nrFiles); progressBar.setIndeterminate(false); } else progressBar.setIndeterminate(true); progressBar.setValue(0); // start progress timer which will update the progress bar progressTimer.start(); }
Example #2
Source File: CpmPanel.java From uima-uimaj with Apache License 2.0 | 5 votes |
/** * Display progress. */ 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++) { if (progress[i].getUnit().equals(Progress.ENTITIES)) { FILE_ENTITY_PROGRESS_INDEX = i; break; } } } if (FILE_ENTITY_PROGRESS_INDEX >= 0) { // uima-1086 int value = (int) progress[FILE_ENTITY_PROGRESS_INDEX].getCompleted(); progressBar.setValue(value); if (progressBar.isIndeterminate()) statusLabel.setText("Processed " + value); else statusLabel.setText("Processed " + value + " of " + progressBar.getMaximum()); } } } catch (Exception e) { displayError(e); } } }
Example #3
Source File: ErrorTestCollectionReader.java From uima-uimaj with Apache License 2.0 | 5 votes |
/** * @see org.apache.uima.collection.base_cpm.BaseCollectionReader#getProgress() */ public Progress[] getProgress() { logger.log(LOG_LEVEL, "getProgress() was called"); if (errorConfig.containsKey(FUNC_GETPROCESS_KEY)) { ((FunctionErrorStore) errorConfig.get(FUNC_GETPROCESS_KEY)).methodeCalled8(); } return new Progress[] { new ProgressImpl(documentsCounted, documentCount, Progress.ENTITIES) }; }
Example #4
Source File: CPMEngine.java From uima-uimaj with Apache License 2.0 | 5 votes |
/** * Returns collectionReader progress. * * @return the progress */ public Progress[] getProgress() { if (collectionReader == null) { return null; } return collectionReader.getProgress(); }
Example #5
Source File: BaleenCollectionReader.java From baleen with Apache License 2.0 | 5 votes |
@Override public final Progress[] getProgress() { monitor.startFunction("getProgress"); Progress[] ret = doGetProgress(); monitor.finishFunction("getProgress"); return ret; }
Example #6
Source File: WhiteTextConnectionsCollectionReader.java From bluima with Apache License 2.0 | 4 votes |
public Progress[] getProgress() {// nope return null; }
Example #7
Source File: XmlTestcaseCollectionReader.java From bluima with Apache License 2.0 | 4 votes |
@Override public Progress[] getProgress() { return null; }
Example #8
Source File: PubmedArchiveCollectionReader2.java From bluima with Apache License 2.0 | 4 votes |
public Progress[] getProgress() {// nope return null; }
Example #9
Source File: RabbitReader.java From bluima with Apache License 2.0 | 4 votes |
@Override public Progress[] getProgress() {// nope return null; }
Example #10
Source File: CasMultiplierTest.java From uima-uimafit with Apache License 2.0 | 4 votes |
@Override public Progress[] getProgress() { return null; }
Example #11
Source File: TcasCollectionReader.java From uima-uimaj with Apache License 2.0 | 4 votes |
public Progress[] getProgress() { return null; }
Example #12
Source File: LineReader.java From uima-uimafit with Apache License 2.0 | 4 votes |
public Progress[] getProgress() { Progress progress = new ProgressImpl(lineIndex, lines.length, Progress.ENTITIES); return new Progress[] { progress }; }
Example #13
Source File: CollectionProcessingEngine_impl.java From uima-uimaj with Apache License 2.0 | 4 votes |
public Progress[] getProgress() { return mCPM.getProgress(); }
Example #14
Source File: SofaCollectionReader.java From uima-uimaj with Apache License 2.0 | 4 votes |
public Progress[] getProgress() { return null; }
Example #15
Source File: SingleDocCollectionReader.java From uima-uimaj with Apache License 2.0 | 4 votes |
public Progress[] getProgress() { return null; }
Example #16
Source File: FileSystemCollectionReader.java From uima-uimaj with Apache License 2.0 | 4 votes |
/** * @see org.apache.uima.collection.base_cpm.BaseCollectionReader#getProgress() */ public Progress[] getProgress() { return new Progress[] { new ProgressImpl(mCurrentIndex, mFiles.size(), Progress.ENTITIES) }; }
Example #17
Source File: CasMultiplierTest.java From uima-uimafit with Apache License 2.0 | 4 votes |
@Override public Progress[] getProgress() { return null; }
Example #18
Source File: CasHeapSizeTestCollectionReader.java From uima-uimaj with Apache License 2.0 | 4 votes |
public Progress[] getProgress() { return null; }
Example #19
Source File: BioNLPGeniaEventsCollectionReader.java From bluima with Apache License 2.0 | 4 votes |
public Progress[] getProgress() {// nope return null; }
Example #20
Source File: WhiteTextCollectionReader.java From bluima with Apache License 2.0 | 4 votes |
public Progress[] getProgress() {// nope return null; }
Example #21
Source File: JCasIterableTest.java From uima-uimafit with Apache License 2.0 | 4 votes |
@Override public Progress[] getProgress() { return new Progress[] { new ProgressImpl(n, N, "document") }; }
Example #22
Source File: PubmedCentralCollectionReader.java From bluima with Apache License 2.0 | 4 votes |
public Progress[] getProgress() {// nope return null; }
Example #23
Source File: Biocreative2GeneCollectionReader.java From bluima with Apache License 2.0 | 4 votes |
public Progress[] getProgress() {// nope return null; }
Example #24
Source File: PubmedArchiveCollectionReader.java From bluima with Apache License 2.0 | 4 votes |
public Progress[] getProgress() {// nope return null; }
Example #25
Source File: GeniaCorpusCollectionReader.java From bluima with Apache License 2.0 | 4 votes |
public Progress[] getProgress() {// nope return null; }
Example #26
Source File: PubmedWholeDatabaseCR.java From bluima with Apache License 2.0 | 4 votes |
@Override public Progress[] getProgress() {// nope return null; }
Example #27
Source File: PubmedFromListDatabaseCR.java From bluima with Apache License 2.0 | 4 votes |
@Override public Progress[] getProgress() {// nope return null; }
Example #28
Source File: PubmedDatabaseCR.java From bluima with Apache License 2.0 | 4 votes |
@Override public Progress[] getProgress() {// nope return null; }
Example #29
Source File: PubmedWebServiceCollectionReader.java From bluima with Apache License 2.0 | 4 votes |
public Progress[] getProgress() {// nope return null; }
Example #30
Source File: RangeBinaryCasReader.java From bluima with Apache License 2.0 | 4 votes |
@Override public Progress[] getProgress() {// nope return null; }