public class OceanDepth extends Object
The class is used by calling the constructor and passing in the lat/long position data, either a single lat/long pair or an array. Then call getOceanDepth(), which formats a query, sends it to the server, interprets the result, and returns it to the user. The data is kept in a list of OceanDepthData objects. The objects contain the lat/long of the request, and a flag that tells you whether the data is valid. The server may return "no data" or have some other error; in this case there's a big difference between a zero that means zero depth and a zero that means "no data". to prevent using some flag value for invalid data, the OceanDepthData object contains a boolean field, "valid". If "valid" is set to false, the data returned is not valid data.
you can use the main() method as a test harness.
| Constructor and Description | 
|---|
| OceanDepth(double[][] pLatLong)Constructor; takes a two-dimensional array of doubles. | 
| OceanDepth(double pLatitude,
          double pLongitude)Constructor; given a latitude and longitude, creates an object capable of sending
 a JMBL request to a server and getting a response back. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<OceanDepthData> | getOceanDepth()returns the ocean depth for this latitude and longitude. | 
| static void | main(String[] args) | 
public OceanDepth(double pLatitude,
          double pLongitude)
pLatitude - latitude Latitude of locationpLongitude - longitude Longitude of location in oceanpublic OceanDepth(double[][] pLatLong)
pLatLong - public List<OceanDepthData> getOceanDepth()
public static void main(String[] args) throws org.exolab.castor.xml.ValidationException, FileNotFoundException, org.exolab.castor.xml.MarshalException, RemoteException, javax.xml.rpc.ServiceException
args - org.exolab.castor.xml.ValidationExceptionFileNotFoundExceptionorg.exolab.castor.xml.MarshalExceptionRemoteExceptionjavax.xml.rpc.ServiceException