public abstract class AbstractApplication extends 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 String |
NEWLINE
The newline string according to system.
|
static String |
REFERENCE
Information for citation and version.
|
private static String |
REFERENCE_VERSION
Version number of the reference below.
|
static String |
VERSION
Version information.
|
Constructor and Description |
---|
AbstractApplication()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private static void |
printDescription(Class<?> descriptionClass)
Print the description for the given parameter
|
protected static void |
printErrorMessage(Exception e)
Print an error message for the given error.
|
abstract void |
run()
Runs the application.
|
static void |
runCLIApplication(Class<?> cls,
String[] args)
Generic command line invocation.
|
static String |
usage(Collection<TrackedParameter> options)
Returns a usage message, explaining all known options
|
private static final Logging LOG
private static final String NEWLINE
public static final String VERSION
private static final String REFERENCE_VERSION
@Reference(authors="Erich Schubert, Alexander Koos, Tobias Emrich, Andreas Z\u00fcfle, Klaus Arthur Schmid, Arthur Zimek", title="A Framework for Clustering Uncertain Data", booktitle="Proceedings of the VLDB Endowment, 8(12)", url="http://www.vldb.org/pvldb/vol8/p1976-schubert.pdf") public static final String REFERENCE
public static void runCLIApplication(Class<?> cls, String[] args)
cls
- Application class to run.args
- the arguments to run this application withpublic static String usage(Collection<TrackedParameter> options)
options
- Options to show in usage.protected static void printErrorMessage(Exception e)
e
- Error Exception.private static void printDescription(Class<?> descriptionClass)
public abstract void run() throws UnableToComplyException
UnableToComplyException
- if an error occurs during running the
applicationCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.