com.veromodo.tempo
Class NMain

java.lang.Object
  extended by com.veromodo.tempo.NMain
Direct Known Subclasses:
SimpleAnalysis

public class NMain
extends java.lang.Object

This class is the entry-point of the command-line user interface. The main program essentially collect all the stages (builtin and plugins) to assemble the pipeline. Once this is done, it sorts the stages by rank, collect the semantic rules from all the loaded plugins and passes them to the semantic analysis stage. Its run method simply executes the pipeline on the vector of input files.

Author:
L. Michel

Constructor Summary
NMain(java.lang.String[] args)
          Standard constructor for the command-line version.
 
Method Summary
static void main(java.lang.String[] args)
          This is the entry point.
 void run()
          The run method assumes that the pipeline is already setup.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NMain

public NMain(java.lang.String[] args)
      throws java.lang.Exception
Standard constructor for the command-line version. It creates the optionMap from the command line, creates a default buffer for error logging and sets up the stages.

Parameters:
args - the standard command line arguments.
Throws:
java.lang.Exception
Method Detail

run

public void run()
         throws java.lang.Exception
The run method assumes that the pipeline is already setup. It then simply executes the pipeline over the entire list of filenames.

Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
This is the entry point. Simply setup the program and execute it.

Throws:
java.lang.Exception