public final class PsimuUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BINARY_RESULTS_FILE_NAME
Results binary file name.
|
static String |
BINARY_SC_COLUMN_DESC
Binary spacecraft state column desciption.
|
static String |
BINARY_SC_COLUMN_NAME
Binary spacecraft state column name.
|
static String |
CAL
Calendar unit string.
|
static String |
DATA_FILE
Data file ("data.xml").
|
static String |
DAY
Day string.
|
static String |
DEG
Degree string.
|
static String |
DEG_SEC
Deg/s string.
|
static String |
EPH_TABLE
Ephemeris table name in the sqlite database.
|
static String |
EVENT_COLUMN_NAME
Event column name in the sqlite database.
|
static String |
EVENT_TABLE
Events table name in the sqlite database.
|
static double |
GAP_DEG_180
Gap definition of 180 deg for angular units.
|
static String |
GRAMS
Gram string.
|
static String |
HOUR
Hour string.
|
static String |
KG_M3
Density units string.
|
static String |
KILOGRAMS
Kilo string.
|
static String |
KILOMETERS
Kilometer string.
|
static int |
MAX_SPAN
Default maximum span.
|
static String |
METERS
Meters string.
|
static String |
METERS_SEC
Velocity string.
|
static String |
METERS_SEC2
Acceleration string.
|
static String |
NEWTON
Thrust units string.
|
static String |
PERCENT
Percent unit string.
|
static String |
PREFIX_OUTPUT
Output prefix ("OUT_").
|
static String |
PREFIX_SCENARIO
Scenario prefix ("SCE_").
|
static String |
SEC
Seconds string.
|
static String |
SUFFIX_XML
XML suffix (".xml)".
|
static String |
UTC
UTC string.
|
Modifier and Type | Method and Description |
---|---|
static fr.cnes.sirius.patrius.propagation.SpacecraftState |
fromBase64(String spacecraftStateString)
Read the object from Base64 string.
|
static fr.cnes.genius.unit.GUnit[] |
getTimeDaysUnitList()
Get the time unit list.
|
static List<fr.cnes.sirius.patrius.propagation.SpacecraftState> |
readSpacecraftStatesFromFile(boolean isEphem,
boolean isEvent,
String outputDirectory,
String nameFile,
String varName)
Method to initialize a list of spacecraft states from a SQlite file.
|
static List<Map<String,Object>> |
readVariablesFromFile(boolean isEphem,
boolean isEvent,
String outputDirectory,
String nameFile,
List<String> listOfVarnames)
Method to initialize a list of variables from a SQlite file.
|
static String |
toBase64(fr.cnes.sirius.patrius.propagation.SpacecraftState currentState)
Write the object to a Base64 string.
|
public static final int MAX_SPAN
public static final String EPH_TABLE
public static final String EVENT_TABLE
public static final String EVENT_COLUMN_NAME
public static final String BINARY_SC_COLUMN_NAME
public static final String BINARY_SC_COLUMN_DESC
public static final String CAL
public static final String DEG
public static final String KILOGRAMS
public static final String GRAMS
public static final String METERS
public static final String KILOMETERS
public static final String METERS_SEC
public static final String METERS_SEC2
public static final String DEG_SEC
public static final String DAY
public static final String HOUR
public static final String SEC
public static final String UTC
public static final String KG_M3
public static final String NEWTON
public static final String PERCENT
public static final String PREFIX_SCENARIO
public static final String PREFIX_OUTPUT
public static final String SUFFIX_XML
public static final String DATA_FILE
public static final String BINARY_RESULTS_FILE_NAME
public static final double GAP_DEG_180
public static fr.cnes.genius.unit.GUnit[] getTimeDaysUnitList()
public static List<Map<String,Object>> readVariablesFromFile(boolean isEphem, boolean isEvent, String outputDirectory, String nameFile, List<String> listOfVarnames) throws fr.cnes.genius.exception.SqliteException
isEphem
- flag to know if ephemeris table must be presentisEvent
- flag to know if event table must be presentoutputDirectory
- name of the directory where is the db file to readnameFile
- name of the db file to read.listOfVarnames
- list of variables names to be read in the db file.fr.cnes.genius.exception.SqliteException
- if a problem occurred with the SQLite readingpublic static List<fr.cnes.sirius.patrius.propagation.SpacecraftState> readSpacecraftStatesFromFile(boolean isEphem, boolean isEvent, String outputDirectory, String nameFile, String varName) throws fr.cnes.genius.exception.SqliteException, PsimuOutputManagerException
isEphem
- flag to know if ephemeris table must be presentisEvent
- flag to know if event table must be presentoutputDirectory
- name of the directory where is the db file to readnameFile
- name of the db file to readvarName
- name of the variable in the db file.fr.cnes.genius.exception.SqliteException
- if a problem occurred with the SQLite readingPsimuOutputManagerException
- if a problem occurred with the conversion S/C => binarypublic static fr.cnes.sirius.patrius.propagation.SpacecraftState fromBase64(String spacecraftStateString) throws PsimuOutputManagerException
spacecraftStateString
- spacecraft state coded as a base64 string.PsimuOutputManagerException
- in case of problem converting the input string to a spacecraft state.public static String toBase64(fr.cnes.sirius.patrius.propagation.SpacecraftState currentState) throws PsimuOutputManagerException
currentState
- spacecraft state.PsimuOutputManagerException
- in case the spacecraft state cannot be converted to string.Copyright © 2022. All rights reserved.