public class OutputManager extends Object
Constructor and Description |
---|
OutputManager(fr.cnes.sirius.patrius.assembly.Assembly assemblyIn,
fr.cnes.sirius.patrius.assembly.Vehicle vehicleIn,
fr.cnes.sirius.patrius.forces.ForceModelsData forceModelsIn,
fr.cnes.sirius.patrius.bodies.ExtendedOneAxisEllipsoid earthIn,
fr.cnes.genopus.nonWidget.maneuvers.CustomManeuverSequence maneuversSequenceIn,
OutputConfig outputConfig,
Psimu.StorageType storageMemoryIn,
Psimu.StorageType storageFileIn)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addEphemValue(String tableName,
VarList columnEnum,
double value)
Add a value to the ephemeris database.
|
void |
addEphemValue(String tableName,
VarList columnEnum,
String value)
Add a value to the ephemeris database.
|
void |
addEvent(fr.cnes.sirius.patrius.events.CodedEventsLogger.LoggedCodedEvent loggedCodedEvent)
Add the loggedCodedEvent to the event table.
|
void |
addEvent(fr.cnes.sirius.patrius.propagation.SpacecraftState state,
String code)
Add the event to the event table.
|
void |
addSpacecraftState(fr.cnes.sirius.patrius.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.
|
fr.cnes.sirius.patrius.frames.Frame |
getOutputFrame()
Method to get the outputFrame
|
fr.cnes.sirius.patrius.time.TimeScale |
getOutputTimeScale()
Method to get the outputTimeScale
|
List<fr.cnes.sirius.patrius.propagation.SpacecraftState> |
getSpacecraftStateList()
Get the list of spacecraft states if available or null if not available
(i.e. storage mode FILE).
|
List<fr.cnes.sirius.patrius.propagation.SpacecraftState> |
getSpacecraftStateOnlyEventsList()
Get the list of spacecraft states only with events if available or null
if not available (i.e. storage mode FILE).
|
List<fr.cnes.sirius.patrius.propagation.SpacecraftState> |
getSpacecraftStateWithoutEventsList()
Get the list of spacecraft states without events if available or null if
not available (i.e. storage mode FILE).
|
Psimu.StorageType |
getStorageFile()
Method to get storage file
|
Psimu.StorageType |
getStorageMemory()
Method to get the storage memory
|
List<Map<String,Object>> |
getVariablesList()
Method to get list of variables
|
List<Map<String,Object>> |
getVariablesOnlyEventsList()
Method to get list of variables
|
List<Map<String,Object>> |
getVariablesWithoutEventsList()
Method to get list of variables without events
|
void |
saveVTSFiles(String outputDir,
String resultName)
Save the VTS files.
|
public OutputManager(fr.cnes.sirius.patrius.assembly.Assembly assemblyIn, fr.cnes.sirius.patrius.assembly.Vehicle vehicleIn, fr.cnes.sirius.patrius.forces.ForceModelsData forceModelsIn, fr.cnes.sirius.patrius.bodies.ExtendedOneAxisEllipsoid earthIn, fr.cnes.genopus.nonWidget.maneuvers.CustomManeuverSequence maneuversSequenceIn, OutputConfig outputConfig, Psimu.StorageType storageMemoryIn, Psimu.StorageType storageFileIn) throws fr.cnes.genius.exception.SqliteException
assemblyIn
- satellite assembly information.vehicleIn
- vehicleforceModelsIn
- applicable force models.earthIn
- applicable earth shape.maneuversSequenceIn
- maneuvers sequenceoutputConfig
- output configuration.storageMemoryIn
- memory storage type of the results.storageFileIn
- file 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(fr.cnes.sirius.patrius.propagation.SpacecraftState currentState)
currentState
- current spacecraft state.public void addEvent(fr.cnes.sirius.patrius.propagation.SpacecraftState state, String code)
state
- state to addcode
- event codepublic void addEvent(fr.cnes.sirius.patrius.events.CodedEventsLogger.LoggedCodedEvent loggedCodedEvent)
loggedCodedEvent
- event to add.public List<Map<String,Object>> getVariablesList() throws PsimuOutputManagerException
PsimuOutputManagerException
- exception when getting lists of variables.public List<Map<String,Object>> getVariablesWithoutEventsList() throws PsimuOutputManagerException
PsimuOutputManagerException
- exception when getting lists of variables.public List<Map<String,Object>> getVariablesOnlyEventsList() throws PsimuOutputManagerException
PsimuOutputManagerException
- exception when getting lists of variables.public fr.cnes.sirius.patrius.frames.Frame getOutputFrame()
public fr.cnes.sirius.patrius.time.TimeScale getOutputTimeScale()
public Psimu.StorageType getStorageMemory()
public Psimu.StorageType getStorageFile()
public List<fr.cnes.sirius.patrius.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 List<fr.cnes.sirius.patrius.propagation.SpacecraftState> getSpacecraftStateWithoutEventsList() throws PsimuOutputManagerException
PsimuOutputManagerException
- in case of error when recovering the list from the sqlite
database (storeage mode FILE_WITH_SC_BINARY).public List<fr.cnes.sirius.patrius.propagation.SpacecraftState> getSpacecraftStateOnlyEventsList() throws PsimuOutputManagerException
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 addEphemValue(String tableName, VarList columnEnum, double value)
tableName
- name of the table to store the spacecraft state.columnEnum
- column enumerate.value
- value associated with the column.public void addEphemValue(String tableName, VarList columnEnum, String value)
tableName
- name of the table to store the spacecraft state.columnEnum
- column enumerate.value
- value associated with the column.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 © 2022. All rights reserved.