public class StreamingAemWriter.AEMSegment extends Object implements OrekitFixedStepHandler
Modifier and Type | Method and Description |
---|---|
void |
handleStep(SpacecraftState currentState,
boolean isLast)
Handle the current step.
|
void |
init(SpacecraftState s0,
AbsoluteDate t,
double step)
Initialize step handler at the start of a propagation.
|
void |
writeAttitudeEphemerisLine(TimeStampedAngularCoordinates attitude,
boolean isFirst,
String attitudeName,
RotationOrder rotationOrder)
Write a single attitude ephemeris line according to section 4.2.4 and Table 4-4.
|
void |
writeMetadata()
Write the ephemeris segment metadata.
|
public void writeMetadata() throws IOException
See StreamingAemWriter
for a description of how the metadata is
set.
IOException
- if the output stream throws one while writing.public void writeAttitudeEphemerisLine(TimeStampedAngularCoordinates attitude, boolean isFirst, String attitudeName, RotationOrder rotationOrder) throws IOException
attitude
- the attitude information for a given date.isFirst
- true if QC is the first element in the attitude dataattitudeName
- name of the attitude typerotationOrder
- rotation orderIOException
- if the output stream throws one while writing.public void init(SpacecraftState s0, AbsoluteDate t, double step)
This method is called once at the start of the propagation. It may be used by the step handler to initialize some internal data if needed.
Sets the Keyword.START_TIME
and Keyword.STOP_TIME
in this
segment's metadata if not already set by the user. Then calls writeMetadata()
to start the segment.
init
in interface OrekitFixedStepHandler
s0
- initial statet
- target time for the integrationstep
- the duration in seconds of the fixed step. This value is
positive even if propagation is backwards.public void handleStep(SpacecraftState currentState, boolean isLast)
handleStep
in interface OrekitFixedStepHandler
currentState
- current state at step timeisLast
- if true, this is the last integration stepCopyright © 2002-2020 CS GROUP. All rights reserved.