de.pado.dv
Class DVCommandLineMap

java.lang.Object
  extended by de.pado.dv.CommandLineMap
      extended by de.pado.dv.DVCommandLineMap

public class DVCommandLineMap
extends CommandLineMap

This class provides a number of methods to interpret the arguments given on the command line. It is specifically adapted to the needs of the DependencyVectors package.


Constructor Summary
DVCommandLineMap(java.lang.String[] args, java.util.List knownArgs)
           
 
Method Summary
 Logfile createLogfile(java.lang.String path)
          creates a logfile according to the current command line
 ContextSpec[] determineContextSpecs(java.lang.String[] allCSFiles, Logfile log)
          determines the context specifications specified by the current command line
 Corpus determineCorpus(Logfile log)
          determines the corpus specified by the current command line
 java.lang.String determineTargetDirectory()
          determines target directory.
 java.lang.String[] determineValueFunctions(java.lang.String[] allValuations, Logfile log)
          determines the value functions specified by the current command line
 
Methods inherited from class de.pado.dv.CommandLineMap
exists, get, isOption
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DVCommandLineMap

public DVCommandLineMap(java.lang.String[] args,
                        java.util.List knownArgs)
Method Detail

determineTargetDirectory

public java.lang.String determineTargetDirectory()
determines target directory. Returns null if target directory not specified.


createLogfile

public Logfile createLogfile(java.lang.String path)
                      throws java.io.IOException
creates a logfile according to the current command line

Throws:
java.io.IOException

determineCorpus

public Corpus determineCorpus(Logfile log)
                       throws java.io.IOException
determines the corpus specified by the current command line

Throws:
java.io.IOException

determineContextSpecs

public ContextSpec[] determineContextSpecs(java.lang.String[] allCSFiles,
                                           Logfile log)
                                    throws java.io.IOException
determines the context specifications specified by the current command line

Throws:
java.io.IOException

determineValueFunctions

public java.lang.String[] determineValueFunctions(java.lang.String[] allValuations,
                                                  Logfile log)
                                           throws java.io.IOException
determines the value functions specified by the current command line

Throws:
java.io.IOException