|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--grs.pds.RCoords
A Cartesian vector struct, matching the SQL type used in the GRS database schema.
| Field Summary | |
double |
x
0th component |
double |
y
1st component |
double |
z
2nd component |
| Constructor Summary | |
RCoords()
Construct a new RCoords, the zero-vector. |
|
RCoords(double x,
double y,
double z)
Construct a new RCoords, with vector components x, y, and z. |
|
RCoords(String x,
String y,
String z)
Construct a new RCoords, with vector components as Strings. |
|
| Method Summary | |
String |
getSQLTypeName()
Return the SQL type name, given when read from the database. |
void |
readDataStream(DataInputStream in)
Read the record from DataInputStream. |
void |
readSQL(SQLInput in,
String type)
Read the record from SQL input. |
String |
toString()
|
void |
writeDataStream(DataOutputStream out)
Write the record to a DataOutputStream. |
void |
writeSQL(SQLOutput out)
Write the record to a SQL output. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public double x
public double y
public double z
| Constructor Detail |
public RCoords()
public RCoords(double x,
double y,
double z)
x - y - z -
public RCoords(String x,
String y,
String z)
x - y - z - | Method Detail |
public String toString()
toString in class Objectpublic String getSQLTypeName()
getSQLTypeName in interface SQLData
public void readSQL(SQLInput in,
String type)
throws SQLException
readSQL in interface SQLDatain - Source to read from.type - name
SQLException - Error reading from stream.
public void writeSQL(SQLOutput out)
throws SQLException
writeSQL in interface SQLDataout - Stream to write to,
SQLException - Error writing to stream.
public void readDataStream(DataInputStream in)
throws IOException
in - Stream to read from.
IOException - Error reading from stream.
public void writeDataStream(DataOutputStream out)
throws IOException
out - Stream to write to.
IOException - Error writing to stream.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||