public abstract class AbstractApplication
extends java.lang.Object
Any Wrapper class that makes use of these flags may extend this class. Beware to make correct use of parameter settings via optionHandler as commented with constructor and methods.
Modifier and Type | Class and Description |
---|---|
static class |
AbstractApplication.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
We need a static logger in this class, for code used in "main" methods.
|
private static java.lang.String |
NEWLINE
The newline string according to system.
|
static java.lang.String |
REFERENCE
Information for citation and version.
|
private static java.lang.String |
REFERENCE_VERSION
Version number of the reference below.
|
static java.lang.String |
VERSION
Version information.
|
Constructor and Description |
---|
AbstractApplication()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private static void |
printDescription(java.lang.Class<?> descriptionClass)
Print the description for the given parameter
|
protected static void |
printErrorMessage(java.lang.Exception e)
Print an error message for the given error.
|
abstract void |
run()
Runs the application.
|
static void |
runCLIApplication(java.lang.Class<?> cls,
java.lang.String[] args)
Generic command line invocation.
|
static java.lang.String |
usage(java.util.Collection<TrackedParameter> options)
Returns a usage message, explaining all known options
|
private static final Logging LOG
private static final java.lang.String NEWLINE
public static final java.lang.String VERSION
private static final java.lang.String REFERENCE_VERSION
@Reference(authors="Erich Schubert and Arthur Zimek", title="ELKI: A large open-source library for data analysis - ELKI Release 0.7.5 \"Heidelberg\"", booktitle="CoRR", url="https://arxiv.org/abs/1902.03616", bibkey="DBLP:journals/corr/abs-1902-03616") public static final java.lang.String REFERENCE
public static void runCLIApplication(java.lang.Class<?> cls, java.lang.String[] args)
Refactored to have a central place for outermost exception handling.
cls
- Application class to run.args
- the arguments to run this application withpublic static java.lang.String usage(java.util.Collection<TrackedParameter> options)
options
- Options to show in usage.protected static void printErrorMessage(java.lang.Exception e)
e
- Error Exception.private static void printDescription(java.lang.Class<?> descriptionClass)
public abstract void run()
Copyright © 2019 ELKI Development Team. License information.