public class StateVector extends PointingElement
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_UNIT
km
|
static java.lang.String |
FRAME_FIELD
frame
|
static java.lang.String |
LANDMARK_FIELD
landmark
|
static java.lang.String |
NAME_TAG
name
|
static java.lang.String |
ORIGIN_FIELD
origin
|
static java.lang.String |
POSITION_FIELD
position
|
static java.lang.String |
REF_TAG
ref
|
static java.lang.String |
UNITS_TAG
units
|
static java.lang.String |
X_FIELD
x
|
static java.lang.String |
Y_FIELD
y
|
static java.lang.String |
Z_FIELD
z
|
Constructor and Description |
---|
StateVector(PointingElement org) |
StateVector(java.lang.String type,
java.lang.String ref)
Creates a new StateVector refereed to a solar system object or landmarks defined in the PDFM
|
StateVector(java.lang.String type,
java.lang.String origin,
java.lang.String frame,
float x,
float y,
float z)
Definition of a state vector that represents a landmark
|
StateVector(java.lang.String type,
java.lang.String landmark,
java.lang.String origin,
java.lang.String frame,
float x,
float y,
float z)
Definition of a state vector that represents a landmark
|
StateVector(java.lang.String type,
java.lang.String origin,
java.lang.String frame,
java.lang.String xUnit,
float x,
java.lang.String yUnit,
float y,
java.lang.String zUnit,
float z)
Definition of a state vector that represents a landmark
|
StateVector(java.lang.String type,
java.lang.String origin,
java.lang.String frame,
java.lang.String x,
java.lang.String y,
java.lang.String z)
Definition of a state vector that represents a landmark
|
StateVector(java.lang.String type,
java.lang.String landmark,
java.lang.String origin,
java.lang.String frame,
java.lang.String x,
java.lang.String y,
java.lang.String z)
Definition of a state vector that represents a landmark
|
Modifier and Type | Method and Description |
---|---|
StateVector |
copy() |
java.lang.String |
getLandMark()
Get the name of the landmark
|
java.lang.String |
getOrigin()
Get the origin component of the landmark
|
java.lang.String |
getRef()
Get the referenced solar system object or landmark
|
java.lang.String |
getUnit(java.lang.String field) |
java.lang.String |
getUnitX()
Get the unit where X component of the position of the landmark is expressed
|
java.lang.String |
getUnitY()
Get the unit where Y component of the position of the landmark is expressed
|
java.lang.String |
getUnitZ()
Get the unit where Z component of the position of the landmark is expressed
|
float |
getX()
Get the X component of the position of the landmark
|
float |
getX(java.lang.String unit) |
float |
getY()
Get the Y component of the position of the landmark
|
float |
getY(java.lang.String unit) |
float |
getZ()
Get the Y component of the position of the landmark
|
float |
getZ(java.lang.String unit) |
void |
setLandMark(java.lang.String name) |
void |
setOrigin(java.lang.String origin)
Set the origin component of the landmark
|
void |
setRef(java.lang.String ref)
Set the referenced solar system object or landmark
|
void |
setUnit(java.lang.String field,
java.lang.String unit) |
void |
setX(java.lang.String unit,
float x)
Set the X component of the position of the landmark
|
void |
setY(java.lang.String unit,
float y)
Set the Y component of the position of the landmark
|
void |
setZ(java.lang.String unit,
float z)
Set the Z component of the position of the landmark
|
java.lang.String |
toXml(int indent)
Write a XML representation of this element
|
addAttribute, addChild, asDataset, copyFrom, equals, getAttribute, getAttributes, getChild, getChildren, getDescription, getFirstLevelTextContent, getName, getValue, hasAttributtes, hasChildren, readFrom, regenerate, removeAttribute, removeAttribute, setDescription, setValue, toString, toStringParameter, validate
public static java.lang.String REF_TAG
public static java.lang.String POSITION_FIELD
public static java.lang.String FRAME_FIELD
public static java.lang.String ORIGIN_FIELD
public static java.lang.String X_FIELD
public static java.lang.String Y_FIELD
public static java.lang.String Z_FIELD
public static java.lang.String DEFAULT_UNIT
public static java.lang.String LANDMARK_FIELD
public static java.lang.String UNITS_TAG
public static java.lang.String NAME_TAG
public StateVector(PointingElement org)
public StateVector(java.lang.String type, java.lang.String ref)
type
- Type of the stateVectorref
- solar system object or landmarks defined in the PDFMpublic StateVector(java.lang.String type, java.lang.String landmark, java.lang.String origin, java.lang.String frame, java.lang.String x, java.lang.String y, java.lang.String z)
type
- The type of state vector. Subclasses will hardcode this typelandmark
- The name of the landmarkorigin
- The originframe
- The frame where the landmark is definedx
- The X component of the position of the landmark. It must be expressed in km.y
- The Y component of the position of the landmark. It must be expressed in km.z
- The Z component of the position of the landmark. It must be expressed in km.public StateVector(java.lang.String type, java.lang.String origin, java.lang.String frame, java.lang.String x, java.lang.String y, java.lang.String z)
type
- The type of state vector. Subclasses will harcode this typeorigin
- The originframe
- The frame where the landmark is definedx
- The X component of the position of the landmark. It must be expressed in km.y
- The Y component of the position of the landmark. It must be expressed in km.z
- The Z component of the position of the landmark. It must be expressed in km.public StateVector(java.lang.String type, java.lang.String landmark, java.lang.String origin, java.lang.String frame, float x, float y, float z)
type
- The type of state vector. Subclasses will harcode this typelandmark
- The name of the landmarkorigin
- The originframe
- The frame where the landmark is definedx
- The X component of the position of the landmark. It must be expressed in km.y
- The Y component of the position of the landmark. It must be expressed in km.z
- The Z component of the position of the landmark. It must be expressed in km.public StateVector(java.lang.String type, java.lang.String origin, java.lang.String frame, java.lang.String xUnit, float x, java.lang.String yUnit, float y, java.lang.String zUnit, float z)
type
- The type of state vector. Subclasses will harcode this typeorigin
- The originframe
- The frame where the landmark is definedxUnit
- The unit that the X component of the landmark is expressedx
- The X component of the position of the landmark.yUnit
- The unit that the Y component of the landmark is expressedy
- The Y component of the position of the landmark.zUnit
- The unit that the Z component of the landmark is expressedz
- The Z component of the position of the landmark.public StateVector(java.lang.String type, java.lang.String origin, java.lang.String frame, float x, float y, float z)
type
- The type of state vector. Subclasses will harcode this typeorigin
- The originframe
- The frame where the landmark is definedx
- The X component of the position of the landmark. It must be expressed in km.y
- The Y component of the position of the landmark. It must be expressed in km.z
- The Z component of the position of the landmark. It must be expressed in km.public StateVector copy()
copy
in class PointingElement
public void setRef(java.lang.String ref)
ref
- solar system object or landmarks defined in the PDFMpublic java.lang.String getRef()
public void setOrigin(java.lang.String origin)
origin
- public java.lang.String getOrigin()
public void setX(java.lang.String unit, float x)
unit
- The unit that the X component of the position of the landmark is expressedx
- the X component of the position of the landmarkpublic void setY(java.lang.String unit, float y)
unit
- The unit that the Y component of the position of the landmark is expressedy
- the Y component of the position of the landmarkpublic void setZ(java.lang.String unit, float z)
unit
- The unit that the Z component of the position of the landmark is expressedz
- the Z component of the position of the landmarkpublic float getX()
public float getX(java.lang.String unit)
public float getY()
public float getY(java.lang.String unit)
public float getZ()
public float getZ(java.lang.String unit)
public java.lang.String getUnitX()
public java.lang.String getUnitY()
public java.lang.String getUnitZ()
public java.lang.String getLandMark()
public void setLandMark(java.lang.String name)
public java.lang.String getUnit(java.lang.String field)
public void setUnit(java.lang.String field, java.lang.String unit)
public java.lang.String toXml(int indent)
PointingElement
toXml
in class PointingElement
indent
- The initial indent to be applied to the XML