public final class MultiStateVectorInfo extends Object
AdditionalStateInfo is guaranteed to be immutable.| Constructor and Description |
|---|
MultiStateVectorInfo(Map<String,SpacecraftState> s)
Build a MultiSatStateVectorInfo instance using the spacecraft states' map.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,AdditionalStateInfo> |
getAddStatesInfos(String satId)
Get the additional states informations associated with the given spacecraft ID.
|
List<String> |
getIdList()
Get the list of spacecraft ID.
|
protected int |
getSatAddStatesSize(String satId)
Get the additional states size of the given spacecraft .
|
int |
getSatRank(String satId)
Get the state vector index of the given spacecraft in the global state vector.
|
protected int |
getSatSize(String satId)
Get the state vector size of the given spacecraft .
|
int |
getStateVectorSize()
Get global state vector size.
|
SpacecraftState |
mapArrayToState(double[] y,
AbsoluteDate currentDate,
OrbitType orbitType,
PositionAngle angleType,
AttitudeProvider attProviderForces,
AttitudeProvider attProviderEvents,
double mu,
Frame integrationFrame,
String satId)
Extract a given SpacecraftState from the state vector.
|
Map<String,SpacecraftState> |
mapArrayToStates(double[] y,
AbsoluteDate currentDate,
OrbitType orbitType,
PositionAngle angleType,
Map<String,AttitudeProvider> attProvidersForces,
Map<String,AttitudeProvider> attProvidersEvents,
Map<String,Double> mu,
Map<String,Frame> integrationFrame)
Convert state vector into a Map of SpacecraftState
|
void |
mapStatesToArray(Map<String,SpacecraftState> s,
OrbitType orbitType,
PositionAngle angleType,
double[] y)
Convert a map of SpacecraftState into a state vector.
|
public MultiStateVectorInfo(Map<String,SpacecraftState> s)
s - the spacecraft states' map.public int getStateVectorSize()
public List<String> getIdList()
public int getSatRank(String satId)
satId - the spacecraft IDprotected int getSatSize(String satId)
satId - the spacecraft IDprotected int getSatAddStatesSize(String satId)
satId - the spacecraft IDpublic Map<String,AdditionalStateInfo> getAddStatesInfos(String satId)
satId - the spacecraft IDpublic Map<String,SpacecraftState> mapArrayToStates(double[] y, AbsoluteDate currentDate, OrbitType orbitType, PositionAngle angleType, Map<String,AttitudeProvider> attProvidersForces, Map<String,AttitudeProvider> attProvidersEvents, Map<String,Double> mu, Map<String,Frame> integrationFrame) throws PatriusException
y - the state vectorcurrentDate - the current dateorbitType - the orbital parameters typesangleType - the position angles typeattProvidersForces - the map of attitude providers for forces computationattProvidersEvents - the map of attitude providers for events computationmu - the map of central attraction coefficient used for propagation (m3/s2) for each
SpacecraftStateintegrationFrame - the map for frame in which integration is performed for each SpacecraftStatePatriusException - if attitude cannot be computedpublic SpacecraftState mapArrayToState(double[] y, AbsoluteDate currentDate, OrbitType orbitType, PositionAngle angleType, AttitudeProvider attProviderForces, AttitudeProvider attProviderEvents, double mu, Frame integrationFrame, String satId) throws PatriusException
y - the state vectorcurrentDate - the current dateorbitType - the orbital parameters typesangleType - the position angles typeattProviderForces - the attitude provider for forces computation of the given SpacecraftStateattProviderEvents - the attitude provider for events computation of the given SpacecraftStatemu - central attraction coefficient used for propagation (m3/s2)integrationFrame - frame in which integration is performedsatId - the spacecraft idPatriusException - if attitude cannot be computedpublic void mapStatesToArray(Map<String,SpacecraftState> s, OrbitType orbitType, PositionAngle angleType, double[] y)
s - the map of SpacecraftStateorbitType - the orbital parameters typesangleType - the position angles typey - state vectorCopyright © 2017 CNES. All rights reserved.