« Basic Principle » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
<font color=#556B2F>'''PSIMU'''</font> proposed a <font color=#FF8C00>Java</font> interface | <font color=#556B2F>'''PSIMU'''</font> proposed a <font color=#FF8C00>Java</font> interface | ||
Most of the objects to pass as input data are [[http://patrius.cnes.fr PATRIUS]] ones. Some of them are specific to <font color=#556B2F>'''PSIMU'''</font> | Most of the objects to pass as input data are [[http://patrius.cnes.fr PATRIUS]] ones. Some of them are specific to <font color=#556B2F>'''PSIMU'''</font> or [[https://logiciels.cnes.fr/en/node/78?type=desc GENOPUS]] but, in that case, most of the time, it is due to the fact that these objects are not yet included in the used [[https://logiciels.cnes.fr/en/node/62?type=desc PATRIUS]] version: their name will then start by “''Custom…''”. | ||
So, to use this <font color=#FF8C00>Java</font> interface, the developer will have to: | So, to use this <font color=#FF8C00>Java</font> interface, the developer will have to: | ||
# Initialize [[ | # Initialize [[https://logiciels.cnes.fr/en/content/patriusdataset Patrius Dataset]]. | ||
# Create a <font color=#556B2F>'''PSIMU'''</font> object using its available constructor. | # Create a <font color=#556B2F>'''PSIMU'''</font> object using its available constructor. | ||
# Calling for the propagation in master or slave mode. | # Calling for the propagation in master or slave mode. | ||
# Calling for “''getter''” methods to extract after the propagation all useful information. | # Calling for “''getter''” methods to extract after the propagation all useful information. | ||
For the first point, there are two possibilities : | |||
Calling directly the [[https://logiciels.cnes.fr/en/content/patriusdataset Patrius Dataset]] method: | |||
<syntaxhighlight lang="java"> | |||
// Patrius Dataset initialization | |||
PatriusDataset.addResourcesFromPatriusDataset() ; | |||
</syntaxhighlight> | |||
Or calling a specific <font color=#556B2F>'''PSIMU'''</font> method allowing to manage both [[https://logiciels.cnes.fr/en/content/patriusdataset Patrius Dataset]] included Inside the <font color=#556B2F>'''PSIMU'''</font> jar and local data ( see [http://psimu.cnes.fr/index.php/Earth_Features#Frames configuration#Since V11.4 version] : | |||
<syntaxhighlight lang="java"> | |||
// Patrius data set initialization | |||
final String addDataName = AppPSimuConfigurationProperties.getInstance().getAdditionalPatriusFolder(); | |||
AppPSimuConfigurationProperties.iniPatriusDataset(addDataName); | |||
</syntaxhighlight> |
Version du 16 décembre 2020 à 11:18
PSIMU proposed a Java interface
Most of the objects to pass as input data are [PATRIUS] ones. Some of them are specific to PSIMU or [GENOPUS] but, in that case, most of the time, it is due to the fact that these objects are not yet included in the used [PATRIUS] version: their name will then start by “Custom…”.
So, to use this Java interface, the developer will have to:
- Initialize [Patrius Dataset].
- Create a PSIMU object using its available constructor.
- Calling for the propagation in master or slave mode.
- Calling for “getter” methods to extract after the propagation all useful information.
For the first point, there are two possibilities :
Calling directly the [Patrius Dataset] method:
// Patrius Dataset initialization
PatriusDataset.addResourcesFromPatriusDataset() ;
Or calling a specific PSIMU method allowing to manage both [Patrius Dataset] included Inside the PSIMU jar and local data ( see configuration#Since V11.4 version :
// Patrius data set initialization
final String addDataName = AppPSimuConfigurationProperties.getInstance().getAdditionalPatriusFolder();
AppPSimuConfigurationProperties.iniPatriusDataset(addDataName);