- java.lang.Object
-
- spice.basic.Vector3
-
- spice.basic.PositionVector
-
- spice.basic.PositionRecord
-
public class PositionRecord extends PositionVector
Class PositionRecord represents the positions of ephemeris objects relative to other objects; position records carry along with them one-way light time.Version 1.0.0 22-DEC-2009 (NJB)
-
-
Field Summary
Fields Modifier and Type Field Description (package private) TDBDuration
lightTime
-
Constructor Summary
Constructors Constructor Description PositionRecord()
No-arguments constructor.PositionRecord(Body target, Time t, ReferenceFrame ref, AberrationCorrection abcorr, Body observer)
Construct aberration-corrected PositionRecord from ephemeris data.PositionRecord(PositionRecord position)
Copy constructor.PositionRecord(Vector3 v, TDBDuration d)
Assignment constructor.
-
Method Summary
Modifier and Type Method Description TDBDuration
getLightTime()
Get one way light time between target and observer.PositionVector
getPositionVector()
Get the position vector.java.lang.String
toString()
Create a String representation of this PositionRecord.
-
-
-
Field Detail
-
lightTime
TDBDuration lightTime
-
-
Constructor Detail
-
PositionRecord
public PositionRecord()
No-arguments constructor.
-
PositionRecord
public PositionRecord(PositionRecord position)
Copy constructor.This constructor creates a deep copy.
- Parameters:
position
- PositionRecord
-
PositionRecord
public PositionRecord(Vector3 v, TDBDuration d)
Assignment constructor.This constructor allows a caller to create a PositionRecord containing specified values.
- Parameters:
v
- Vector3d
- TDBDuration
-
PositionRecord
public PositionRecord(Body target, Time t, ReferenceFrame ref, AberrationCorrection abcorr, Body observer) throws SpiceException
Construct aberration-corrected PositionRecord from ephemeris data.- Parameters:
target
- Bodyobserver
- Bodyt
- Timeabcorr
- AberrationCorrectionref
- ReferenceFrame- Throws:
SpiceException
- exception
-
-
Method Detail
-
toString
public java.lang.String toString()
Create a String representation of this PositionRecord.- Overrides:
toString
in classPositionVector
- Returns:
- String
-
getPositionVector
public PositionVector getPositionVector() throws SpiceErrorException
Get the position vector.- Returns:
- PositionVector
- Throws:
SpiceErrorException
- exception
-
getLightTime
public TDBDuration getLightTime()
Get one way light time between target and observer.- Returns:
- TDBDuration
-
-