|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpl.mipl.mars.rmc.util.RmcElement jpl.mipl.mars.rmc.util.Solution
public class Solution
Purpose: Implementation of Solution tag from RMC file.
Copyright 2003, California Institute of Technology. ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledge. 2003.============================================================================ Modification History : ---------------------- Date Who What ---------------------------------------------------------------------------- 06/06/2003 Nick Initial Release 11/29/2007 Nick Added effective and actual SCLK attributes ============================================================================
Field Summary | |
---|---|
protected String |
actualSclk
|
protected String |
addDate
|
protected Derivation |
derivation
|
static int |
DRIVE_INDEX
|
protected String |
effectiveSclk
|
static int |
HGA_INDEX
|
protected String |
id
|
static int |
IDD_INDEX
|
protected String |
name
|
protected String[] |
offset
|
protected String[] |
orientation
|
static int |
PMA_INDEX
|
protected List |
referenceFrameIndices
|
protected String |
referenceFrameName
|
static int |
SITE_INDEX
|
protected List |
solutionIndices
|
Constructor Summary | |
---|---|
Solution()
Default constructor. |
|
Solution(Element node)
Constructor. |
|
Solution(String xml)
Constructor |
|
Solution(String id,
String name,
String addDate,
List solIndices,
String refFrameName,
List refFrameIndices,
String[] offset,
String[] orientation,
Derivation derivation)
Constructor |
|
Solution(String id,
String name,
String addDate,
List solIndices,
String refFrameName,
List refFrameIndices,
String[] offset,
String[] orientation,
Derivation derivation,
String actualSclk,
String effectiveSclk)
Constructor |
Method Summary | |
---|---|
protected boolean |
actualSclkIsDefined()
Predicate test for actual SCLK |
void |
clearReferenceFrameIndicesFrom(int index)
Remove indices starting at index parameter and greater. |
void |
clearSolutionIndicesFrom(int index)
Remove indices starting at index parameter and greater. |
int |
compareTo(Object obj)
Compares this object with the specified object for order. |
protected boolean |
derivationIsDefined()
Predicate test for derivation |
protected boolean |
effectiveSclkIsDefined()
Predicate test for effective SCLK |
boolean |
equals(Object obj)
Implementation of the equals() method. |
String |
getActualSclk()
Returns the actual SCLK value of this solution |
String |
getAddDate()
Returns the date the solution was added. |
Derivation |
getDerivation()
Returns the derivation object of the solution. |
String |
getEffectiveSclk()
Returns the effective SCLK value of this solution |
String |
getId()
Returns the id of the solution. |
String |
getName()
Returns the name of the solution. |
String |
getOffsetX()
Returns the x-offset of the solution. |
String |
getOffsetY()
Returns the y-offset of the solution. |
String |
getOffsetZ()
Returns the z-offset of the solution. |
String |
getOrientationS()
Returns the s quaternion position of the solution. |
String |
getOrientationV1()
Returns the v1 quaternion position of the solution. |
String |
getOrientationV2()
Returns the v2 quaternion position of the solution. |
String |
getOrientationV3()
Returns the v3 quaternion position of the solution. |
String |
getReferenceFrameIndex(int index)
Get value for a solution index as specified by the parameter. |
List |
getReferenceFrameIndices()
Returns the reference frame RMC of the solution. |
int |
getReferenceFrameIndicesSize()
Return the number of reference frame indices specified for this solution RMC |
String |
getReferenceFrameName()
Returns the reference frame name of the solution. |
String |
getSolutionIndex(int index)
Get value for a solution index as specified by the parameter. |
List |
getSolutionIndices()
Returns the RMC of the solution. |
int |
getSolutionIndicesSize()
Return the number of indices specified for this solution RMC |
boolean |
offsetIsDefined()
Predicate test for offset |
boolean |
orientationIsDefined()
Predicate test for orientation |
protected void |
parseCSElement(Element node)
|
protected void |
parseSolutionElement(Element node)
|
void |
setActualSclk(String actSclk)
Sets the actual SCLK of the solution. |
void |
setAddDate(String addDate)
Sets the add date of the solution. |
void |
setDerivation(Derivation derivation)
Sets the derivation of the solution. |
void |
setEffectiveSclk(String effSclk)
Sets the effective SCLK of the solution. |
void |
setId(String id)
Sets the id of the solution. |
void |
setName(String name)
Sets the name of the solution. |
void |
setOffset(String[] offset)
Sets the offset of the solution. |
void |
setOffsetX(String offsetX)
Sets the x-offset of the solution. |
void |
setOffsetY(String offsetY)
Sets the y-offset of the solution. |
void |
setOffsetZ(String offsetZ)
Sets the z-offset of the solution. |
void |
setOrientation(String[] orientation)
Sets the orientation of the solution. |
void |
setOrientationS(String orientationS)
Sets the s quaternion position of the solution. |
void |
setOrientationV1(String orientationV1)
Sets the v1 quaternion position of the solution. |
void |
setOrientationV2(String orientationV2)
Sets the v2 quaternion position of the solution. |
void |
setOrientationV3(String orientationV3)
Sets the v3 quaternion position of the solution. |
void |
setReferenceFrameIndices(List referenceFrameIndices)
Sets the name of the solution. |
void |
setReferenceFrameName(String referenceFrameName)
Sets the reference frame name of the solution. |
void |
setSolutionIndices(List solutionIndices)
Sets the RMC of the solution. |
Element |
toDOM()
Returns a DOM tree structure of a Solution element including nested elements. |
String |
toString()
Prints this object's id, name, and RMC |
String |
toXML()
Returns an XML-formatted string of this object. |
Methods inherited from class jpl.mipl.mars.rmc.util.RmcElement |
---|
createEmptyDocument |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String id
protected String name
protected String addDate
protected List solutionIndices
protected String referenceFrameName
protected List referenceFrameIndices
protected String[] offset
protected String[] orientation
protected Derivation derivation
protected String actualSclk
protected String effectiveSclk
public static final int SITE_INDEX
public static final int DRIVE_INDEX
public static final int IDD_INDEX
public static final int PMA_INDEX
public static final int HGA_INDEX
Constructor Detail |
---|
public Solution()
public Solution(String xml)
xml
- String representation of the XML element Solutionpublic Solution(String id, String name, String addDate, List solIndices, String refFrameName, List refFrameIndices, String[] offset, String[] orientation, Derivation derivation, String actualSclk, String effectiveSclk)
id
- Solution id.name
- Solution name.addDate
- Date of solution creation (format: yyyy-MM-ddTHH:mm:ssZ)solIndices
- A list of the RMC values.refFrameName
- Name of the reference framerefFrameIndices
- RMC of the reference frameoffset
- String array of length 3 containing x,y,z offsetsorientation
- String array of length 4 containing s,v1,v2,v3 quaternion valuesderivation
- Reference to Derivation object, null if noneactualSclk
- Actual space-craft clock value (SCLK)effectiveSclk
- Effective space-craft clock value (SCLK)public Solution(String id, String name, String addDate, List solIndices, String refFrameName, List refFrameIndices, String[] offset, String[] orientation, Derivation derivation)
id
- Solution id.name
- Solution name.addDate
- Date of solution creation (format: yyyy-MM-ddTHH:mm:ssZ)solIndices
- A list of the RMC values.refFrameName
- Name of the reference framerefFrameIndices
- RMC of the reference frameoffset
- String array of length 3 containing x,y,z offsetsorientation
- String array of length 4 containing s,v1,v2,v3 quaternion valuesderivation
- Reference to Derivation object, null if nonepublic Solution(Element node)
node
- DOM Element of type (i) GROUP from EDR metadata DOM,
(ii) PROPERTY from metadata DOM, or (iii) solution (copy constructor).Method Detail |
---|
protected void parseSolutionElement(Element node)
protected void parseCSElement(Element node)
public String getName()
public void setName(String name)
name
- Name of the solutionpublic String getId()
public void setId(String id)
id
- Id of the solutionpublic String getAddDate()
public void setAddDate(String addDate)
addDate
- Add date of the solution (format: yyyy-MM-ddTHH:mm:ssZ)public List getSolutionIndices()
public int getSolutionIndicesSize()
public String getSolutionIndex(int index)
index
- Subscript of the index value starting from 1.
public void clearSolutionIndicesFrom(int index)
index
- Index at which reseting will begin.public void setSolutionIndices(List solutionIndices)
solutionIndices
- List of the RMC values of the solutionpublic String getReferenceFrameName()
public void setReferenceFrameName(String referenceFrameName)
referenceFrameName
- Reference frame name of the solutionpublic int getReferenceFrameIndicesSize()
public List getReferenceFrameIndices()
public void setReferenceFrameIndices(List referenceFrameIndices)
name
- Name of the solutionpublic String getReferenceFrameIndex(int index)
index
- Subscript of the index value starting from 1.
public void clearReferenceFrameIndicesFrom(int index)
public void setOffset(String[] offset)
offset
- String array of length 3 of the offset of the solutionpublic String getOffsetX()
public void setOffsetX(String offsetX)
offsetX
- X-offset of the solutionpublic String getOffsetY()
public void setOffsetY(String offsetY)
offsetY
- Y-offset of the solutionpublic String getOffsetZ()
public void setOffsetZ(String offsetZ)
offsetZ
- Z-offset of the solutionpublic void setOrientation(String[] orientation)
offset
- String array of length 4 of the orientation of the solutionpublic String getOrientationS()
public void setOrientationS(String orientationS)
orientationS
- S-quaternion position of the solutionpublic String getOrientationV1()
public void setOrientationV1(String orientationV1)
orientationV1
- V1-quaternion position of the solutionpublic String getOrientationV2()
public void setOrientationV2(String orientationV2)
orientationV2
- V2-quaternion position of the solutionpublic String getOrientationV3()
public void setOrientationV3(String orientationV3)
orientationV3
- V3-quaternion position of the solutionpublic void setDerivation(Derivation derivation)
derivation
- Derivation of the solutionpublic Derivation getDerivation()
public void setActualSclk(String actSclk)
actSclk
- effective SCLKpublic String getActualSclk()
public void setEffectiveSclk(String effSclk)
effSclk
- effective SCLKpublic String getEffectiveSclk()
public boolean offsetIsDefined()
public boolean orientationIsDefined()
protected boolean derivationIsDefined()
protected boolean actualSclkIsDefined()
protected boolean effectiveSclkIsDefined()
public String toXML()
toXML
in class RmcElement
public Element toDOM()
toDOM
in class RmcElement
public int compareTo(Object obj)
compareTo
in interface Comparable
compareTo
in class RmcElement
obj
- the Object to be compared.
public boolean equals(Object obj)
equals
in class Object
the
- Object to be compared
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |