public class MultipleOverlaysAlgorithm extends Algorithm implements NavigationDirectory
Algorithm.AlgorithmConstructor
log, maximalConcurrentOperations
Constructor and Description |
---|
MultipleOverlaysAlgorithm(Algorithm[] algorithms,
boolean cloneAsynchronousOperation)
Creates a new multi-algorithm overlay for the given collection of algorithms.
|
MultipleOverlaysAlgorithm(java.util.Collection<? extends Algorithm> algorithms,
boolean cloneAsynchronousOperation)
Creates a new multi-algorithm overlay for the given collection of algorithms.
|
MultipleOverlaysAlgorithm(java.lang.String algName,
java.util.Collection<? extends Algorithm> algorithms,
boolean cloneAsynchronousOperation)
Creates a new multi-algorithm overlay for the given collection of algorithms.
|
Modifier and Type | Method and Description |
---|---|
void |
finalize()
Finalize the algorithm.
|
Algorithm |
getAlgorithm(int i) |
protected java.util.Collection<Algorithm> |
getAlgorithms()
Returns all the currently encapsulated algorithms.
|
int |
getAlgorithmsCount()
Returns the number of the currently encapsulated algorithms.
|
NavigationProcessor<? extends AbstractOperation> |
getNavigationProcessor(AbstractOperation operation)
Returns the
navigator that provides the steps
in which the given operation should be evaluated. |
void |
setOperationsThreadPool(java.util.concurrent.ExecutorService operationsThreadPool)
If the sub-algorithms don't have their own thread pool, the top algorithm shares its thread pool with them.
|
void |
setOperationsThreadPool(int algorithmIndex,
java.util.concurrent.ExecutorService operationsThreadPool)
The provided thread pool is set on the given encapsulated algorithm and also to all
the encapsulated algorithms: see
Algorithm.setOperationsThreadPool(java.util.concurrent.ExecutorService) for details. |
java.lang.String |
toString() |
afterStoreToFile, backgroundExecuteOperation, backgroundExecuteOperationIndependent, backgroundExecuteOperationWithStatistics, beforeStoreToFile, createBackgroundExecutionCallable, destroy, execute, executeMethodWithStringArguments, executeOperation, executeUsingNavDir, getAllRunningOperations, getAnnotatedConstructors, getAnnotatedConstructorsArray, getConstructorArgumentDescriptions, getConstructorDescription, getConstructorDescriptionSimple, getExecutorParamClasses, getFirstSupportedOperation, getName, getObjectClass, getObjectCount, getOperationStatistics, getOperationsThreadPool, getOperationSubClasses, getQueryAnswer, getQueryAnswer, getRunningOperationById, getRunningOperationsCount, getSupportedOperations, getSupportedOperations, methodExecute, resetOperationStatistics, restoreFromFile, restoreFromFile, setExecutedOperationsLogVerbosity, setupStatsAndExecuteOperation, statisticsAfterOperation, statisticsBeforeOperation, storeToFile, terminateOperation, terminateOperation, waitBackgroundExecution
public MultipleOverlaysAlgorithm(java.lang.String algName, java.util.Collection<? extends Algorithm> algorithms, boolean cloneAsynchronousOperation)
algName
- string name of this algorithm to be used instead of the standard stringalgorithms
- the algorithms on which the operations are processedcloneAsynchronousOperation
- the flag whether to clone the operation for asynchronous processingpublic MultipleOverlaysAlgorithm(java.util.Collection<? extends Algorithm> algorithms, boolean cloneAsynchronousOperation)
algorithms
- the algorithms on which the operations are processedcloneAsynchronousOperation
- the flag whether to clone the operation for asynchronous processingpublic MultipleOverlaysAlgorithm(Algorithm[] algorithms, boolean cloneAsynchronousOperation)
algorithms
- the algorithms on which the operations are processedcloneAsynchronousOperation
- the flag whether to clone the operation for asynchronous processingpublic void finalize() throws java.lang.Throwable
Algorithm
public void setOperationsThreadPool(int algorithmIndex, java.util.concurrent.ExecutorService operationsThreadPool)
Algorithm.setOperationsThreadPool(java.util.concurrent.ExecutorService)
for details.algorithmIndex
- operationsThreadPool
- new thread pool (or null)public void setOperationsThreadPool(java.util.concurrent.ExecutorService operationsThreadPool)
setOperationsThreadPool
in class Algorithm
operationsThreadPool
- public NavigationProcessor<? extends AbstractOperation> getNavigationProcessor(AbstractOperation operation)
NavigationDirectory
navigator
that provides the steps
in which the given operation should be evaluated.getNavigationProcessor
in interface NavigationDirectory
operation
- the operation to get the navigator forpublic int getAlgorithmsCount()
public Algorithm getAlgorithm(int i)
protected java.util.Collection<Algorithm> getAlgorithms()
public java.lang.String toString()
toString
in class java.lang.Object