Package org.orekit.files.ilrs
Class StreamingCpfWriter.Segment
- java.lang.Object
-
- org.orekit.files.ilrs.StreamingCpfWriter.Segment
-
- All Implemented Interfaces:
OrekitFixedStepHandler
- Enclosing class:
- StreamingCpfWriter
public class StreamingCpfWriter.Segment extends Object implements OrekitFixedStepHandler
A writer for a segment of a CPF.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinish(SpacecraftState finalState)Finalize propagation.voidhandleStep(SpacecraftState currentState)Handle the current step.voidwriteEphemerisLine(TimeStampedPVCoordinates pv)Write ephemeris lines.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.propagation.sampling.OrekitFixedStepHandler
init
-
-
-
-
Method Detail
-
handleStep
public void handleStep(SpacecraftState currentState)
Handle the current step..- Specified by:
handleStepin interfaceOrekitFixedStepHandler- Parameters:
currentState- current state at step time
-
finish
public void finish(SpacecraftState finalState)
Finalize propagation..- Specified by:
finishin interfaceOrekitFixedStepHandler- Parameters:
finalState- state at propagation end
-
writeEphemerisLine
public void writeEphemerisLine(TimeStampedPVCoordinates pv) throws IOException
Write ephemeris lines.If
velocityFlagis equals to true, both position and velocity records are written. Otherwise, only the position data are used.- Parameters:
pv- the time, position, and velocity to write.- Throws:
IOException- if the output stream throws one while writing.
-
-