« Basic principle » : différence entre les versions

De Gentleman
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 3 : Ligne 3 :
So, the developer will have to:
So, the developer will have to:


# Initialize data set and loggers:
1. Initialize data set and loggers:
#:<syntaxhighlight lang="java">
<syntaxhighlight lang="java">
   // Patrius dataset initialization
   // Patrius dataset initialization
   PatriusDataset.addResourcesFromPatriusDataset();
   PatriusDataset.addResourcesFromPatriusDataset();
Ligne 10 : Ligne 10 :
   // Log4j initialization
   // Log4j initialization
   GtmLogger.iniLog4j(GtmConstants.DEF_LOG_FILE, false);
   GtmLogger.iniLog4j(GtmConstants.DEF_LOG_FILE, false);
#:</syntaxhighlight>
</syntaxhighlight>
# Initialize a <font color=#556B2F>'''GENTLEMAN'''</font> propagator (see [[API_Propagation|here]]).
2. Initialize a <font color=#556B2F>'''GENTLEMAN'''</font> propagator (see [[API_Propagation|here]]).
# Execute the propagation to store the output in a spacecraft list.
3. Execute the propagation to store the output in a spacecraft list.
# Initialize a <font color=#556B2F>'''GENTLEMAN'''</font> [{{PathCurrentJavaDoc}}/fr/cnes/dynvol/gentleman/calc/data/tle/GtmObjectData.html GtmObjectData] object to characterize the considered space object.
4. Initialize a <font color=#556B2F>'''GENTLEMAN'''</font> [{{PathCurrentJavaDoc}}/fr/cnes/dynvol/gentleman/calc/data/tle/GtmObjectData.html GtmObjectData] object to characterize the considered space object.
# Initialize a <font color=#556B2F>'''GENTLEMAN'''</font> <font color=#FF8C00 title="Two Lines Elements">TLE</font> data object to define how <font color=#FF8C00 title="Two Lines Elements">TLE(s)</font> will be built.
5. Initialize a <font color=#556B2F>'''GENTLEMAN'''</font> <font color=#FF8C00 title="Two Lines Elements">TLE</font> data object to define how <font color=#FF8C00 title="Two Lines Elements">TLE(s)</font> will be built.
# Initialize a <font color=#556B2F>'''GENTLEMAN'''</font> [{{PathCurrentJavaDoc}}/fr/cnes/dynvol/gentleman/calc/tles/GtmBuilder.html GtmBuilder] builder object.
6. Initialize a <font color=#556B2F>'''GENTLEMAN'''</font> [{{PathCurrentJavaDoc}}/fr/cnes/dynvol/gentleman/calc/tles/GtmBuilder.html GtmBuilder] builder object.
# Call the needed method of the builder object.
7. Call the needed method of the builder object.
# Get the results via getters methods.
8. Get the results via getters methods.

Version du 10 septembre 2021 à 11:13

GENTLEMAN proposes a Java interface. Using this Java interface is relatively simple but as GENTLEMAN needs a lot of data as inputs the most important difficulty will be to initialize them.

So, the developer will have to:

1. Initialize data set and loggers:

  // Patrius dataset initialization
  PatriusDataset.addResourcesFromPatriusDataset();
        
  // Log4j initialization
  GtmLogger.iniLog4j(GtmConstants.DEF_LOG_FILE, false);

2. Initialize a GENTLEMAN propagator (see here). 3. Execute the propagation to store the output in a spacecraft list. 4. Initialize a GENTLEMAN GtmObjectData object to characterize the considered space object. 5. Initialize a GENTLEMAN TLE data object to define how TLE(s) will be built. 6. Initialize a GENTLEMAN GtmBuilder builder object. 7. Call the needed method of the builder object. 8. Get the results via getters methods.