gov.nasa.gsfc.hessi.jidl.prep.server.instrument
Class PrepService

java.lang.Object
  extended by gov.nasa.gsfc.hessi.jidl.prep.server.instrument.PrepService
All Implemented Interfaces:
com.idl.javaidl.JIDLOutputListener
Direct Known Subclasses:
GenPrepService

public abstract class PrepService
extends java.lang.Object
implements com.idl.javaidl.JIDLOutputListener

This is the basic PrepService class that is then used by i.e. GenPrepService

Since:
Revision 21
Author:
Laszlo Istvan Etesi

Field Summary
protected  InstrumentDataSet ids
          Stores the InstrumentDataSet
 
Constructor Summary
PrepService(InstrumentDataSet ids)
          Default constructor
 
Method Summary
protected  java.io.File getAndSaveRawData(java.net.URL url)
          This helper method reads data from a URL
 void IDLoutput(com.idl.javaidl.JIDLObjectI sender, java.lang.String message)
          The callback class for IDL to log its output to Java
abstract  PrepResponse prep(PrepParameterSet parameters)
          Preprocessing method called by VxoPrepServer.preprocess(PrepParameterSet) It extracts all data from PrepParameterSet and performs the preprocessing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ids

protected InstrumentDataSet ids
Stores the InstrumentDataSet

Constructor Detail

PrepService

public PrepService(InstrumentDataSet ids)
Default constructor

Parameters:
ids - is the instrument specific InstrumentDataSet
Method Detail

prep

public abstract PrepResponse prep(PrepParameterSet parameters)
Preprocessing method called by VxoPrepServer.preprocess(PrepParameterSet) It extracts all data from PrepParameterSet and performs the preprocessing.

Parameters:
parameters - is the parameter set containing the preprocssing directives
Returns:
the prep response containing a status, message and / or data

getAndSaveRawData

protected java.io.File getAndSaveRawData(java.net.URL url)
                                  throws java.io.IOException
This helper method reads data from a URL

Parameters:
url - is the target url
Returns:
a File containing the requested data in binary form
Throws:
java.io.IOException

IDLoutput

public void IDLoutput(com.idl.javaidl.JIDLObjectI sender,
                      java.lang.String message)
The callback class for IDL to log its output to Java

Specified by:
IDLoutput in interface com.idl.javaidl.JIDLOutputListener
Parameters:
sender - is the logging object
message - is the message to be logged