public class OutputManager extends Object
Constructor and Description |
---|
OutputManager(fr.cnes.sirius.patrius.assembly.Assembly assembly,
fr.cnes.genopus.nonWidget.forces.CustomForceModels forceModels,
org.orekit.bodies.ExtendedOneAxisEllipsoid earth,
OutputConfig outputConfig,
Psimu.StorageType storageType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addEvent(fr.cnes.sirius.patrius.events.CodedEventsLogger.LoggedCodedEvent loggedCodedEvent)
Add the loggedCodedEvent to the event table.
|
void |
addSpacecraftState(org.orekit.propagation.SpacecraftState currentState)
Add the spacecraft to the epehemeris database.
|
void |
close()
Close the database connection.
|
List<OutputEvent> |
getEventList()
Get the list of events associated with the propagation.
|
org.orekit.propagation.SpacecraftState |
getSpacecraftState(int index)
Get the list of spacecraft states if available or null if not available (i.e.
|
List<org.orekit.propagation.SpacecraftState> |
getSpacecraftStateList()
Get the list of spacecraft states if available or null if not available (i.e.
|
void |
saveVTSFiles(String outputDir,
String resultName)
Save the VTS files.
|
public OutputManager(fr.cnes.sirius.patrius.assembly.Assembly assembly, fr.cnes.genopus.nonWidget.forces.CustomForceModels forceModels, org.orekit.bodies.ExtendedOneAxisEllipsoid earth, OutputConfig outputConfig, Psimu.StorageType storageType) throws fr.cnes.genius.exception.SqliteException
assembly
- satellite assembly information.forceModels
- applicable force models.earth
- applicable earth shape.outputConfig
- output configuration.storageType
- storage type of the results.fr.cnes.genius.exception.SqliteException
- if the database file fails to create.public void close() throws fr.cnes.genius.exception.SqliteException
fr.cnes.genius.exception.SqliteException
- in case the closure fails.public void addSpacecraftState(org.orekit.propagation.SpacecraftState currentState)
currentState
- current spacecraft state.public void addEvent(fr.cnes.sirius.patrius.events.CodedEventsLogger.LoggedCodedEvent loggedCodedEvent)
loggedCodedEvent
- event to add.public List<org.orekit.propagation.SpacecraftState> getSpacecraftStateList() throws PsimuOutputManagerException
PsimuOutputManagerException
- in case of error when recovering the list from the sqlite database (storeage mode
FILE_WITH_SC_BINARY).public org.orekit.propagation.SpacecraftState getSpacecraftState(int index) throws PsimuOutputManagerException
index
- index of the spacecraft state to return.PsimuOutputManagerException
- in case of error when recovering the list from the sqlite database (storeage mode
FILE_WITH_SC_BINARY).public List<OutputEvent> getEventList() throws PsimuOutputManagerException
PsimuOutputManagerException
- If the list of events cannot be calculated.public void saveVTSFiles(String outputDir, String resultName) throws PsimuOutputManagerException
outputDir
- output directory.resultName
- result name to compose the filename.PsimuOutputManagerException
- if the VTS files cannot be saved.Copyright © 2017. All rights reserved.