org.orekit.time
Class GPSScale

java.lang.Object
  extended by org.orekit.time.GPSScale
All Implemented Interfaces:
java.io.Serializable, TimeScale

public class GPSScale
extends java.lang.Object
implements TimeScale

GPS time scale.

By convention, TGPS = TAI - 19 s.

This is intended to be accessed thanks to the TimeScalesFactory class, so there is no public constructor.

Version:
$Revision:1665 $ $Date:2008-06-11 12:12:59 +0200 (mer., 11 juin 2008) $
Author:
Luc Maisonobe
See Also:
AbsoluteDate, Serialized Form

Method Summary
static GPSScale getInstance()
          Deprecated. since 4.1 replaced by TimeScalesFactory.getGPS()
 java.lang.String getName()
          Get the name time scale.
 double offsetFromTAI(AbsoluteDate date)
          Get the offset to convert locations from TAIScale to instance.
 double offsetToTAI(DateComponents date, TimeComponents time)
          Get the offset to convert locations from instance to TAIScale.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

@Deprecated
public static GPSScale getInstance()
Deprecated. since 4.1 replaced by TimeScalesFactory.getGPS()

Get the unique instance of this class.

Returns:
the unique instance

offsetFromTAI

public double offsetFromTAI(AbsoluteDate date)
Get the offset to convert locations from TAIScale to instance.

Specified by:
offsetFromTAI in interface TimeScale
Parameters:
date - conversion date
Returns:
offset in seconds to add to a location in TAIScale time scale to get a location in instance time scale
See Also:
TimeScale.offsetToTAI(DateComponents, TimeComponents)

offsetToTAI

public double offsetToTAI(DateComponents date,
                          TimeComponents time)
Get the offset to convert locations from instance to TAIScale.

Specified by:
offsetToTAI in interface TimeScale
Parameters:
date - date location in the time scale
time - time location in the time scale
Returns:
offset in seconds to add to a location in instance time scale to get a location in TAIScale time scale
See Also:
TimeScale.offsetFromTAI(AbsoluteDate)

getName

public java.lang.String getName()
Get the name time scale.

Specified by:
getName in interface TimeScale
Returns:
name of the time scale

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2002-2010 CS Communication & Systèmes. All Rights Reserved.