Class AbstractOrbitalParameterFactory<P extends OrbitalParameters>
- Type Parameters:
P- type of the orbital parameters
- All Implemented Interfaces:
Cloneable,OrbitalParameterFactory<P>
- Direct Known Subclasses:
AbstractOrbitFactory,GNSSOrbitalElementsFactory,TleGenerationAlgorithm
- Since:
- 14.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractOrbitalParameterFactory(OrbitType orbitType, ParameterDriversList orbitalDrivers, Frame frame, PositionAngleType positionAngleType, AbsoluteDate date, double mu) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()getDate()Get the date of the orbital parameters.getFrame()Get the frame in which the orbit is propagated.Get the Jacobian of the orbital parameters with respect to the Cartesian coordinates.doublegetMu()Get the central attraction coefficient (µ - m³/s²) value.Get the drivers for additional drivers for non-Keplerian motion.Get the drivers for orbital parameters.Get the orbit type to use.Get the position angle type to use.voidReset the drivers to match specified orbit.voidsetDate(AbsoluteDate date) Set the date of the orbital parameters.voidSet the frame in which the orbit is propagated.voidsetMu(double mu) Set the central attraction coefficient (µ - m³/s²) value.voidsetPositionAngleType(PositionAngleType positionAngleType) Set the position angle type to use.protected abstract double[]Convert an input into an array suitable to feed orbital parameters drivers.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.orbits.OrbitalParameterFactory
createFromDrivers, getJacobianWrtParameters
-
Constructor Details
-
AbstractOrbitalParameterFactory
protected AbstractOrbitalParameterFactory(OrbitType orbitType, ParameterDriversList orbitalDrivers, Frame frame, PositionAngleType positionAngleType, AbsoluteDate date, double mu) Simple constructor.- Parameters:
orbitType- orbit typeorbitalDrivers- drivers for orbital parametersframe- frame in which the orbital parameters are definedpositionAngleType- position angle type to usedate- date of the orbital parametersmu- central attraction coefficient (m³/s²)
-
-
Method Details
-
getOrbitType
Get the orbit type to use.- Specified by:
getOrbitTypein interfaceOrbitalParameterFactory<P extends OrbitalParameters>- Returns:
- orbit type to use
-
getOrbitalParametersDrivers
Get the drivers for orbital parameters.There are always exactly 6 drivers for orbital parameters that correspond to Keplerian motion. Some orbital parameters have additional drivers for non-Keplerian motion (TLE has a M2 parameter, GNSS orbital elements have Δa, iDot…) These additional drivers are not included here, they are provided by
OrbitalParameterFactory.getNonKeplerianParametersDrivers().- Specified by:
getOrbitalParametersDriversin interfaceOrbitalParameterFactory<P extends OrbitalParameters>- Returns:
- drivers for orbital parameters
-
getNonKeplerianParametersDrivers
Get the drivers for additional drivers for non-Keplerian motion.- Specified by:
getNonKeplerianParametersDriversin interfaceOrbitalParameterFactory<P extends OrbitalParameters>- Returns:
- drivers for non-Keplerian motion
-
getDate
Get the date of the orbital parameters.- Specified by:
getDatein interfaceOrbitalParameterFactory<P extends OrbitalParameters>- Returns:
- date of the orbital parameters
-
setDate
Set the date of the orbital parameters.- Specified by:
setDatein interfaceOrbitalParameterFactory<P extends OrbitalParameters>- Parameters:
date- date of the orbital parameters
-
getFrame
Get the frame in which the orbit is propagated.- Specified by:
getFramein interfaceOrbitalParameterFactory<P extends OrbitalParameters>- Returns:
- frame in which the orbit is propagated
-
setFrame
Set the frame in which the orbit is propagated.- Specified by:
setFramein interfaceOrbitalParameterFactory<P extends OrbitalParameters>- Parameters:
frame- frame in which the orbit is propagated
-
getPositionAngleType
Get the position angle type to use.- Specified by:
getPositionAngleTypein interfaceOrbitalParameterFactory<P extends OrbitalParameters>- Returns:
- position angle type to use
-
setPositionAngleType
Set the position angle type to use.- Specified by:
setPositionAngleTypein interfaceOrbitalParameterFactory<P extends OrbitalParameters>- Parameters:
positionAngleType- position angle type to use
-
getMu
public double getMu()Get the central attraction coefficient (µ - m³/s²) value.- Specified by:
getMuin interfaceOrbitalParameterFactory<P extends OrbitalParameters>- Returns:
- the central attraction coefficient (µ - m³/s²) value
-
setMu
public void setMu(double mu) Set the central attraction coefficient (µ - m³/s²) value.- Specified by:
setMuin interfaceOrbitalParameterFactory<P extends OrbitalParameters>- Parameters:
mu- the central attraction coefficient (µ - m³/s²) value
-
reset
Reset the drivers to match specified orbit.All of
date,mu, anddrivers valueswill be reset, but neither the frame nor the type of orbital parameters generated byOrbitalParameterFactory.createFromDrivers()will be reset.The specified orbit does not need to match the type of orbital parameters managed by the factory. Conversion will be applied if needed.
- Specified by:
resetin interfaceOrbitalParameterFactory<P extends OrbitalParameters>- Parameters:
orbit- orbit to be matched
-
getJacobianWrtCartesian
Get the Jacobian of the orbital parameters with respect to the Cartesian coordinates.This is the inverse of
OrbitalParameterFactory.getJacobianWrtParameters(), and it is evaluated under the very same conditions..This implementation inverts
OrbitalParameterFactory.getJacobianWrtParameters()numerically, using the same decomposition asOrbitdoes for its own Jacobian matrices.- Specified by:
getJacobianWrtCartesianin interfaceOrbitalParameterFactory<P extends OrbitalParameters>- Returns:
- jacobian matrix dB/dC, where B are the orbital parameters this factory is built upon and C the Cartesian coordinates
-
toArray
Convert an input into an array suitable to feed orbital parameters drivers.- Parameters:
orbit- orbit to convert- Returns:
- arrays corresponding to orbit
-
clone
-