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  
18  package org.orekit.forces.maneuvers.propulsion;
19  
20  import org.hipparchus.CalculusFieldElement;
21  import org.hipparchus.geometry.euclidean.threed.FieldVector3D;
22  import org.hipparchus.geometry.euclidean.threed.Vector3D;
23  import org.orekit.time.AbsoluteDate;
24  import org.orekit.time.FieldAbsoluteDate;
25  
26  /** Interface defining thrust vectors depending on date and mass only.
27   * The frame is assumed to be the satellite one.
28   * @author Romain Serra
29   * @since 13.0
30   */
31  public interface ThrustVectorProvider {
32  
33      /** Get thrust vector at a specified date.
34       * @param date date to consider
35       * @param mass current mass
36       * @return thrust at {@code date} (N)
37       */
38      Vector3D getThrustVector(AbsoluteDate date, double mass);
39  
40      /** Get thrust vector at a specified date.
41       * @param <T> type of the field elements
42       * @param date date to consider
43       * @param mass current mass
44       * @return thrust at {@code date} (N)
45       */
46      <T extends CalculusFieldElement<T>> FieldVector3D<T> getThrustVector(FieldAbsoluteDate<T> date, T mass);
47  }