@Title(value="Null Algorithm") @Description(value="Algorithm which does nothing, just return a null object.") public class NullAlgorithm extends AbstractAlgorithm<Result>
Modifier and Type | Field and Description |
---|---|
private static Logging |
logger
The logger for this class.
|
Constructor and Description |
---|
NullAlgorithm()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TypeInformation[] |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
protected Logging |
getLogger()
Get the (STATIC) logger for this class.
|
Result |
run(Database database)
Runs the algorithm.
|
makeParameterDistanceFunction
private static final Logging logger
public Result run(Database database) throws IllegalStateException
Algorithm
run
in interface Algorithm
run
in class AbstractAlgorithm<Result>
database
- the database to run the algorithm onIllegalStateException
- if the algorithm has not been initialized
properly (e.g. the setParameters(String[]) method has been failed
to be called).protected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<Result>
public TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<Result>