JNISpice
version 2.0.0

spice.basic
Class PositionRecord

java.lang.Object
  extended by spice.basic.Vector3
      extended by spice.basic.PositionVector
          extended by 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)


Constructor Summary
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
 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.
 
Methods inherited from class spice.basic.Vector3
add, assign, cross, dist, dot, getElt, hat, isZero, lcom, lcom, negate, norm, perp, proj, rotate, rotate, scale, sep, sub, toArray, ucross
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PositionRecord

public PositionRecord()
No-arguments constructor.


PositionRecord

public PositionRecord(PositionRecord position)
Copy constructor.

This constructor creates a deep copy.


PositionRecord

public PositionRecord(Vector3 v,
                      TDBDuration d)
Assignment constructor.

This constructor allows a caller to create a PositionRecord containing specified values.


PositionRecord

public PositionRecord(Body target,
                      Time t,
                      ReferenceFrame ref,
                      AberrationCorrection abcorr,
                      Body observer)
               throws SpiceException
Construct aberration-corrected PositionRecord from ephemeris data.

Throws:
SpiceException
Method Detail

toString

public java.lang.String toString()
Create a String representation of this PositionRecord.

Overrides:
toString in class PositionVector

getPositionVector

public PositionVector getPositionVector()
                                 throws SpiceErrorException
Get the position vector.

Throws:
SpiceErrorException

getLightTime

public TDBDuration getLightTime()
Get one way light time between target and observer.


JNISpice
version 2.0.0

JNISpice Alpha Test Version 2.0.0 28-JAN-2017 (NJB)