|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.cone.MocCoverage
uk.ac.starlink.ttools.cone.MocServiceCoverage
public class MocServiceCoverage
Coverage implementation which acquires state by querying the MOC service operated by CDS. This can take a Cone Search URL as an argument to identify the target service. The lon and lat are ICRS RA and Declination respectively for the footprints returned by this object.
Note: MOCs are cached indefinitely per service, beware that this constitutes a potential memory leak. Some smarter caching scheme may be introduced if this causes problems.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface uk.ac.starlink.ttools.cone.Coverage |
---|
Coverage.Amount |
Field Summary | |
---|---|
static String |
MOC_SERVICE_URL
|
Constructor Summary | |
---|---|
MocServiceCoverage(URL serviceUrl)
Constructor. |
Method Summary | |
---|---|
protected cds.moc.HealpixMoc |
createMoc()
Constructs the MOC which will define this object's coverage. |
static cds.moc.HealpixImpl |
getDefaultHealpixImpl()
Returns the HEALPix implementation used for MOC service queries. |
static int |
getServiceNside()
Returns the HEALPix Nside value used when MOCs are requested. |
static void |
main(String[] args)
|
static void |
setDefaultHealpixImpl(cds.moc.HealpixImpl hpi)
Sets the HEALPix implementation used for MOC service queries. |
static void |
setServiceNside(int nside)
Sets the HEALPix Nside value used when MOCs are requested. |
Methods inherited from class uk.ac.starlink.ttools.cone.MocCoverage |
---|
discOverlaps, getAmount, getMoc, initCoverage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MOC_SERVICE_URL
Constructor Detail |
---|
public MocServiceCoverage(URL serviceUrl)
serviceUrl
- cone search service URL as recognised by CDS MOC
serviceMethod Detail |
---|
protected cds.moc.HealpixMoc createMoc() throws IOException
MocCoverage
MocCoverage.initCoverage()
method of
MocCoverage
, and should not be called by anyone else.
createMoc
in class MocCoverage
IOException
public static int getServiceNside()
public static void setServiceNside(int nside)
nside
- nside (a power of 2)public static cds.moc.HealpixImpl getDefaultHealpixImpl()
public static void setDefaultHealpixImpl(cds.moc.HealpixImpl hpi)
hpi
- indexing implementationpublic static void main(String[] args) throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |