|
Terrenus HRPT v2.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectterrenus.orbit.AbstractSpacecraft
public abstract class AbstractSpacecraft
The AbstractSpacecraft
class implements some of
the main methods of the Spacecraft
interface to
deliver position, velocity, hour angle, name, and launch date.
Subclasses must implement the Spacecraft.getInstruments()
method.
Constructor Summary | |
---|---|
AbstractSpacecraft(int noradId)
Creates a new spacecraft using the NORAD ID. |
Method Summary | |
---|---|
double |
getHourAngle(java.util.Date date)
Gets the Greenwich hour angle. |
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. |
static void |
main(java.lang.String[] argv)
Tests this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface terrenus.orbit.Spacecraft |
---|
getInstruments |
Constructor Detail |
---|
public AbstractSpacecraft(int noradId)
noradId
- the NORAD orbital element ID.
java.lang.RuntimeException
- if the spacecraft properties cannot be
found or parsed.Method Detail |
---|
public java.lang.String getName()
Spacecraft
getName
in interface Spacecraft
public double getHourAngle(java.util.Date date)
getHourAngle
in interface Spacecraft
date
- the date for Greenwich hour angle retrieval.
public double[] getPosition(java.util.Date date, double[] output)
getPosition
in interface Spacecraft
date
- the date for position retrieval.output
- the output position array to fill. If null, an
output array is created.
public double[] getVelocity(java.util.Date date, double[] output)
getVelocity
in interface Spacecraft
date
- the date for velocity retrieval.output
- the output velocity array to fill. If null, an
output array is created.
public java.util.Date getLaunchDate()
Spacecraft
getLaunchDate
in interface Spacecraft
public java.lang.String getProperty(java.lang.String name)
Spacecraft
getProperty
in interface Spacecraft
name
- the name of the property.
public static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception
|
Terrenus HRPT v2.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |