saaps.dbt
Class AE

java.lang.Object
  |
  +--saaps.dbt.DatabaseObject
        |
        +--saaps.dbt.AE
All Implemented Interfaces:
java.io.Serializable

public class AE
extends DatabaseObject
implements java.io.Serializable

A class for the AE, AL, AO, and AU indeces. The class contains the date and data in units of nT.

Version:
1.0 2001-03-05
Author:
Peter Wintoft
See Also:
Serialized Form

Field Summary
private  java.util.Date d
           
private  double[] data
           
protected static int numberOfIndexes
           
 
Constructor Summary
AE()
           
AE(java.util.Date D)
          This constructor is used if you want an "empty" object with this date.
AE(java.util.Date D, double[] data)
           
AE(long time, double[] data)
           
 
Method Summary
 java.util.Vector getData()
           
 double getData(int index)
          This method will return the data value of the DatabaseObject at position "index" converted to a double.
 double[] getDataArray()
           
 long getDataSize()
          This method returns the size of the data that is to be written to file
 java.util.Date getDate()
          getDate will return the Date associated with this DatabaseObject
 int getNumberOfDataIndexes()
          getNumberOfDataIndexes will return the number of data "types" this DatabaseObject has.
 void setAE(double[] data)
           
 void setDate(java.util.Date D)
           
 void setDate(long L)
           
 java.lang.String toString()
           
 
Methods inherited from class saaps.dbt.DatabaseObject
getInstance, getInstance, getObjectSize
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

numberOfIndexes

protected static int numberOfIndexes

d

private java.util.Date d

data

private double[] data
Constructor Detail

AE

public AE()

AE

public AE(java.util.Date D)
This constructor is used if you want an "empty" object with this date.

AE

public AE(java.util.Date D,
          double[] data)

AE

public AE(long time,
          double[] data)
Method Detail

getDataArray

public double[] getDataArray()

getDate

public java.util.Date getDate()
Description copied from class: DatabaseObject
getDate will return the Date associated with this DatabaseObject
Overrides:
getDate in class DatabaseObject

getData

public java.util.Vector getData()

getDataSize

public long getDataSize()
                 throws java.io.IOException
This method returns the size of the data that is to be written to file
Overrides:
getDataSize in class DatabaseObject

setDate

public void setDate(java.util.Date D)

setDate

public void setDate(long L)

setAE

public void setAE(double[] data)

getNumberOfDataIndexes

public int getNumberOfDataIndexes()
Description copied from class: DatabaseObject
getNumberOfDataIndexes will return the number of data "types" this DatabaseObject has.
Overrides:
getNumberOfDataIndexes in class DatabaseObject

getData

public double getData(int index)
Description copied from class: DatabaseObject
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.
Overrides:
getData in class DatabaseObject

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object