|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.cnes.sirius.patrius.propagation.numerical.multi.MultiStateVectorInfo
public final class MultiStateVectorInfo
Utility class that describes in a minimal fashion the structure of a state.
An instance contains the size of an additional state and its index in the state vector.
The instance AdditionalStateInfo
is guaranteed to be immutable.
Constructor Summary | |
---|---|
MultiStateVectorInfo(Map<String,SpacecraftState> s)
Build a MultiSatStateVectorInfo instance using the spacecraft states' map. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiStateVectorInfo(Map<String,SpacecraftState> s)
s
- the spacecraft states' map.Method Detail |
---|
public int getStateVectorSize()
public List<String> getIdList()
public int getSatRank(String satId)
satId
- the spacecraft ID
protected int getSatSize(String satId)
satId
- the spacecraft ID
protected int getSatAddStatesSize(String satId)
satId
- the spacecraft ID
public Map<String,AdditionalStateInfo> getAddStatesInfos(String satId)
satId
- the spacecraft ID
public 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 OrekitException
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 SpacecraftState
OrekitException
- 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 OrekitException
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 id
OrekitException
- 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 vector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |