saaps.dbt
Class GOES08xrayDB

java.lang.Object
  |
  +--saaps.dbt.Database
        |
        +--saaps.dbt.GOES08xrayDB

public class GOES08xrayDB
extends Database

GOES08xrayDB extends the Database class. It contains the read and write methods that are used in Database. The field is a vector of GOES08xray objects.

See Also:
GOES08part

Fields inherited from class saaps.dbt.Database
ADAY, AHOUR, AMIN, baseDir, dataDirVar, dataGapValue, isSet, meta, raf
 
Constructor Summary
GOES08xrayDB()
           
GOES08xrayDB(int i)
           
GOES08xrayDB(java.util.Vector GOESV)
          When a new class is added to the database this constructor should be used which includes the information that goes into the meta data file.
 
Method Summary
 java.util.Date getDate(java.lang.Object obj)
          Gets the date from this object.
protected  MetaData getEmptyMetaData(java.util.Date sd, java.util.Date ed)
          Returns an "empty" metadata object.
 java.util.Vector getLatestDatabaseObjects()
          This method is implemented for Database abstract metod.
 void myHello()
           
 java.lang.Object read()
          Gets the object at the current point in file.
protected  MetaData setDefaultMeta(java.util.Date sd, java.util.Date ed)
          Creates a metadata file for this class with the default values set to the static values defined above.
 void write(java.lang.Object obj)
          Writes data at the current point in file.
 
Methods inherited from class saaps.dbt.Database
close, getDataGapValue, getFirst, getInstance, getInstance, getLast, getTimeSeries, getTimeSeries, importAscii, isSet, position, retrieve, retrieve, retrieve, retrieve, retrieveAVE, retrieveAVE, retrieveOTS, retrieveSEA, retrieveTS, store, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GOES08xrayDB

public GOES08xrayDB()

GOES08xrayDB

public GOES08xrayDB(int i)

GOES08xrayDB

public GOES08xrayDB(java.util.Vector GOESV)
             throws java.io.IOException
When a new class is added to the database this constructor should be used which includes the information that goes into the meta data file. The arguments are: Vector of GOES objects, the class name, a short description, continuos time series (false/true), and if a continous time series the time step.
Method Detail

read

public java.lang.Object read()
                      throws java.io.IOException
Description copied from class: Database
Gets the object at the current point in file.
Overrides:
read in class Database
Tags copied from class: Database
Returns:
an object from the database
Throws:
java.io.IOException - when reading fails

myHello

public void myHello()

write

public void write(java.lang.Object obj)
           throws java.io.IOException
Description copied from class: Database
Writes data at the current point in file.
Overrides:
write in class Database
Tags copied from class: Database
Parameters:
dbo - an object containg data to be written.
Throws:
java.io.IOException - when writeing fails

getDate

public java.util.Date getDate(java.lang.Object obj)
Description copied from class: Database
Gets the date from this object. See also DatabaseObject.getDate().
Overrides:
getDate in class Database
Tags copied from class: Database
Parameters:
obj - a database object
Returns:
the Date for the input object

getLatestDatabaseObjects

public java.util.Vector getLatestDatabaseObjects()
This method is implemented for Database abstract metod. It retrieves the latest data from the dataprovider and returns the vector of Database objects.
Overrides:
getLatestDatabaseObjects in class Database

setDefaultMeta

protected MetaData setDefaultMeta(java.util.Date sd,
                                  java.util.Date ed)
                           throws java.io.IOException
Creates a metadata file for this class with the default values set to the static values defined above. OBS!, check calendar ....
Overrides:
setDefaultMeta in class Database
Tags copied from class: Database
Parameters:
sd - start time of data in datafile
ed - end time of data in datafile
Returns:
the new MetaData object
Throws:
java.io.IOException - when save of MetaData fails

getEmptyMetaData

protected MetaData getEmptyMetaData(java.util.Date sd,
                                    java.util.Date ed)
Returns an "empty" metadata object. All fields but Start and end time has valid values (as set in the respective database class). The times will be set to that what is supplied. OBS! This is not stored in the MetaData file !!
Overrides:
getEmptyMetaData in class Database
Tags copied from class: Database
Parameters:
sd - fake start date
ed - fake end date
Returns:
the fake MetaData object