fr.cnes.sirius.patrius.tools.force.validation
Class BasicPVCoordinatesProvider

java.lang.Object
  extended by fr.cnes.sirius.patrius.tools.force.validation.BasicPVCoordinatesProvider
All Implemented Interfaces:
PVCoordinatesProvider

public class BasicPVCoordinatesProvider
extends Object
implements PVCoordinatesProvider

Since:
1.1
Version:
$Id: BasicPVCoordinatesProvider.java 7131 2012-12-12 15:02:39Z HoudrogeR $
Author:
Thomas Trapier
Description :
This class is only used in the tests of the package Directions. This is a basic PVCoordinatesProvider : the attributes are a PVCoordinates object that can be returned and its frame of expression.
Concurrency :
not thread-safe

Constructor Summary
BasicPVCoordinatesProvider(PVCoordinates inCoordinates, Frame inFrame)
          Build a direction from an origin and a target described by their PVCoordinatesProvider
 
Method Summary
 PVCoordinates getPVCoordinates(AbsoluteDate date, Frame inFrame)
          Get the PVCoordinates of the body in the selected frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicPVCoordinatesProvider

public BasicPVCoordinatesProvider(PVCoordinates inCoordinates,
                                  Frame inFrame)
Build a direction from an origin and a target described by their PVCoordinatesProvider

Parameters:
inCoordinates - the PVCoordinates
inFrame - the frame in which the coordinates are expressed
Method Detail

getPVCoordinates

public final PVCoordinates getPVCoordinates(AbsoluteDate date,
                                            Frame inFrame)
                                     throws OrekitException
Get the PVCoordinates of the body in the selected frame.

Specified by:
getPVCoordinates in interface PVCoordinatesProvider
Parameters:
date - current date
inFrame - the frame where to define the position
Returns:
position/velocity of the body (m and m/s)
Throws:
OrekitException - if position cannot be computed in given frame


Copyright © 2016 CNES. All Rights Reserved.