edu.nrao.sss.astronomy
Class SkyBotResolver

java.lang.Object
  extended by edu.nrao.sss.astronomy.SkyBotResolver
All Implemented Interfaces:
SourceLocator

public class SkyBotResolver
extends Object
implements SourceLocator

IMCE's SkyBot Resolver source locator.

This locator sends a CGI query to IMCE (Institut de Mechanique Celeste et de Calcul des Ephemerides) and parses the response. The web address for the query is http://www.imcce.fr/webservices/skybot/skybotresolver_query.php.

Version Info:

$Revision: 555 $
$Date: 2007-04-24 09:05:24 -0600 (Tue, 24 Apr 2007) $
$Author: dharland $

Since:
2007-04-18
Author:
David M. Harland

Constructor Summary
SkyBotResolver()
           
 
Method Summary
 SkyPosition findPosition(String sourceName)
          Returns the current position for the given source.
 SkyPosition findPosition(String sourceName, Date time)
          Returns the position for the given source at the given time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkyBotResolver

public SkyBotResolver()
Method Detail

findPosition

public SkyPosition findPosition(String sourceName,
                                Date time)
                         throws SourceNotFoundException
Description copied from interface: SourceLocator
Returns the position for the given source at the given time.

Specified by:
findPosition in interface SourceLocator
Parameters:
sourceName - the name of the source to locate.
time - the time for which the position is desired
Returns:
the position of the source named sourceName at time.
Throws:
SourceNotFoundException - if anything goes wrong during the location of the source and the decoding of its position information. The thrown exception will contain a non-null root cause.

findPosition

public SkyPosition findPosition(String sourceName)
                         throws SourceNotFoundException
Description copied from interface: SourceLocator
Returns the current position for the given source.

Specified by:
findPosition in interface SourceLocator
Parameters:
sourceName - the name of the source to locate.
Returns:
the current position of the source named sourceName.
Throws:
SourceNotFoundException - if anything goes wrong during the location of the source and the decoding of its position information. The thrown exception will contain a non-null root cause.


Copyright © 2009. All Rights Reserved.