public abstract class AbstractAlgorithmExecutor extends Object implements AlgorithmExecutor
| Modifier and Type | Field and Description |
|---|---|
protected Algorithm |
algorithmDef |
protected AlgorithmExecutionContext |
execCtx |
protected CopyOnWriteArrayList<AlgorithmExecListener> |
execListeners |
protected Set<InputParameter> |
mandatoryToRun |
protected Set<Parameter> |
requiredParameters |
| Constructor and Description |
|---|
AbstractAlgorithmExecutor(Algorithm algorithmDef,
AlgorithmExecutionContext execCtx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExecListener(AlgorithmExecListener listener) |
Algorithm |
getAlgorithm() |
AlgorithmExecutionContext |
getExecutionContext() |
int |
getLookbackSize(Parameter parameter) |
Set<Parameter> |
getRequiredParameters() |
protected void |
propagateToListeners(Object returnValue,
List<ParameterValue> outputValues) |
protected abstract void |
updateInput(InputParameter inputParameter,
ParameterValue newValue) |
boolean |
updateParameters(List<ParameterValue> items)
update the parameters and return true if the algorithm should run
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunAlgorithmprotected final AlgorithmExecutionContext execCtx
protected final Algorithm algorithmDef
protected final CopyOnWriteArrayList<AlgorithmExecListener> execListeners
protected Set<InputParameter> mandatoryToRun
public AbstractAlgorithmExecutor(Algorithm algorithmDef, AlgorithmExecutionContext execCtx)
public boolean updateParameters(List<ParameterValue> items)
updateParameters in interface AlgorithmExecutoritems - protected abstract void updateInput(InputParameter inputParameter, ParameterValue newValue)
protected void propagateToListeners(Object returnValue, List<ParameterValue> outputValues)
public void addExecListener(AlgorithmExecListener listener)
addExecListener in interface AlgorithmExecutorpublic AlgorithmExecutionContext getExecutionContext()
getExecutionContext in interface AlgorithmExecutorpublic int getLookbackSize(Parameter parameter)
getLookbackSize in interface AlgorithmExecutorpublic Set<Parameter> getRequiredParameters()
getRequiredParameters in interface AlgorithmExecutorpublic Algorithm getAlgorithm()
getAlgorithm in interface AlgorithmExecutorCopyright © 2018 Space Applications Services. All rights reserved.