|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.hogent.tarsos.cli.AbstractTarsosApp
public abstract class AbstractTarsosApp
Constructor Summary | |
---|---|
AbstractTarsosApp()
|
Method Summary | |
---|---|
protected joptsimple.OptionSpec<PitchDetectionMode> |
createDetectionModeSpec(joptsimple.OptionParser parser)
Creates an optionspec for a pitch detector. |
abstract java.lang.String |
description()
|
protected boolean |
isHelpOptionSet(joptsimple.OptionSet options)
Checks if the OptionSet contains the help argument. |
abstract java.lang.String |
name()
|
protected joptsimple.OptionSet |
parse(java.lang.String[] args,
joptsimple.OptionParser parser,
AbstractTarsosApp application)
Parses arguments, adds and checks for help option an prints command line help for an application. |
protected void |
printHelp(joptsimple.OptionParser parser)
Prints command line help for an application. |
abstract void |
run(java.lang.String... args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractTarsosApp()
Method Detail |
---|
public abstract void run(java.lang.String... args)
args
- The arguments to start the program.public abstract java.lang.String name()
public abstract java.lang.String description()
protected final joptsimple.OptionSet parse(java.lang.String[] args, joptsimple.OptionParser parser, AbstractTarsosApp application)
args
- The command line arguments (options).parser
- The argument parser.application
- The application that needs the parameters.
protected final boolean isHelpOptionSet(joptsimple.OptionSet options)
options
- The options to check.
protected final joptsimple.OptionSpec<PitchDetectionMode> createDetectionModeSpec(joptsimple.OptionParser parser)
parser
- The parser to add an option to.
protected final void printHelp(joptsimple.OptionParser parser)
parser
- The command line argument parser.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |