Commit ff068eb0 authored by Luc Maisonobe's avatar Luc Maisonobe
Browse files

Use private static final names for state transition matrices.

parent d10fec42
......@@ -38,7 +38,7 @@ import org.orekit.utils.ParameterDriversList;
public class BatchLSModel extends AbstractBatchLSModel {
/** Name of the State Transition Matrix state. */
private final String STM_NAME = BatchLSModel.class.getName() + "-derivatives";
private static final String STM_NAME = BatchLSModel.class.getName() + "-derivatives";
/** Simple constructor.
* @param propagatorBuilders builders to use for propagation
......
......@@ -44,6 +44,9 @@ import org.orekit.utils.ParameterDriversList;
*/
public class DSSTBatchLSModel extends AbstractBatchLSModel {
/** Name of the State Transition Matrix state. */
private static final String STM_NAME = DSSTBatchLSModel.class.getName() + "-derivatives";
/** Type of the orbit used for the propagation.*/
private PropagationType propagationType;
......@@ -75,9 +78,8 @@ public class DSSTBatchLSModel extends AbstractBatchLSModel {
@Deprecated
protected DSSTJacobiansMapper configureDerivatives(final Propagator propagator) {
final String equationName = DSSTBatchLSModel.class.getName() + "-derivatives";
final DSSTPartialDerivativesEquations partials = new DSSTPartialDerivativesEquations(equationName, (DSSTPropagator) propagator, propagationType);
final DSSTPartialDerivativesEquations partials =
new DSSTPartialDerivativesEquations(STM_NAME, (DSSTPropagator) propagator, propagationType);
// add the derivatives to the initial state
final SpacecraftState rawState = propagator.getInitialState();
......
......@@ -44,6 +44,9 @@ import org.orekit.utils.ParameterDriversList;
*/
public class TLEBatchLSModel extends AbstractBatchLSModel {
/** Name of the State Transition Matrix state. */
private static final String STM_NAME = TLEBatchLSModel.class.getName() + "-derivatives";
/** Simple constructor.
* @param propagatorBuilders builders to use for propagation
* @param measurements measurements
......@@ -63,9 +66,8 @@ public class TLEBatchLSModel extends AbstractBatchLSModel {
@Deprecated
protected TLEJacobiansMapper configureDerivatives(final Propagator propagator) {
final String equationName = TLEBatchLSModel.class.getName() + "-derivatives";
final TLEPartialDerivativesEquations partials = new TLEPartialDerivativesEquations(equationName, (TLEPropagator) propagator);
final TLEPartialDerivativesEquations partials =
new TLEPartialDerivativesEquations(STM_NAME, (TLEPropagator) propagator);
// add the derivatives to the initial state
final SpacecraftState rawState = propagator.getInitialState();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment