edu.nrao.sss.astronomy
Interface SourceLocator

All Known Implementing Classes:
SkyBotResolver

public interface SourceLocator

A finder of sources.

Version Info:

$Revision: 542 $
$Date: 2007-04-18 17:35:07 -0600 (Wed, 18 Apr 2007) $
$Author: dharland $

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

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.
 

Method Detail

findPosition

SkyPosition findPosition(String sourceName)
                         throws SourceNotFoundException
Returns the current position for the given source.

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.

findPosition

SkyPosition findPosition(String sourceName,
                         Date time)
                         throws SourceNotFoundException
Returns the position for the given source at the given time.

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.


Copyright © 2009. All Rights Reserved.