org.mbari.siam.operations.portal
Class ProfileAnalyzer

java.lang.Object
  extended by org.mbari.siam.operations.portal.ProfileAnalyzer

public class ProfileAnalyzer
extends java.lang.Object


Field Summary
static java.lang.String _end
           
static java.lang.String _info
           
protected static org.apache.log4j.Logger _log4j
          Log4j logger
static java.lang.String _start
           
static java.lang.String DFLT_DIR
           
static int DFLT_EVENTFORMAT
           
static java.lang.Integer END
           
static int FORMAT_ABSTIME
           
static int FORMAT_LEGACY
           
static java.lang.Integer INFO
           
 int NOMINAL_BITRATE
           
static java.lang.Integer START
           
static java.lang.Integer UNDEFINED
           
 
Constructor Summary
ProfileAnalyzer()
           
ProfileAnalyzer(java.lang.String file)
           
ProfileAnalyzer(java.lang.String file, java.lang.String outputDirectory, int eventFormat)
           
 
Method Summary
 void analyze()
           
static void exitError(java.lang.String msg, int exitCode)
           
 void exportStats(java.util.Vector segments, java.util.Vector statSets)
           
 void exportTable(java.util.Vector statSets, boolean showHeader)
           
 java.lang.String getPath(java.lang.String name)
           
 java.lang.String getTableHeader(java.lang.String[] eventNames)
           
 java.lang.String getTableTotals(java.lang.Double[] totals)
           
 java.lang.String getTableTotals(java.lang.Long[] totals)
           
 java.lang.String getTableTotals(java.lang.String[] totals)
           
static void main(java.lang.String[] args)
           
static void printUsage()
           
static void processArgs(ProfileAnalyzer pa, java.lang.String[] args)
           
 void setEventFormat(int eventFormat)
           
 void setInputFile(java.lang.String file)
           
 void setOutputDirectory(java.lang.String dir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log4j

protected static org.apache.log4j.Logger _log4j
Log4j logger


FORMAT_LEGACY

public static final int FORMAT_LEGACY
See Also:
Constant Field Values

FORMAT_ABSTIME

public static final int FORMAT_ABSTIME
See Also:
Constant Field Values

END

public static java.lang.Integer END

START

public static java.lang.Integer START

UNDEFINED

public static java.lang.Integer UNDEFINED

INFO

public static java.lang.Integer INFO

_start

public static java.lang.String _start

_end

public static java.lang.String _end

_info

public static java.lang.String _info

DFLT_DIR

public static java.lang.String DFLT_DIR

DFLT_EVENTFORMAT

public static int DFLT_EVENTFORMAT

NOMINAL_BITRATE

public final int NOMINAL_BITRATE
See Also:
Constant Field Values
Constructor Detail

ProfileAnalyzer

public ProfileAnalyzer()

ProfileAnalyzer

public ProfileAnalyzer(java.lang.String file)

ProfileAnalyzer

public ProfileAnalyzer(java.lang.String file,
                       java.lang.String outputDirectory,
                       int eventFormat)
Method Detail

printUsage

public static void printUsage()

exitError

public static void exitError(java.lang.String msg,
                             int exitCode)

setInputFile

public void setInputFile(java.lang.String file)

getPath

public java.lang.String getPath(java.lang.String name)

setOutputDirectory

public void setOutputDirectory(java.lang.String dir)

setEventFormat

public void setEventFormat(int eventFormat)

analyze

public void analyze()

exportStats

public void exportStats(java.util.Vector segments,
                        java.util.Vector statSets)

getTableHeader

public java.lang.String getTableHeader(java.lang.String[] eventNames)

getTableTotals

public java.lang.String getTableTotals(java.lang.String[] totals)

getTableTotals

public java.lang.String getTableTotals(java.lang.Long[] totals)

getTableTotals

public java.lang.String getTableTotals(java.lang.Double[] totals)

exportTable

public void exportTable(java.util.Vector statSets,
                        boolean showHeader)

processArgs

public static void processArgs(ProfileAnalyzer pa,
                               java.lang.String[] args)

main

public static void main(java.lang.String[] args)


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.