Class PythonAbstractGenerator
- java.lang.Object
-
- org.orekit.files.ccsds.utils.generation.AbstractGenerator
-
- org.orekit.files.ccsds.utils.generation.PythonAbstractGenerator
-
- All Implemented Interfaces:
AutoCloseable
,Generator
public class PythonAbstractGenerator extends AbstractGenerator
-
-
Constructor Summary
Constructors Constructor Description PythonAbstractGenerator(Appendable output, String outputName, double maxRelativeOffset, boolean writeUnits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endMessage(String root)
End CCSDS message.void
finalize()
Part of JCC Python interface to objectFileFormat
getFormat()
Get the generated file format.void
pythonDecRef()
Part of JCC Python interface to objectlong
pythonExtension()
Part of JCC Python interface to objectvoid
pythonExtension(long pythonObject)
Part of JCC Python interface to objectvoid
startMessage(String root, String messageTypeKey, double version)
Start CCSDS message.void
writeComments(List<String> comments)
Write comment lines.void
writeEntry(String key, String value, Unit unit, boolean mandatory)
Write a single key/value entry.-
Methods inherited from class org.orekit.files.ccsds.utils.generation.AbstractGenerator
close, complain, dateToCalendarString, dateToString, dateToString, doubleToString, enterSection, exitSection, getOutputName, newLine, siToCcsdsName, unitsListToString, writeEntry, writeEntry, writeEntry, writeEntry, writeEntry, writeEntry, writeEntry, writeRawData, writeRawData, writeUnits
-
-
-
-
Constructor Detail
-
PythonAbstractGenerator
public PythonAbstractGenerator(Appendable output, String outputName, double maxRelativeOffset, boolean writeUnits)
-
-
Method Detail
-
pythonExtension
public void pythonExtension(long pythonObject)
Part of JCC Python interface to object
-
pythonExtension
public long pythonExtension()
Part of JCC Python interface to object
-
finalize
public void finalize() throws Throwable
Part of JCC Python interface to object
-
pythonDecRef
public void pythonDecRef()
Part of JCC Python interface to object
-
getFormat
public FileFormat getFormat()
Get the generated file format.- Returns:
- generated file format
-
startMessage
public void startMessage(String root, String messageTypeKey, double version) throws IOException
Start CCSDS message.- Parameters:
root
- root element for XML filesmessageTypeKey
- key for message typeversion
- format version- Throws:
IOException
- if an I/O error occurs.
-
endMessage
public void endMessage(String root) throws IOException
End CCSDS message.- Parameters:
root
- root element for XML files- Throws:
IOException
- if an I/O error occurs.
-
writeComments
public void writeComments(List<String> comments) throws IOException
Write comment lines.- Parameters:
comments
- comments to write- Throws:
IOException
- if an I/O error occurs.
-
writeEntry
public void writeEntry(String key, String value, Unit unit, boolean mandatory) throws IOException
Write a single key/value entry.- Parameters:
key
- the keyword to writevalue
- the value to writeunit
- output unit (may be null)mandatory
- if true, null values triggers exception, otherwise they are silently ignored- Throws:
IOException
- if an I/O error occurs.
-
-