1 /* Copyright 2002-2013 CS Systèmes d'Information
2 * Licensed to CS Systèmes d'Information (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.propagation;
18
19 import org.orekit.errors.PropagationException;
20
21 /** This interface represents providers for additional state data beyond {@link SpacecraftState}.
22 * <p>
23 * This interface is the analytical (read already integrated) counterpart of
24 * the {@link org.orekit.propagation.integration.AdditionalEquations} interface.
25 * It allows to append various additional state parameters to any {@link
26 * org.orekit.propagation.AbstractPropagator abstract propagator}.
27 * </p>
28 * @see org.orekit.propagation.AbstractPropagator
29 * @see org.orekit.propagation.integration.AdditionalEquations
30 * @author Luc Maisonobe
31 */
32 public interface AdditionalStateProvider {
33
34 /** Get the name of the additional state.
35 * @return name of the additional state
36 */
37 String getName();
38
39 /** Get the additional state.
40 * @param state spacecraft state to which additional state should correspond
41 * @return additional state corresponding to spacecraft state
42 * @exception PropagationException if additional state cannot be computed
43 */
44 double[] getAdditionalState(SpacecraftState state) throws PropagationException;
45
46 }