FixedTimeCartesianBoundaryStates.java

  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.control.indirect.shooting.boundary;

  18. import org.orekit.utils.AbsolutePVCoordinates;

  19. /**
  20.  * Defines two-point boundary values for indirect shooting methods with Cartesian coordinates.
  21.  * This class represents the case where the initial and terminal times are fixed as well as the full
  22.  * Cartesian coordinates (position and velocity vectors in some frame), using {@link AbsolutePVCoordinates} as data holder.
  23.  * <br>
  24.  * The terminal condition can be anterior in time to the initial one, it just means that the shooting method will perform backward propagation.
  25.  * Also note that any acceleration vector passed in the {@link AbsolutePVCoordinates} is ignored.
  26.  *
  27.  * @author Romain Serra
  28.  * @since 12.2
  29.  * @see FixedTimeBoundaryOrbits
  30.  */
  31. public class FixedTimeCartesianBoundaryStates {

  32.     /** Initial Cartesian coordinates with date and frame. */
  33.     private final AbsolutePVCoordinates initialCartesianState;

  34.     /** Terminal Cartesian coordinates with date and frame. */
  35.     private final AbsolutePVCoordinates terminalCartesianState;

  36.     /**
  37.      * Constructor.
  38.      * @param initialCartesianState initial condition
  39.      * @param terminalCartesianState terminal condition
  40.      */
  41.     public FixedTimeCartesianBoundaryStates(final AbsolutePVCoordinates initialCartesianState,
  42.                                             final AbsolutePVCoordinates terminalCartesianState) {
  43.         this.initialCartesianState = initialCartesianState;
  44.         this.terminalCartesianState = terminalCartesianState;
  45.     }

  46.     /**
  47.      * Getter for the initial Cartesian condition.
  48.      * @return initial condition
  49.      */
  50.     public AbsolutePVCoordinates getInitialCartesianState() {
  51.         return initialCartesianState;
  52.     }

  53.     /**
  54.      * Getter for the terminal Cartesian condition.
  55.      * @return terminal condition
  56.      */
  57.     public AbsolutePVCoordinates getTerminalCartesianState() {
  58.         return terminalCartesianState;
  59.     }
  60. }