proper.core
Interface CommandLineInterface

All Known Implementing Classes:
About, Application, ApplicationFrame, ArffComparer, ArffFilter, ArffViewer, Bagger, Builder, ChildFrame, Classifier, CommandLineFrame, DatabaseApplication, DatabaseChildFrame, Databases, Editor, Experimenter, Experimenter, ExperimentFrame, Explorer, Export, ForeignKeys, Help, Import, JobAdder, Jobber, JobClient, JobMonitor, Jobs, JobServer, Logger, MIExperimenter, Milk, MILK, Propagation, Proper, Reducer, Relaggs, RELAGGS, Relations, Relations, ReMilk, REMILK, Run, Server, Setup, SqlViewer, Standalone, Tester, XSLer

public interface CommandLineInterface

This interface specifies some methods for command line handling.

Version:
$Revision: 1.3 $
Author:
FracPete
See Also:
CommandLine

Method Summary
 void checkCommandLine()
          checks whether all necessary parameters are provided
 void parameterError()
          prints the usage if not all necessary parameters were provided
 void printDescription()
          prints a short description of this class
 void printUsage()
          prints the usage of the application, with all necessary parameters
 boolean run(java.lang.String[] args)
          processes the commandline parameters and starts the rest of the code (e.g.
 void setArgs(CommandLine cl)
          sets the commandline object
 

Method Detail

setArgs

void setArgs(CommandLine cl)
sets the commandline object


checkCommandLine

void checkCommandLine()
checks whether all necessary parameters are provided


parameterError

void parameterError()
prints the usage if not all necessary parameters were provided


printDescription

void printDescription()
prints a short description of this class


printUsage

void printUsage()
prints the usage of the application, with all necessary parameters


run

boolean run(java.lang.String[] args)
            throws java.lang.Exception
processes the commandline parameters and starts the rest of the code (e.g. program or frame)

Returns:
returns TRUE if successful run
Throws:
java.lang.Exception