public final class Resolver extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Resolver.CatalogServlet
Tries the servlet catalog method.
|
static class |
Resolver.DbServlet
Tries the servlet catalog method.
|
static class |
Resolver.NameServlet
Tries the servlet resolve method.
|
static class |
Resolver.Print
A simple test class.
|
| Modifier and Type | Field and Description |
|---|---|
private static String |
BRIGHTESTSTARRESOURCE
The resource name for serialized bright star catalog.
|
private URL |
brighteststars
The URL for the serialized brightes star catalog.
|
private static String |
BRIGHTSTARRESOURCE
The resource name for serialized bright star catalog.
|
private URL |
brightstars
The URL for the serialized bright star catalog.
|
private static String |
HIPPSTARRESOURCE
The resource name for serialized hipparchos star catalog.
|
private URL |
hippstars
The URL for the serialized Hipparchos star catalog.
|
private static List<String> |
NAMEPRIORITY
A priority list for star names.
|
private static Resolver |
r
Singleton instance.
|
private boolean |
remote
The class loader used for resolving local resources cannot be accessed.
|
private static String |
REMOTEDB
The db-servlet.
|
private static String |
REMOTESESAME
The Sesama servlet URL.
|
private static String |
REMOTEVIZIER
The Vizier servlet URL.
|
private boolean |
servlet
Do not bother with DB, use servlet.
|
| Modifier | Constructor and Description |
|---|---|
private |
Resolver(boolean onlyservlet)
To catch malformed URL's, we initialize here the bright star catalog and
the brightst star catalog serialized URL's.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyClassLoader(ClassLoader c) |
List<Star> |
databaseFromPpmXl(Star center,
Double radius)
Queries a field-of-view around a central star using the UCAC2 plus
Supplement merged database on furmint.
|
List<Star> |
databaseFromPpmXlFaint(Star center,
Double radius)
Queries a field-of-view around a central star using the UCAC2 plus
Supplement merged database on furmint.
|
List<Star> |
emptyList(Star center,
Double radius)
Returns an empty list.
|
static Resolver |
getInstance() |
static Resolver |
getInstance(boolean servlet) |
boolean |
isRemote() |
private Star |
resolveServlet(String name,
boolean common)
In VM, where the class loader cannot be read (unsigned applets), we rely
instead on a servlet running on
#REMOTEURL to which we pass the
name and the common parameter. |
private Star |
resolveSesame(String name,
boolean common)
We use the normal Sesame-resolving service based on axis protocols.
|
Star |
resolveSimbad(String name)
Queries the SIMBAD service using their AXIS protocol.
|
Star |
resolveSimbad(String name,
boolean common)
Queries the SIMBAD service using their AXIS protocol.
|
private List<Star> |
serializedFoV(URL catalog,
Star center,
double radius)
Deserializes a
SimpleStar list from the given URL and
returns all stars within the radius around the center given. |
List<Star> |
serializedFromBrightestStars(Star center,
Double radius)
Queries the serialized version of the brightest-star catalog.
|
List<Star> |
serializedFromBSC(Star center,
Double radius)
Queries the serialized version of the bright star catalog.
|
List<Star> |
serializedFromHipparchos(Star center,
Double radius)
Queries the serialized version of the bright star catalog.
|
private List<Star> |
servletDataBase(Star center,
double radiusdeg) |
private List<Star> |
servletRetrieve(VizierStarParser vizier,
Star center,
double radius) |
private List<Star> |
vizierFoV(Map<String,String> props,
Star center,
double radius)
Returns a VizieR catalog quries using the properties supplied to
instantiate the service.
|
List<Star> |
vizierFrom2Mass(Star center,
Double radius) |
List<Star> |
vizierFromAscc(Star center,
Double radius)
Queries a field-of-view around a central star using the all-sky compiled
catalog (Kharchenko 2001).
|
List<Star> |
vizierFromBSC(Star center,
Double radius)
Queries a field-of-view around a central star using the Bright Star
Catalogue.
|
List<Star> |
vizierFromGsc(Star center,
Double radius)
Queries a fieled-of-view around a central star using the GSC 1.2 catalog.
|
List<Star> |
vizierFromGsc2(Star center,
Double radius)
Queries a fieled-of-view around a central star using the GSC 2.2 catalog.
|
List<Star> |
vizierFromHipparchos(Star center,
Double radius)
Queries a fieled-of-view around a central star using the Hipparchos
catalog.
|
List<Star> |
vizierFromPPMX(Star center,
Double radius)
Queries a field-of-view around a central star using the UCAC2-catalog.
|
List<Star> |
vizierFromPPMXL(Star center,
Double radius)
Queries a field-of-view around a central star using the UCAC2-catalog.
|
List<Star> |
vizierFromTycho2(Star center,
Double radius)
Queries a field-of-view around a central star using the Tycho2 catalog
(Hog 2000).
|
List<Star> |
vizierFromTycho2Supp(Star center,
Double radius)
Queries a field-of-view around a central star using the Tycho2 catalog
(Hog 2000) plus its first supplement.
|
List<Star> |
vizierFromUCAC2(Star center,
Double radius)
Queries a field-of-view around a central star using the UCAC2-catalog.
|
List<Star> |
vizierFromUCAC3(Star center,
Double radius)
Queries a field-of-view around a central star using the UCAC3catalog.
|
List<Star> |
vizierFromUCAC3Complete(Star center,
Double radius)
Queries a field-of-view around a central star using the UCAC3 catalog and
adds all from the bright star supplement catalog.
|
List<Star> |
vizierFromUCAC5(Star center,
Double radius)
Queries a field-of-view around a central star using the UCAC2-catalog.
|
List<Star> |
vizierFromUCACSupplement(Star center,
Double rad)
Queries a field-of-view around a central star using the UCAC2 bright-star
supplement.
|
private List<Star> |
vizierRetrieve(VizierStarParser vizier,
Star center,
double radius)
Normal access to vizier service if local VM can read its class loader and
has unlimited access to the internet.
|
private static Resolver r
private static final String HIPPSTARRESOURCE
private static final String BRIGHTSTARRESOURCE
private static final String BRIGHTESTSTARRESOURCE
private URL brighteststars
private URL brightstars
private URL hippstars
private final boolean remote
private final boolean servlet
private static final String REMOTESESAME
private static final String REMOTEVIZIER
private static final String REMOTEDB
private Resolver(boolean onlyservlet)
public void applyClassLoader(ClassLoader c)
c - public static Resolver getInstance()
public static Resolver getInstance(boolean servlet)
public Star resolveSimbad(String name)
public Star resolveSimbad(String name, boolean common)
private Star resolveServlet(String name, boolean common)
#REMOTEURL to which we pass the
name and the common parameter. This servlet than does the Simbad query
and returns the star description in an object stream.name - A Simbad-resolvable namecommon - If true, the name is deduced from Simbad aliases.private Star resolveSesame(String name, boolean common)
name - A Simbad-resolvable namecommon - If true, the name is deduced from Simbad aliases.public List<Star> vizierFromPPMX(Star center, Double radius)
public List<Star> vizierFromPPMXL(Star center, Double radius)
public List<Star> vizierFromUCAC3(Star center, Double radius)
public List<Star> vizierFromUCAC3Complete(Star center, Double radius)
public List<Star> vizierFromUCAC5(Star center, Double radius)
public List<Star> vizierFromUCAC2(Star center, Double radius)
public List<Star> vizierFromBSC(Star center, Double radius)
public List<Star> vizierFromUCACSupplement(Star center, Double rad)
public List<Star> vizierFromHipparchos(Star center, Double radius)
public List<Star> vizierFromGsc(Star center, Double radius)
public List<Star> vizierFromGsc2(Star center, Double radius)
public List<Star> vizierFromAscc(Star center, Double radius)
public List<Star> vizierFromTycho2(Star center, Double radius)
public List<Star> vizierFromTycho2Supp(Star center, Double radius)
public List<Star> databaseFromPpmXl(Star center, Double radius)
public boolean isRemote()
public List<Star> databaseFromPpmXlFaint(Star center, Double radius)
public List<Star> serializedFromBrightestStars(Star center, Double radius)
public List<Star> serializedFromBSC(Star center, Double radius)
public List<Star> serializedFromHipparchos(Star center, Double radius)
public List<Star> emptyList(Star center, Double radius)
private List<Star> vizierFoV(Map<String,String> props, Star center, double radius)
private List<Star> vizierRetrieve(VizierStarParser vizier, Star center, double radius)
vizier - center - Position of the center for the field of view reolving.radius - Radius of the FoV in degrees.private List<Star> servletRetrieve(VizierStarParser vizier, Star center, double radius)
private List<Star> serializedFoV(URL catalog, Star center, double radius)
SimpleStar list from the given URL and
returns all stars within the radius around the center given. This method
should only be used with catalogs having not more then, say, 10000
entries, but it allows really big fields that normally fail in VizieR.