Package org.orekit.utils
Enum CartesianDerivativesFilter
- java.lang.Object
-
- java.lang.Enum<CartesianDerivativesFilter>
-
- org.orekit.utils.CartesianDerivativesFilter
-
- All Implemented Interfaces:
Serializable
,Comparable<CartesianDerivativesFilter>
public enum CartesianDerivativesFilter extends Enum<CartesianDerivativesFilter>
Enumerate for selecting which derivatives to use inTimeStampedPVCoordinates
andTimeStampedFieldPVCoordinates
interpolation.- Since:
- 7.0
- Author:
- Luc Maisonobe
- See Also:
AbstractTimeInterpolator.interpolate(AbsoluteDate, java.util.Collection)
,AbstractFieldTimeInterpolator.interpolate(FieldAbsoluteDate, java.util.Collection)
,AngularDerivativesFilter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CartesianDerivativesFilter
getFilter(int order)
Get the filter corresponding to a maximum derivation order.int
getMaxOrder()
Get the maximum derivation order.static CartesianDerivativesFilter
valueOf(String name)
Returns the enum constant of this type with the specified name.static CartesianDerivativesFilter[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USE_P
public static final CartesianDerivativesFilter USE_P
Use only positions, ignoring velocities.
-
USE_PV
public static final CartesianDerivativesFilter USE_PV
Use positions and velocities.
-
USE_PVA
public static final CartesianDerivativesFilter USE_PVA
Use positions, velocities and accelerations.
-
-
Method Detail
-
values
public static CartesianDerivativesFilter[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CartesianDerivativesFilter c : CartesianDerivativesFilter.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CartesianDerivativesFilter valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getMaxOrder
public int getMaxOrder()
Get the maximum derivation order.- Returns:
- maximum derivation order
-
getFilter
public static CartesianDerivativesFilter getFilter(int order) throws IllegalArgumentException
Get the filter corresponding to a maximum derivation order.- Parameters:
order
- maximum derivation order- Returns:
- the filter corresponding to derivation order
- Throws:
IllegalArgumentException
- if the order is out of range
-
-