|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--saaps.dbt.DatabaseObject | +--saaps.dbt.Kp
A class for Kp objects. The class contains the date, the Kp value, and a status flag indicating the type of Kp. There are four possible values on that the status flag can have:
Field Summary | |
private java.util.Date |
d
|
private double |
kp
|
private static int |
numberOfIndexes
|
private double |
status
|
Constructor Summary | |
Kp()
|
|
Kp(java.util.Date D)
This constructor is used if you want an "empty" object with this date. |
|
Kp(java.util.Date D,
double KP)
Deprecated. Replaced by Kp(Date,double[]) . |
|
Kp(java.util.Date D,
double[] data)
Construct a Kp object by giving the date and the two data field values. |
|
Kp(java.util.Date D,
double kp,
double status)
Construct a Kp object by giving the date and the two data field values. |
|
Kp(long L,
double KP)
Deprecated. Replaced by Kp(long,double[]) . |
|
Kp(long L,
double[] data)
Construct a Kp object by giving the date in milliseconds and the two data field values. |
|
Kp(long l,
double kp,
double status)
Construct a Kp object by giving the date in milliseconds and the two data field values. |
Method Summary | |
double |
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 |
getKp()
|
int |
getNumberOfDataIndexes()
getNumberOfDataIndexes will return the number of data "types" this DatabaseObject has. |
double |
getStatus()
|
void |
setDate(java.util.Date D)
|
void |
setDate(long L)
|
void |
setKp(double KP)
|
void |
setStatus(double s)
|
java.lang.String |
toString()
|
Methods inherited from class saaps.dbt.DatabaseObject |
getInstance, getInstance, getObjectSize |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static int numberOfIndexes
private java.util.Date d
private double kp
private double status
Constructor Detail |
public Kp()
public Kp(java.util.Date D)
public Kp(java.util.Date D, double kp, double status)
D
- The date.kp
- The Kp value.status
- The status.public Kp(long l, double kp, double status)
l
- The date in milliseconds.kp
- The Kp value.status
- The status.public Kp(java.util.Date D, double[] data)
D
- The date.data
- Array with the the two data field values.public Kp(java.util.Date D, double KP)
Kp(Date,double[])
.
D
- The date.KP
- The Kp value.public Kp(long L, double[] data)
L
- The date in milliseconds.data
- Array with the the two data field values.public Kp(long L, double KP)
Kp(long,double[])
.
L
- The date in milliseconds.KP
- The Kp value.Method Detail |
public int getNumberOfDataIndexes()
DatabaseObject
getNumberOfDataIndexes
in class DatabaseObject
public java.util.Date getDate()
DatabaseObject
getDate
in class DatabaseObject
public double getKp()
public double getStatus()
public double getData()
public double getData(int index)
DatabaseObject
getData
in class DatabaseObject
public long getDataSize() throws java.io.IOException
getDataSize
in class DatabaseObject
public void setDate(java.util.Date D)
public void setDate(long L)
public void setKp(double KP)
public void setStatus(double s)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |