org.mbari.siam.utils
Class SummaryGenerator

java.lang.Object
  extended by org.mbari.siam.utils.SummaryGenerator

public class SummaryGenerator
extends java.lang.Object

Generates summaries from a Packet log. This class does not work with the Aquadopp data. Use As: SummaryGenerator sg = new SummaryGenerator(className, deviceId, inputDirectory, summaryVars); sg.run(); // Output XML is echoed to the console.

Version:
$Id: SummaryGenerator.java,v 1.2 2009/07/16 22:02:09 headley Exp $
Author:
brian

Constructor Summary
SummaryGenerator(java.lang.String className, long deviceId, java.lang.String inputDirectory, java.lang.String[] summaryVars)
          Creates a new instance of SummaryBlockTest
 
Method Summary
 BaseInstrumentService getInstrumentService()
           
protected  void handleMetadataPacket(MetadataPacket metadataPacket)
          Process a metadata packet an updates the instrument configuration object with the new metadata.
static void main(java.lang.String[] args)
           
 SiamRecord[] readDeviceLog()
          Reads A device log and returns the contents as an array of SiamRecords
 void run()
           
 void setAcceptedVariableNames(java.lang.String[] names)
           
 void setInstrumentService(BaseInstrumentService instrumentService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SummaryGenerator

public SummaryGenerator(java.lang.String className,
                        long deviceId,
                        java.lang.String inputDirectory,
                        java.lang.String[] summaryVars)
                 throws java.lang.ClassNotFoundException,
                        java.lang.InstantiationException,
                        java.lang.IllegalAccessException,
                        java.io.FileNotFoundException,
                        java.io.IOException
Creates a new instance of SummaryBlockTest

Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.io.FileNotFoundException
java.io.IOException
Method Detail

setAcceptedVariableNames

public void setAcceptedVariableNames(java.lang.String[] names)

run

public void run()
         throws java.lang.Exception
Throws:
java.lang.Exception

readDeviceLog

public SiamRecord[] readDeviceLog()
                           throws java.io.FileNotFoundException,
                                  java.io.IOException,
                                  NotSupportedException
Reads A device log and returns the contents as an array of SiamRecords

Throws:
java.io.FileNotFoundException
java.io.IOException
NotSupportedException

handleMetadataPacket

protected void handleMetadataPacket(MetadataPacket metadataPacket)
                             throws java.lang.Exception
Process a metadata packet an updates the instrument configuration object with the new metadata.

Parameters:
metadataPacket - The metadata to process
Throws:
java.lang.Exception

main

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

getInstrumentService

public BaseInstrumentService getInstrumentService()

setInstrumentService

public void setInstrumentService(BaseInstrumentService instrumentService)


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.