OrekitFixedStepHandler
public class StreamingOemWriter.Segment extends Object implements OrekitFixedStepHandler
Modifier and Type | Method | Description |
---|---|---|
void |
handleStep(SpacecraftState s,
boolean isLast) |
Handle the current step.
|
void |
init(SpacecraftState s0,
AbsoluteDate t,
double step) |
Initialize step handler at the start of a propagation.
|
void |
writeEphemerisLine(TimeStampedPVCoordinates pv) |
Write a single ephemeris line according to section 5.2.4.
|
void |
writeMetadata() |
Write the ephemeris segment metadata.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
public void writeMetadata() throws IOException
See StreamingOemWriter
for a description of how the metadata is
set.
IOException
- if the output stream throws one while writing.public void writeEphemerisLine(TimeStampedPVCoordinates pv) throws IOException
pv
- the time, position, and velocity to write.IOException
- if the output stream throws one while writing.public void init(SpacecraftState s0, AbsoluteDate t, double step) throws OrekitException
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.
The default implementation currently calls the deprecated
OrekitFixedStepHandler.init(SpacecraftState, AbsoluteDate)
which does nothing by
default. When that method is removed the default implementation will do
nothing.
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.OrekitException
- if step handler cannot be initializedpublic void handleStep(SpacecraftState s, boolean isLast) throws OrekitException
OrekitFixedStepHandler
handleStep
in interface OrekitFixedStepHandler
s
- current state at step timeisLast
- if true, this is the last integration stepOrekitException
- if step cannot be handledCopyright © 2002-2018 CS Systèmes d'information. All rights reserved.