JEphem site
tig API
Build classes

jephem.astro.spacetime
Class Space

java.lang.Object
  |
  +--jephem.astro.spacetime.Space
All Implemented Interfaces:
GeneralConstants, SpaceConstants

public abstract class Space
extends java.lang.Object
implements SpaceConstants, GeneralConstants

Contains static methods used when dealing with space.
Interface SpaceConstants contains related constants.


Field Summary
 
Fields inherited from interface jephem.astro.spacetime.SpaceConstants
CARTESIAN, COORD_V0, COORD_V1, COORD_V2, COORD_X0, COORD_X1, COORD_X2, COORDGROUP_DELTA_BETA_LAMBDA, COORDGROUP_DIST_ALPHA_DELTA, COORDGROUP_RLB, COORDGROUP_XYZ, FRAME_EC_HELIO_GEOMETRIC, FRAME_ECLIPTIC, FRAME_EQUATORIAL, FRAME_GALACTIC, FRAME_HORIZONTAL_TOPOCENTRIC, FRAME_THEORY, LIGHT_VELOCITY, NB_COORDS, SPHERICAL
 
Fields inherited from interface tig.GeneralConstants
BLANK, FS, LS, NO_SPECIF, SPACE
 
Constructor Summary
Space()
           
 
Method Summary
static boolean containsVelocityCoord(int[] coords)
          Tests if the coordinates passed in parameter contain one or more velocity coordinate.
static int getCoord(int coordIndex)
          Returns the SpaceConstants's COORD_XXX constant corresponding to coordIndex.
static int getCoordGroup(int frame)
          Returns the group of coordinates associated with a frame.
static java.lang.String[] getCoordGroupLabels(int coordGroup)
          Returns the labels of position coordinates of a group of coordinates.
static java.lang.String getCoordinateExpressionLabel(int coordExpr)
          Returns the English label of a coordinate expression (returns "cartesian" or "spherical").
static java.lang.String getFrameLabel(int frameIndex)
          Returns the English label of a body.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Space

public Space()
Method Detail

containsVelocityCoord

public static boolean containsVelocityCoord(int[] coords)
Tests if the coordinates passed in parameter contain one or more velocity coordinate.

Parameters:
coords - An array of coordinates expressed with SpaceConstants.COORD_XXX constants.

getCoord

public static int getCoord(int coordIndex)
Returns the SpaceConstants's COORD_XXX constant corresponding to coordIndex.
If coordIndex does not correspond to a coordinate, GeneralConstants.NO_SPECIF is returned.
getCoord(0) returns SpaceConstants.X0 ... etc ... getCoord(5) returns SpaceConstants.V2

Parameters:
coordIndex - An integer between 0 and 5 corresponding to a position or velocity coordinate.

getCoordGroup

public static int getCoordGroup(int frame)
Returns the group of coordinates associated with a frame.

Parameters:
frame - Concerned frame ; use SpaceConstants.FRAME_XXX constants.
Returns:
The group of coordinates associated with frame ; SpaceConstants.COORDGROUP_XXX constants are used ; GeneralConstants.NO_SPECIF is returned if 'frame' does not correspond to a valid frame.

getCoordGroupLabels

public static java.lang.String[] getCoordGroupLabels(int coordGroup)
Returns the labels of position coordinates of a group of coordinates. Client classes must build themselves the names of velocity coordinates.

Parameters:
coordGroup - The concerned group of coordinates ; use SpaceConstants.COORDGROUP_XXX constants

getCoordinateExpressionLabel

public static java.lang.String getCoordinateExpressionLabel(int coordExpr)
Returns the English label of a coordinate expression (returns "cartesian" or "spherical"). Use SolarSystemConstants.CARTESIAN or SPHERICAL to designate the coordinate expression.


getFrameLabel

public static java.lang.String getFrameLabel(int frameIndex)
Returns the English label of a body. Use SolarSystemConstants constants to designate the body.


JEphem site
tig API
Build classes