saaps.dbt
Class DatabaseObject
java.lang.Object
|
+--saaps.dbt.DatabaseObject
- Direct Known Subclasses:
- ACEmag, ACEmagHourly, ACEswe, ACEsweHourly, GOES08part, GOES08xray, GOES10part, GOES10xray, Kp, OMNI
- public abstract class DatabaseObject
- extends java.lang.Object
Method Summary |
abstract double |
getData(int index)
This method will return the data value of the DatabaseObject
at position "index" converted to a double. |
abstract long |
getDataSize()
Returns the size of the data that is written to file for this
object type. |
abstract java.util.Date |
getDate()
getDate will return the Date associated with this DatabaseObject |
static DatabaseObject |
getInstance(java.lang.String name,
java.util.Date D)
This static method is used to get a DatabaseObject object with
constructor arguments. |
static DatabaseObject |
getInstance(java.lang.String name,
java.util.Date D,
double[] data)
This static method is used to get a DatabaseObject object with
constructor arguments. |
abstract int |
getNumberOfDataIndexes()
getNumberOfDataIndexes will return the number of data "types" this
DatabaseObject has. |
long |
getObjectSize()
This method will return the size of the DatabaseObject in bytes. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DatabaseObject
public DatabaseObject()
getInstance
public static DatabaseObject getInstance(java.lang.String name,
java.util.Date D)
- This static method is used to get a DatabaseObject object with
constructor arguments. The object returned has this date
but the datavalues are set to "not valid data".
getInstance
public static DatabaseObject getInstance(java.lang.String name,
java.util.Date D,
double[] data)
- This static method is used to get a DatabaseObject object with
constructor arguments. The object returned has this date
and the data is passed in an array to the real constructor.
getNumberOfDataIndexes
public abstract int getNumberOfDataIndexes()
- getNumberOfDataIndexes will return the number of data "types" this
DatabaseObject has.
getData
public abstract double getData(int index)
- This method will return the data value of the DatabaseObject
at position "index" converted to a double.
If datavalue index doesn't exist we should either throw an exception
or return a value that doesn't represent a number.
getDate
public abstract java.util.Date getDate()
- getDate will return the Date associated with this DatabaseObject
getDataSize
public abstract long getDataSize()
throws java.io.IOException
- Returns the size of the data that is written to file for this
object type.
getObjectSize
public long getObjectSize()
throws java.io.IOException
- This method will return the size of the DatabaseObject in bytes.