grs.pds
Class RCoords

java.lang.Object
  |
  +--grs.pds.RCoords
All Implemented Interfaces:
SQLData

public class RCoords
extends Object
implements SQLData

A Cartesian vector, matching the SQL type used in the GRS database schema.

Author:
guym

Field Summary
 double x
           
 double y
           
 double z
           
 
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.
 
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.
 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, toString, wait, wait, wait
 

Field Detail

x

public double x

y

public double y

z

public double z
Constructor Detail

RCoords

public RCoords()
Construct a new RCoords, the zero-vector.


RCoords

public RCoords(double x,
               double y,
               double z)
Construct a new RCoords, with vector components x, y, and z.

Method Detail

getSQLTypeName

public String getSQLTypeName()
Return the SQL type name, given when read from the database.

Specified by:
getSQLTypeName in interface SQLData
See Also:
SQLData.getSQLTypeName()

readSQL

public void readSQL(SQLInput in,
                    String type)
             throws SQLException
Read the record from SQL input.

Specified by:
readSQL in interface SQLData
SQLException
See Also:
SQLData.readSQL(SQLInput, String)

writeSQL

public void writeSQL(SQLOutput out)
              throws SQLException
Write the record to a SQL output.

Specified by:
writeSQL in interface SQLData
SQLException
See Also:
SQLData.writeSQL(SQLOutput)

readDataStream

public void readDataStream(DataInputStream in)
                    throws IOException
Read the record from DataInputStream.

IOException

writeDataStream

public void writeDataStream(DataOutputStream out)
                     throws IOException
Write the record to a DataOutputStream.

IOException


2001 Mars Odyssey Gamma Ray Spectrometer Team