1   /* Copyright 2022-2025 Romain Serra
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.forces.maneuvers;
18  
19  import org.orekit.attitudes.AttitudeProvider;
20  
21  /** Abstract class for impulsive maneuvers.
22   * @author Romain Serra
23   * @since 13.0
24   */
25  public abstract class AbstractImpulseManeuver {
26  
27      /** The attitude to override during the maneuver, if set. */
28      private final AttitudeProvider attitudeOverride;
29  
30      /** Type of norm linking delta-V to mass consumption. */
31      private final Control3DVectorCostType control3DVectorCostType;
32  
33      /** Protected constructor.
34       * @param attitudeOverride the attitude provider to use for the maneuver
35       * @param control3DVectorCostType increment's norm for mass consumption
36       */
37      protected AbstractImpulseManeuver(final AttitudeProvider attitudeOverride,
38                                        final Control3DVectorCostType control3DVectorCostType) {
39          this.attitudeOverride = attitudeOverride;
40          this.control3DVectorCostType = control3DVectorCostType;
41      }
42  
43      /** Get the control vector's cost type.
44       * @return control cost type
45       */
46      public Control3DVectorCostType getControl3DVectorCostType() {
47          return control3DVectorCostType;
48      }
49  
50      /**
51       * Get the Attitude Provider to use during maneuver.
52       * @return the attitude provider
53       */
54      public AttitudeProvider getAttitudeOverride() {
55          return attitudeOverride;
56      }
57  }