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, wait
checkInput, process
protected int numThreads
protected String errorMessage
public void setNumThreads()
MultiThreaded
setNumThreads
in interface MultiThreaded
public void setNumThreads(int numThreads)
MultiThreaded
setNumThreads
in interface MultiThreaded
numThreads
- - number of threads to usepublic int getNumThreads()
MultiThreaded
getNumThreads
in interface MultiThreaded
public String getErrorMessage()
getErrorMessage
in interface Algorithm
Copyright © 2015–2022 ImgLib2. All rights reserved.