Esempio n. 1
0
  /** {@inheritDoc} */
  @Override
  protected StateMapper createMapper(
      final AbsoluteDate referenceDate,
      final double mu,
      final OrbitType orbitType,
      final PositionAngle positionAngleType,
      final AttitudeProvider attitudeProvider,
      final Frame frame) {

    // create a mapper with the common settings provided as arguments
    final MeanPlusShortPeriodicMapper newMapper =
        new MeanPlusShortPeriodicMapper(referenceDate, mu, attitudeProvider, frame);

    // copy the specific settings from the existing mapper
    if (mapper != null) {
      for (final DSSTForceModel forceModel : mapper.getForceModels()) {
        newMapper.addForceModel(forceModel);
      }
      newMapper.setSatelliteRevolution(mapper.getSatelliteRevolution());
      newMapper.setInitialIsOsculating(mapper.initialIsOsculating());
    }

    mapper = newMapper;
    return mapper;
  }
Esempio n. 2
0
 /**
  * Get the number of satellite revolutions to use for converting osculating to mean elements.
  *
  * @return number of satellite revolutions to use for converting osculating to mean elements
  */
 public int getSatelliteRevolution() {
   return mapper.getSatelliteRevolution();
 }