Class AbstractRelativeManeuver<P extends RelativeProvider>

java.lang.Object
org.orekit.propagation.relative.maneuver.AbstractRelativeManeuver<P>
Type Parameters:
P - type of the relative motion provider
All Implemented Interfaces:
DetectorModifier, EventDetector, RelativeManeuver
Direct Known Subclasses:
ClohessyWiltshireManeuver, YamanakaAnkersenManeuver

public abstract class AbstractRelativeManeuver<P extends RelativeProvider> extends Object implements RelativeManeuver
Abstract class for implementing an impulse maneuver for a chaser spacecraft.
Since:
14.0
Author:
Romain Cuvillon
  • Constructor Details

    • AbstractRelativeManeuver

      public AbstractRelativeManeuver(EventDetector trigger, Vector3D deltaV, P relativeProvider)
      Creates a new AbstractRelativeManeuver from an event detector, a ΔV vector, and a RelativeProvider.
      Parameters:
      trigger - Triggering event detector.
      deltaV - ΔV vector in the local orbital frame of the theory used by the given RelativeProvider.
      relativeProvider - Relative motion equations provider.
  • Method Details

    • init

      public void init(SpacecraftState s0, AbsoluteDate t)
      Initialize event detector at the start of a propagation.

      This method is called once at the start of the propagation. It may be used by the event handler to initialize some internal data if needed.

      The default implementation initializes the handler.

      Specified by:
      init in interface DetectorModifier
      Specified by:
      init in interface EventDetector
      Parameters:
      s0 - initial state
      t - target time for the integration
    • getDetector

      public EventDetector getDetector()
      Get the wrapped detector.
      Specified by:
      getDetector in interface DetectorModifier
      Returns:
      wrapped detector
    • getHandler

      public EventHandler getHandler()
      Get the handler.
      Specified by:
      getHandler in interface DetectorModifier
      Specified by:
      getHandler in interface EventDetector
      Returns:
      event handler to call at event occurrences
    • toString

      @DefaultDataContext public String toString()
      String representation in UTC.
      Overrides:
      toString in class Object
      Returns:
      string representation with date in UTC timescale
    • toString

      public String toString(TimeScale timeScale)
      String representation with timescale.
      Parameters:
      timeScale - timescale to use for date formatting
      Returns:
      string representation with timescale
    • getForward

      public boolean getForward()
      Getter for the forward boolean.
      Returns:
      forward boolean.
    • getDeltaV

      public Vector3D getDeltaV()
      Getter for the ΔV vector of the maneuver.
      Specified by:
      getDeltaV in interface RelativeManeuver
      Returns:
      The ΔV vector of the maneuver, expressed in the target spacecraft's LOF.
    • getRelativeProvider

      public P getRelativeProvider()
      Getter for the relative provider.
      Specified by:
      getRelativeProvider in interface RelativeManeuver
      Returns:
      relative motion provider.