1 /* Copyright 2020-2025 Exotrail
2 * Licensed to CS GROUP (CS) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * CS licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17 package org.orekit.propagation.conversion.averaging.elements;
18
19 /**
20 * Immutable class containing values of averaged Keplerian elements from any applicable theory
21 * (with MEAN as {@link org.orekit.orbits.PositionAngleType}).
22 *
23 * @author Romain Serra
24 * @see AveragedOrbitalElements
25 * @since 12.1
26 */
27 public class AveragedKeplerianWithMeanAngle implements AveragedOrbitalElements {
28
29 /** Averaged semi-major axis in arbitrary theory. */
30 private final double averagedSemiMajorAxis;
31 /** Averaged eccentricity in arbitrary theory. */
32 private final double averagedEccentricity;
33 /** Averaged inclination in arbitrary theory. */
34 private final double averagedInclination;
35 /** Averaged perigee argument in arbitrary theory. */
36 private final double averagedPerigeeArgument;
37 /** Averaged right ascension of the ascending node in arbitrary theory. */
38 private final double averagedRightAscensionOfTheAscendingNode;
39 /** Averaged mean anomaly in arbitrary theory. */
40 private final double averagedMeanAnomaly;
41
42 /**
43 * Constructor.
44 * @param averagedSemiMajorAxis averaged semi-major axis
45 * @param averagedEccentricity averaged eccentricity
46 * @param averagedInclination averaged inclination
47 * @param averagedPerigeeArgument averaged perigee argument
48 * @param averagedRightAscensionOfTheAscendingNode averaged RAAN
49 * @param averagedMeanAnomaly averaged mean anomaly
50 */
51 public AveragedKeplerianWithMeanAngle(final double averagedSemiMajorAxis,
52 final double averagedEccentricity,
53 final double averagedInclination,
54 final double averagedPerigeeArgument,
55 final double averagedRightAscensionOfTheAscendingNode,
56 final double averagedMeanAnomaly) {
57 this.averagedSemiMajorAxis = averagedSemiMajorAxis;
58 this.averagedEccentricity = averagedEccentricity;
59 this.averagedInclination = averagedInclination;
60 this.averagedPerigeeArgument = averagedPerigeeArgument;
61 this.averagedRightAscensionOfTheAscendingNode = averagedRightAscensionOfTheAscendingNode;
62 this.averagedMeanAnomaly = averagedMeanAnomaly;
63 }
64
65 /** {@inheritDoc} */
66 @Override
67 public double[] toArray() {
68 return new double[] { averagedSemiMajorAxis, averagedEccentricity, averagedInclination,
69 averagedPerigeeArgument, averagedRightAscensionOfTheAscendingNode, averagedMeanAnomaly };
70 }
71
72 /**
73 * Getter for the averaged semi-major axis.
74 * @return semi-major axis
75 */
76 public double getAveragedSemiMajorAxis() {
77 return averagedSemiMajorAxis;
78 }
79
80 /**
81 * Getter for the averaged eccentricity.
82 * @return eccentricity
83 */
84 public double getAveragedEccentricity() {
85 return averagedEccentricity;
86 }
87
88 /**
89 * Getter for the averaged inclination.
90 * @return inclination
91 */
92 public double getAveragedInclination() {
93 return averagedInclination;
94 }
95
96 /**
97 * Getter for the averaged perigee argument.
98 * @return perigee argument.
99 */
100 public double getAveragedPerigeeArgument() {
101 return averagedPerigeeArgument;
102 }
103
104 /**
105 * Getter for the averaged RAAN.
106 * @return RAAN
107 */
108 public double getAveragedRightAscensionOfTheAscendingNode() {
109 return averagedRightAscensionOfTheAscendingNode;
110 }
111
112 /**
113 * Getter for the averaged mean anomaly.
114 * @return mean anomaly
115 */
116 public double getAveragedMeanAnomaly() {
117 return averagedMeanAnomaly;
118 }
119 }