Alignment API and Server 4.6 (1875M)

fr.inrialpes.exmo.align.cli
Class CommonCLI

java.lang.Object
  extended by fr.inrialpes.exmo.align.cli.CommonCLI
Direct Known Subclasses:
AlignmentService, EvalAlign, ExtGroupEval, GenPlot, GroupAlign, GroupEval, GroupOutput, ParserPrinter, Procalign, TestGen, WGroupEval

public abstract class CommonCLI
extends Object

For instanciating this class: - extends CommonCLI - call to super() in constructor - add options in constructor - CommandLine line = parseCommandLine( args ); in main - retrieve new options - retrieve remaining args - redefine usage() with specific first line - use parameters


Field Summary
(package private) static org.slf4j.Logger logger
           
protected  org.apache.commons.cli.Options options
           
protected  String outputfilename
           
protected  Properties parameters
           
 
Constructor Summary
CommonCLI()
           
 
Method Summary
 void exit(int returnCode)
           
 org.apache.commons.cli.CommandLine parseCommandLine(String[] args)
           
 void parseSpecificCommandLine(String[] args)
           
private  void run(String[] args)
           
abstract  void usage()
           
 void usage(String firstlines)
           
 void usage(String firstlines, String footer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static final org.slf4j.Logger logger

options

protected org.apache.commons.cli.Options options

outputfilename

protected String outputfilename

parameters

protected Properties parameters
Constructor Detail

CommonCLI

public CommonCLI()
Method Detail

run

private void run(String[] args)

parseSpecificCommandLine

public void parseSpecificCommandLine(String[] args)

parseCommandLine

public org.apache.commons.cli.CommandLine parseCommandLine(String[] args)
                                                    throws org.apache.commons.cli.ParseException
Throws:
org.apache.commons.cli.ParseException

exit

public void exit(int returnCode)

usage

public abstract void usage()

usage

public void usage(String firstlines)

usage

public void usage(String firstlines,
                  String footer)

Alignment API and Server 4.6 (1875M)

(C) INRIA & friends, 2003-2014