dalclient
Class ConeConnection

java.lang.Object
  extended bydalclient.DALConnection
      extended bydalclient.ConeConnection

public class ConeConnection
extends DALConnection

Connection context for a client interface to a Cone search service. Queries require that a connection context be established first. A sequence of queries may be issued for a single connection. At this point the protocol is stateless and a "connection" is nothing more than a list of service URLs.


Method Summary
 ConeQuery getConeQuery()
          Create a new empty query context for this connection.
 ConeQuery getConeQuery(double ra, double dec, double sr)
          Set up a cone search query context for RA, DEC, SR.
 
Methods inherited from class dalclient.DALConnection
addService, getDALQuery, getServiceCount, getServiceURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConeQuery

public ConeQuery getConeQuery()
Create a new empty query context for this connection. Additional parameters can be added with DALQuery.addParameter(String,String) before executing the query.


getConeQuery

public ConeQuery getConeQuery(double ra,
                              double dec,
                              double sr)
Set up a cone search query context for RA, DEC, SR. Additional parameters can be later added with #addParameter() before executing the query.

Parameters:
ra - Right ascension in decimal degrees, ICRS
dec - Declination in decimal degrees, ICRS
sr - Search radius in decimal degrees