saaps.dbt
Class ACEmag
java.lang.Object
|
+--saaps.dbt.DatabaseObject
|
+--saaps.dbt.ACEmag
- All Implemented Interfaces:
- java.io.Serializable
- public class ACEmag
- extends DatabaseObject
- implements java.io.Serializable
A class for ACE magnetometer objects.
The class contains the date, Bx, By, Bz in GSE,
and Bt from the ACE spacecraft. It also contains
the latitude and longitude positions of the
spaceacraft.
There are methods to read
and write date and ACE data.
- Version:
- 1.1 1999-12-21 (Added Bt, latitude, and longitude)
- Author:
- Peter Wintoft
- See Also:
- Serialized Form
Constructor Summary |
ACEmag()
|
ACEmag(java.util.Date D)
This constructor is used if you want an "empty" object with this date. |
ACEmag(java.util.Date D,
double[] data)
|
ACEmag(java.util.Date D,
double BX,
double BY,
double BZ,
double BT,
double LT,
double LG)
|
ACEmag(long L,
double BX,
double BY,
double BZ,
double BT,
double LT,
double LG)
|
Method Summary |
double |
getBt()
|
double |
getBx()
|
double |
getBy()
|
double |
getBz()
|
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. |
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 |
double |
getLat()
|
double |
getLong()
|
int |
getNumberOfDataIndexes()
getNumberOfDataIndexes will return the number of data "types" this
DatabaseObject has. |
void |
setBt(double BT)
|
void |
setBx(double BX)
|
void |
setBy(double BY)
|
void |
setBz(double BZ)
|
void |
setDate(java.util.Date D)
|
void |
setDate(long L)
|
void |
setLat(double LT)
|
void |
setLong(double LG)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
numberOfIndexes
private static int numberOfIndexes
d
private java.util.Date d
bx
private double bx
by
private double by
bz
private double bz
bt
private double bt
latitude
private double latitude
longitude
private double longitude
ACEmag
public ACEmag()
ACEmag
public ACEmag(java.util.Date D)
- This constructor is used if you want an "empty" object with this date.
ACEmag
public ACEmag(java.util.Date D,
double[] data)
ACEmag
public ACEmag(java.util.Date D,
double BX,
double BY,
double BZ,
double BT,
double LT,
double LG)
ACEmag
public ACEmag(long L,
double BX,
double BY,
double BZ,
double BT,
double LT,
double LG)
getBx
public double getBx()
getBy
public double getBy()
getBz
public double getBz()
getBt
public double getBt()
getLat
public double getLat()
getLong
public double getLong()
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)
setBx
public void setBx(double BX)
setBy
public void setBy(double BY)
setBz
public void setBz(double BZ)
setBt
public void setBt(double BT)
setLat
public void setLat(double LT)
setLong
public void setLong(double LG)
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