Package org.orekit.bodies
Class PythonCelestialBody
- java.lang.Object
-
- org.orekit.bodies.PythonCelestialBody
-
- All Implemented Interfaces:
Serializable
,CelestialBody
,ExtendedPVCoordinatesProvider
,PVCoordinatesProvider
public class PythonCelestialBody extends Object implements CelestialBody
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PythonCelestialBody()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalize()
Part of JCC Python interface to objectFrame
getBodyOrientedFrame()
Get a body oriented, body centered frame.double
getGM()
Get the attraction coefficient of the body.Frame
getInertiallyOrientedFrame()
Get an inertially oriented, body centered frame.String
getName()
Get the name of the body.TimeStampedPVCoordinates
getPVCoordinates(AbsoluteDate date, Frame frame)
Get thePVCoordinates
of the body in the selected frame.<T extends CalculusFieldElement<T>>
TimeStampedFieldPVCoordinates<T>getPVCoordinates(FieldAbsoluteDate<T> date, Frame frame)
Get theFieldPVCoordinates
of the body in the selected frame.void
pythonDecRef()
Part of JCC Python interface to objectlong
pythonExtension()
Part of JCC Python interface to objectvoid
pythonExtension(long pythonObject)
Part of JCC Python interface to object<T extends CalculusFieldElement<T>>
FieldPVCoordinatesProvider<T>toFieldPVCoordinatesProvider(Field<T> field)
Convert to aFieldPVCoordinatesProvider
with a specific type.-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.utils.ExtendedPVCoordinatesProvider
getPosition
-
Methods inherited from interface org.orekit.utils.PVCoordinatesProvider
getPosition
-
-
-
-
Method Detail
-
pythonExtension
public void pythonExtension(long pythonObject)
Part of JCC Python interface to object
-
pythonExtension
public long pythonExtension()
Part of JCC Python interface to object
-
finalize
public void finalize() throws Throwable
Part of JCC Python interface to object
-
pythonDecRef
public void pythonDecRef()
Part of JCC Python interface to object
-
getInertiallyOrientedFrame
public Frame getInertiallyOrientedFrame()
Get an inertially oriented, body centered frame.The frame is always bound to the body center, and its axes have a fixed orientation with respect to other inertial frames.
- Specified by:
getInertiallyOrientedFrame
in interfaceCelestialBody
- Returns:
- an inertially oriented, body centered frame
- See Also:
CelestialBody.getBodyOrientedFrame()
-
getBodyOrientedFrame
public Frame getBodyOrientedFrame()
Get a body oriented, body centered frame.The frame is always bound to the body center, and its axes have a fixed orientation with respect to the celestial body.
- Specified by:
getBodyOrientedFrame
in interfaceCelestialBody
- Returns:
- a body oriented, body centered frame
- See Also:
CelestialBody.getInertiallyOrientedFrame()
-
getName
public String getName()
Get the name of the body.- Specified by:
getName
in interfaceCelestialBody
- Returns:
- name of the body
-
getGM
public double getGM()
Get the attraction coefficient of the body.- Specified by:
getGM
in interfaceCelestialBody
- Returns:
- attraction coefficient of the body (m³/s²)
-
toFieldPVCoordinatesProvider
public <T extends CalculusFieldElement<T>> FieldPVCoordinatesProvider<T> toFieldPVCoordinatesProvider(Field<T> field)
Convert to aFieldPVCoordinatesProvider
with a specific type.- Specified by:
toFieldPVCoordinatesProvider
in interfaceExtendedPVCoordinatesProvider
- Type Parameters:
T
- the type of the field elements- Parameters:
field
- field for the argument and value- Returns:
- converted function
-
getPVCoordinates
public <T extends CalculusFieldElement<T>> TimeStampedFieldPVCoordinates<T> getPVCoordinates(FieldAbsoluteDate<T> date, Frame frame)
Get theFieldPVCoordinates
of the body in the selected frame.- Specified by:
getPVCoordinates
in interfaceExtendedPVCoordinatesProvider
- Type Parameters:
T
- type for the field elements- Parameters:
date
- current dateframe
- the frame where to define the position- Returns:
- time-stamped position/velocity of the body (m and m/s)
-
getPVCoordinates
public TimeStampedPVCoordinates getPVCoordinates(AbsoluteDate date, Frame frame)
Get thePVCoordinates
of the body in the selected frame.- Specified by:
getPVCoordinates
in interfacePVCoordinatesProvider
- Parameters:
date
- current dateframe
- the frame where to define the position- Returns:
- time-stamped position/velocity of the body (m and m/s)
-
-