« API TLE generation » : différence entre les versions

De Gentleman
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
 
(7 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
Once we have initialize TLE data (see [[API_TLE_data|here]]) and options (see [[API_TLE_options|here]]), we will have to instantiate a [{{PathCurrentJavaDoc}}/fr/cnes/dynvol/gentleman/calc/data/tle/GtmBuilder object.html GtmBuilder object] as is:
Once we have initialize <font color=#FF8C00 title="Two Lines Elements">TLE(s)</font> data (see [[API_TLE_data|here]]) and options (see [[API_TLE_options|here]]), we will have to instantiate a [{{PathCurrentJavaDoc}}/fr/cnes/dynvol/gentleman/calc/tles/GtmBuilder.html GtmBuilder] object as is:


<syntaxhighlight lang="java">
<syntaxhighlight lang="java">
// TLE builder
// TLE builder
final GtmBuilder build = new GtmBuilder(TLE_OBJ, geo.getSpacecraftStateList(), null);
final GtmBuilder build = new GtmBuilder(TLE_OBJ, geo.getSpacecraftStateList());
</syntaxhighlight>
</syntaxhighlight>


// Building TLE
... or in case of existing maneuvers:
final List<TLE> bestTles = build.computeBestTles(data, false);
 
<syntaxhighlight lang="java">
final GtmBuilder build = new GtmBuilder(TLE_OBJ, geo.getSpacecraftStateList(), listOfManeuversDates);
</syntaxhighlight>
 
Then we will have to call to the method corresponding to the <font color=#FF8C00 title="Two Lines Elements">TLE(s)</font> computation option:
 
<syntaxhighlight lang="java">
// Building TLE for single or best single option
// data is a GtmSingleTle or  GtmBestTle object
final int deltaNb = 0;
final int deltaNbP = 0;
final boolean flagMan = false
final TLE tle = build.computeBestTle(data, deltaNb , deltaNbP , flagMan );
</syntaxhighlight>
 
<syntaxhighlight lang="java">
// Building TLE for best dated or periodic option
// data is a GtmBestTlesDates or a GtmBestTlesPeriod object
final List<TLE> bestTles = build.computeBestTles(data, flagMan);
</syntaxhighlight>
 
Results will be stord in a [http://patrius.cnes.fr PATRIUS] [{{PathCurrentPatriusJavaDoc}}/fr/cnes/sirius/patrius/propagation/analytical/tle/TLE.html TLE] objects.

Dernière version du 13 septembre 2021 à 07:45

Once we have initialize TLE(s) data (see here) and options (see here), we will have to instantiate a GtmBuilder object as is:

// TLE builder
final GtmBuilder build = new GtmBuilder(TLE_OBJ, geo.getSpacecraftStateList());

... or in case of existing maneuvers:

final GtmBuilder build = new GtmBuilder(TLE_OBJ, geo.getSpacecraftStateList(), listOfManeuversDates);

Then we will have to call to the method corresponding to the TLE(s) computation option:

// Building TLE for single or best single option
// data is a GtmSingleTle or  GtmBestTle object
final int deltaNb = 0;
final int deltaNbP = 0;
final boolean flagMan = false
final TLE tle = build.computeBestTle(data, deltaNb , deltaNbP , flagMan );
// Building TLE for best dated or periodic option
// data is a GtmBestTlesDates or a GtmBestTlesPeriod object
final List<TLE> bestTles = build.computeBestTles(data, flagMan);

Results will be stord in a PATRIUS TLE objects.