Terrenus HRPT v2.2

terrenus.orbit
Interface Spacecraft

All Known Implementing Classes:
AbstractSpacecraft, FY1Spacecraft, NOAAKLMSpacecraft

public interface Spacecraft

The Spacecraft interface delivers information about a spacecraft, its properties, and position/velocity.


Method Summary
 double getHourAngle(java.util.Date date)
          Gets the Greenwich hour angle.
 java.util.List<Instrument> getInstruments()
          Gets the list of known spacecraft instruments.
 java.util.Date getLaunchDate()
          Gets the spacecraft launch date.
 java.lang.String getName()
          Gets the spacecraft common name.
 double[] getPosition(java.util.Date date, double[] output)
          Gets the position of the spacecraft in earth-centered inertial coordinates.
 java.lang.String getProperty(java.lang.String name)
          Gets a spacecraft property by name.
 double[] getVelocity(java.util.Date date, double[] output)
          Gets the velocity of the spacecraft in earth-centered inertial coordinates.
 

Method Detail

getName

java.lang.String getName()
Gets the spacecraft common name.


getHourAngle

double getHourAngle(java.util.Date date)
Gets the Greenwich hour angle.

Parameters:
date - the date for Greenwich hour angle retrieval.
Returns:
the Greenwich hour angle in radians.

getPosition

double[] getPosition(java.util.Date date,
                     double[] output)
Gets the position of the spacecraft in earth-centered inertial coordinates.

Parameters:
date - the date for position retrieval.
output - the output position array to fill. If null, an output array is created.
Returns:
the output position array as [x,y,z] in kilometers.

getVelocity

double[] getVelocity(java.util.Date date,
                     double[] output)
Gets the velocity of the spacecraft in earth-centered inertial coordinates.

Parameters:
date - the date for velocity retrieval.
output - the output velocity array to fill. If null, an output array is created.
Returns:
the output velocity array as [x,y,z] in kilometers/second.

getLaunchDate

java.util.Date getLaunchDate()
Gets the spacecraft launch date.


getInstruments

java.util.List<Instrument> getInstruments()
Gets the list of known spacecraft instruments.


getProperty

java.lang.String getProperty(java.lang.String name)
Gets a spacecraft property by name.

Parameters:
name - the name of the property.
Returns:
the property value or null if no property with the specified name exists.

Terrenus HRPT v2.2