public abstract class Algorithm<T extends RealType<T>> extends Object
Modifier and Type | Method and Description |
---|---|
protected void |
addWarning(String shortMsg,
String longMsg)
Adds a warning to the list of warnings.
|
abstract void |
execute(DataContainer<T> container)
Executes the previously initialized
Algorithm . |
String |
getName() |
List<Warning> |
getWarnings()
Gets a reference to the warnings.
|
void |
processResults(ResultHandler<T> handler)
A method to give the algorithm the opportunity to let
its results being processed by the passed handler.
|
protected String name
public Algorithm(String name)
public abstract void execute(DataContainer<T> container) throws MissingPreconditionException
Algorithm
.MissingPreconditionException
public String getName()
public void processResults(ResultHandler<T> handler)
handler
- The ResultHandler to process the results.public List<Warning> getWarnings()
Copyright © 2015–2021 Fiji. All rights reserved.