|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.vo.DalQuery
public class DalQuery
Represents a particular query to a DAL-like service. DAL refers to the the Data Access Layer family of protocols defined by the IVOA.
Constructor Summary | |
---|---|
DalQuery(RegResource resource,
RegCapabilityInterface capability,
String serviceType,
double raPos,
double decPos,
double size)
Constructs a DAL query based on a resource from a registry. |
|
DalQuery(String baseURL,
String serviceType,
double raPos,
double decPos,
double size)
Constructs a DAL query based on a service URL. |
Method Summary | |
---|---|
void |
addArgument(String name,
String value)
Adds an argument to the query. |
String |
doubleToString(double value)
Encodes a floating point value as a string for use in a DAL query. |
StarTable |
execute(StarTableFactory tfact)
Executes this query synchronously, returning a StarTable which represents the results. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DalQuery(RegResource resource, RegCapabilityInterface capability, String serviceType, double raPos, double decPos, double size)
resource
- resource describing the DAL servicecapability
- DAL capability from resourceserviceType
- short name for service type; informative,
used for error messages etcraPos
- right ascension of ROI center in degreesdecPos
- declination of ROI center in degreessize
- ROI size in degreespublic DalQuery(String baseURL, String serviceType, double raPos, double decPos, double size)
baseURL
- URL forming basis of CGI query for the DAL serviceserviceType
- short name for service type; informative,
used for error messages etcraPos
- right ascension of ROI center in degreesdecPos
- declination of ROI center in degreessize
- size in degreesMethod Detail |
---|
public void addArgument(String name, String value)
name
- service argument namevalue
- argument valuepublic StarTable execute(StarTableFactory tfact) throws IOException
tfact
- factory which may be used to influence how the
table is built
IOException
- in absence of good datapublic String toString()
toString
in class Object
public String doubleToString(double value)
CgiQuery.formatDouble(double)
,
which avoids exponential notation except for very large/small values.
value
- numeric value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |