public class SourceCoordinates extends Object implements Runnable
Constructor and Description |
---|
SourceCoordinates(String s,
String csn,
double equinox,
String resolver)
Constructor
|
SourceCoordinates(String lon,
String lat,
String coords) |
Modifier and Type | Method and Description |
---|---|
boolean |
convertToCoords()
convert user input string to coords
|
static SourceCoordinates |
factory(String s,
String csn,
double equinox,
String resolver) |
static SourceCoordinates |
factory(String lon,
String lat,
String coords) |
Position |
getPosition()
Get the position associated with these coordinates.
|
String |
heasarcResolve()
Set up and send query to resolve source name
|
static void |
main(String[] args)
Test functionality.
|
boolean |
parseCoords()
extract coordinates that match coordinate system of user patch
from query return
|
void |
run()
send query to resolve user input
|
public SourceCoordinates(String s, String csn, double equinox, String resolver)
s
- text entered as coordinates or object namecsn
- name of coordinate systemequinox
- equinox of coordinate systemresolver
- resolver to be used to resolve object namepublic SourceCoordinates(String lon, String lat, String coords) throws IllegalArgumentException
IllegalArgumentException
public static SourceCoordinates factory(String s, String csn, double equinox, String resolver)
public static SourceCoordinates factory(String lon, String lat, String coords)
public Position getPosition()
public boolean convertToCoords()
public boolean parseCoords()
public String heasarcResolve()