Jeospace API

org.jeospace.navigation
Class ShadowChild

java.lang.Object
  extended byorg.jeospace.navigation.ShadowChild
All Implemented Interfaces:
Position

public class ShadowChild
extends java.lang.Object
implements Position

A Position implementation that provides shadow coordinates for a child orbital body. Used for following (shadowing) a child orbiter - such as a satellite in Earth orbit.

Version:
$Revision: 1.2 $
Author:
Rex Melton
See Also:
Cartesian, Polar, Length, OrbitalBody

Constructor Summary
ShadowChild(OrbitalBody target, Length distance)
          Constructor
 
Method Summary
 void enablePosition(boolean enabled)
          Set the state of the object to produce updated positioning data.
 void get(Cartesian cartesian)
          Return the positioning data in the argument object.
 Polar getPolar()
          Return the positioning data in a Polar coordinate object.
 void updatePosition(double julianDay)
          Process any position changes for the next simulation frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShadowChild

public ShadowChild(OrbitalBody target,
                   Length distance)
Constructor

Parameters:
target - the child orbital body to shadow
distance - the fixed distance from the world to place the shadow position. If distance is null, then the actual distance to the object will be used.
Method Detail

updatePosition

public void updatePosition(double julianDay)
Process any position changes for the next simulation frame.

Specified by:
updatePosition in interface Position
Parameters:
julianDay - the Julian day for which to calculate the position

enablePosition

public void enablePosition(boolean enabled)
Set the state of the object to produce updated positioning data. By default, the state of this object is initialized to true.

Specified by:
enablePosition in interface Position
Parameters:
enabled - true if the object should update it's positioning data in response to update( ) calls, false if the object should NOT update it's positioning data in response to update( ) calls.

get

public void get(Cartesian cartesian)
Return the positioning data in the argument object.

Specified by:
get in interface Position
Parameters:
cartesian - the Cartesian coordinate object to initialize with the current positioning data.

getPolar

public Polar getPolar()
Return the positioning data in a Polar coordinate object.

Specified by:
getPolar in interface Position
Returns:
the positioning data in a Polar coordinate object.

Jeospace API

Copyright © 2006 - jeospace.org