|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.source.sort.SourceLatitudeSortKey
public class SourceLatitudeSortKey
Sorts sources
based on the latitude of the position of
their central subsources.
Sort order
:
natural
Coordinate System
:
CelestialCoordinateSystem.EQUATORIAL
Epoch
: Epoch.J2000
.Perform coordinate system conversion
:
trueQuery time
: current timeVersion Info:
$Revision: 616 $ |
$Date: 2007-05-16 14:22:53 -0600 (Wed, 16 May 2007) $ |
$Author: dharland $ |
Field Summary | |
---|---|
static Date |
NOW
Tells this key to get position information as of the current system time. |
Constructor Summary | |
---|---|
SourceLatitudeSortKey()
|
Method Summary | |
---|---|
int |
compare(SourceCatalogEntry sce1,
SourceCatalogEntry sce2)
|
SortOrder |
getOrder()
|
void |
setConversionParameters(CelestialCoordinateSystem coordSys,
Epoch epoch)
Sets the coordinate system and epoch to which a source's position will be converted prior to comparisons. |
void |
setObserverParameters(EarthPosition location,
TimeZone timeZone)
Sets the earth position and time zone to be used in coordinate conversions. |
void |
setOrder(SortOrder newOrder)
|
void |
setQueryTime(Date newTime)
Sets the time for which position information will be requested. |
void |
turnOffConversion()
Configures this key so that positions are compared without conversion to a common coordinate system and epoch. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Field Detail |
---|
public static final Date NOW
Constructor Detail |
---|
public SourceLatitudeSortKey()
Method Detail |
---|
public void setConversionParameters(CelestialCoordinateSystem coordSys, Epoch epoch)
turnOffConversion()
.
coordSys
- the coordinate system to which all sources' positions
will be converted prior to comparison.epoch
- the epoch to which all sources' positions
will be converted prior to comparison.
IllegalArgumentException
- if either parameter is null.public void turnOffConversion()
To turn conversion back on, specify the coordinate system and epoch
via the setConversionParameters(CelestialCoordinateSystem, Epoch)
method.
public void setObserverParameters(EarthPosition location, TimeZone timeZone)
location
- the location of the observer to be used in coordinate conversion
calculations. A value of null will result in the use of
the EVLA's position.timeZone
- the time zone of the observer to be used in coordinate conversion
calculations. A value of null will result in the use of
the EVLA's position.public void setQueryTime(Date newTime)
NOW
may be used as a signal to use the
current system time. If you use the NOW signal, this
class will try to ensure that all comparisons in a single sort
use the same time, and that the time is updated at the start
of a new sort.
newTime
- the time at which position information will be evaluated.public void setOrder(SortOrder newOrder)
setOrder
in interface Orderable
public SortOrder getOrder()
getOrder
in interface Orderable
public int compare(SourceCatalogEntry sce1, SourceCatalogEntry sce2)
compare
in interface Comparator<SourceCatalogEntry>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |