public abstract class MultiThreadedAlgorithm extends Object implements MultiThreaded, Algorithm
MultiThreaded and Algorithm so that less code has to be
re-implemented.
IMPORTANT: It is not meant to be used for any other purpose than that, it
should not be demanded by any other method or generic construct, use the
interfaces instead.| Modifier and Type | Field and Description |
|---|---|
protected String |
errorMessage |
protected int |
numThreads |
| Constructor and Description |
|---|
MultiThreadedAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorMessage() |
int |
getNumThreads()
The number of threads used by the algorithm
|
void |
setNumThreads()
Sets the number of threads to the amount of processors available
|
void |
setNumThreads(int numThreads)
Sets the number of threads
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckInput, processprotected int numThreads
protected String errorMessage
public void setNumThreads()
MultiThreadedsetNumThreads in interface MultiThreadedpublic void setNumThreads(int numThreads)
MultiThreadedsetNumThreads in interface MultiThreadednumThreads - - number of threads to usepublic int getNumThreads()
MultiThreadedgetNumThreads in interface MultiThreadedpublic String getErrorMessage()
getErrorMessage in interface AlgorithmCopyright © 2015–2022 ImgLib2. All rights reserved.