public final class ResultsFileWriter extends Object
This class offers different functions to write results in output files for different purposes :
Modifier and Type | Method and Description |
---|---|
static void |
writeLoggedEventsToVTS(String thematic,
String useCase,
String comment,
String eventType,
List<EventsLogger.LoggedEvent> results)
Method to write a visualisation tool VTS MEM file.
|
static void |
writeResultsToPlot(String thematic,
String fileName,
List<double[]> results)
Method to write results given as an array of double of any size in organized directory.
|
static void |
writeResultsToVTS(String thematic,
String useCase,
String orbitComment,
String attitudeComment,
List<SpacecraftState> results)
Method to write the attitudes and positions files used by VTS visualization tool.
|
public static void writeResultsToPlot(String thematic, String fileName, List<double[]> results) throws IOException
thematic
- the thematic domain used as a directory to write files intofileName
- the name of the output fileresults
- array of double to writeIOException
- if filename contains fileseparatorpublic static void writeResultsToVTS(String thematic, String useCase, String orbitComment, String attitudeComment, List<SpacecraftState> results) throws PatriusException, IOException
thematic
- used to create a specific directory to write filesuseCase
- used to create a sub directory for the specific test of the thematicorbitComment
- used to comment the positions file to describe how these positions have been computed. For example :
low orbit sun synchronous...attitudeComment
- used to comment the attitude file to describe how attitude have been computed. For example : sun
pointing lawresults
- a list a spacecraft state (the step can be variable but should be less than 180 s) used to extract
positions and attitudesPatriusException
- if some errors occurs for example in frame transformationIOException
- if filename contains fileseparatorpublic static void writeLoggedEventsToVTS(String thematic, String useCase, String comment, String eventType, List<EventsLogger.LoggedEvent> results) throws PatriusException, IOException
thematic
- used to create a specific directory to write filesuseCase
- used to create a sub directory for the specific test of the thematiccomment
- used to comment the MEM event file. For example : detects when elevation from toulouse
is passing at 10 deg. 1 when going up. 0 when going down.eventType
- the type of event writted. For example : ElevationEventresults
- the detected eventsPatriusException
- if problems occurs when writing in the bufferIOException
- if the name of the filename contains file separatorCopyright © 2018 CNES. All Rights Reserved.