edu.byu.ece.edif.util.jsap.commandgroups
Class LogFileCommandGroup

java.lang.Object
  extended by edu.byu.ece.edif.util.jsap.commandgroups.AbstractCommandGroup
      extended by edu.byu.ece.edif.util.jsap.commandgroups.LogFileCommandGroup
All Implemented Interfaces:
CommandGroup

public class LogFileCommandGroup
extends AbstractCommandGroup

Parses options for a Logfile, and provides several levels of output so the user can choose what level of output to see

Author:
Derrick Gibelyou

Field Summary
protected  com.martiansoftware.jsap.Switch _append_log_file
           
protected  com.martiansoftware.jsap.QualifiedSwitch _debug_file
           
protected  com.martiansoftware.jsap.FlaggedOption _log_file
           
protected static BoundedIntegerStringParser _oneFive
           
protected  com.martiansoftware.jsap.FlaggedOption _verbose
           
protected static java.lang.String APPEND_LOG_OPTION
           
protected static java.lang.String DEBUG_OPTION
           
protected static java.lang.String LOG_FILE_OPTION
           
protected static java.lang.String VERBOSE_OPTION
           
 
Fields inherited from class edu.byu.ece.edif.util.jsap.commandgroups.AbstractCommandGroup
_options
 
Constructor Summary
LogFileCommandGroup()
           
LogFileCommandGroup(java.lang.String logfile)
           
 
Method Summary
static void CreateLog(com.martiansoftware.jsap.JSAPResult result)
           
static boolean getLogging(com.martiansoftware.jsap.JSAPResult result)
           
static void logOptions(java.util.Set<com.martiansoftware.jsap.Parameter> params, com.martiansoftware.jsap.JSAPResult results)
           
static long reportTime(long startTime, java.lang.String description, java.io.PrintStream out)
           
 
Methods inherited from class edu.byu.ece.edif.util.jsap.commandgroups.AbstractCommandGroup
addCommand, getCommands
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log_file

protected com.martiansoftware.jsap.FlaggedOption _log_file

_debug_file

protected com.martiansoftware.jsap.QualifiedSwitch _debug_file

_verbose

protected com.martiansoftware.jsap.FlaggedOption _verbose

_append_log_file

protected com.martiansoftware.jsap.Switch _append_log_file

APPEND_LOG_OPTION

protected static final java.lang.String APPEND_LOG_OPTION
See Also:
Constant Field Values

LOG_FILE_OPTION

protected static final java.lang.String LOG_FILE_OPTION
See Also:
Constant Field Values

VERBOSE_OPTION

protected static final java.lang.String VERBOSE_OPTION
See Also:
Constant Field Values

DEBUG_OPTION

protected static final java.lang.String DEBUG_OPTION
See Also:
Constant Field Values

_oneFive

protected static BoundedIntegerStringParser _oneFive
Constructor Detail

LogFileCommandGroup

public LogFileCommandGroup()

LogFileCommandGroup

public LogFileCommandGroup(java.lang.String logfile)
Method Detail

getLogging

public static boolean getLogging(com.martiansoftware.jsap.JSAPResult result)

CreateLog

public static void CreateLog(com.martiansoftware.jsap.JSAPResult result)

reportTime

public static long reportTime(long startTime,
                              java.lang.String description,
                              java.io.PrintStream out)
Parameters:
startTime -
Returns:
new start time

logOptions

public static void logOptions(java.util.Set<com.martiansoftware.jsap.Parameter> params,
                              com.martiansoftware.jsap.JSAPResult results)