HiRISE

HiRISE.HiReport.uplink
Class StereoHalf

java.lang.Object
  extended by HiRISE.HiReport.uplink.StereoHalf

public class StereoHalf
extends Object

Contains the observation and suggestion information for one half of a stereo pair.


Field Summary
static String ID
          CVS ID
 
Constructor Summary
StereoHalf(int suggestion, String observation, String status, Float incidenceAngle, Float rollAngle, boolean retired, int order)
          Create a new stereo half with the provided parameters.
 
Method Summary
 Double getCenterLatitude()
          Get the center latitude
 Double getCenterLongitude()
          Get the center longitude (0-360)
 Float getIncidenceAngle()
          Get the incidence angle.
 String getObservation()
          Get the observation ID.
 int getOrder()
          Get the intended creation order.
 Float getRollAngle()
          Get the roll angle.
 Double getSpacecraftLatitude()
          Get the spacecraft's nadir latitude
 Double getSpacecraftLongitude()
          Get the spacecraft's nadir longitude
 String getStatus()
          Get the observation Status.
 int getSuggestion()
          Get the suggestion ID.
 Double getTargetDistance()
          Get the target distance (from the spacecraft)
 Timestamp getTimestamp()
          Get the time.
 boolean isRetired()
          Get the retirement state (default false).
 void setImageCenter(Double centerLatitude, Double centerLongitude)
          Set the image center
 void setSpacecraftPosition(Double spacecraftLatitude, Double spacecraftLongitude)
          Set the spacecraft position
 void setTargetDistance(Double targetDistance)
          Set the spacecraft-target distance
 void setTimestamp(Timestamp timestamp)
          Set the timestamp for the half
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
CVS ID

See Also:
Constant Field Values
Constructor Detail

StereoHalf

public StereoHalf(int suggestion,
                  String observation,
                  String status,
                  Float incidenceAngle,
                  Float rollAngle,
                  boolean retired,
                  int order)
Create a new stereo half with the provided parameters.

Parameters:
suggestion - ID
observation - ID, or null of no observation planned
status - from planning table or null
incidenceAngle - estimated, actual or null
rollAngle - estimated, actual or null
retired - true if suggestion retired
order - sequence value
Method Detail

getOrder

public int getOrder()
Get the intended creation order. This value can be wrong in certain situations, so is probably useless.

Returns:
sequence value

getCenterLatitude

public Double getCenterLatitude()
Get the center latitude

Returns:
center lat degrees or null if undefined

getCenterLongitude

public Double getCenterLongitude()
Get the center longitude (0-360)

Returns:
center lon degrees or null if undefined

getTargetDistance

public Double getTargetDistance()
Get the target distance (from the spacecraft)

Returns:
target distance km or null if undefined

getSpacecraftLatitude

public Double getSpacecraftLatitude()
Get the spacecraft's nadir latitude

Returns:
spacecraft latitude degrees or null if undefined

getSpacecraftLongitude

public Double getSpacecraftLongitude()
Get the spacecraft's nadir longitude

Returns:
spacecraft longitude degrees or null if undefined

setImageCenter

public void setImageCenter(Double centerLatitude,
                           Double centerLongitude)
Set the image center

Parameters:
centerLatitude - degrees
centerLongitude - degrees

setTargetDistance

public void setTargetDistance(Double targetDistance)
Set the spacecraft-target distance

Parameters:
targetDistance - km

setSpacecraftPosition

public void setSpacecraftPosition(Double spacecraftLatitude,
                                  Double spacecraftLongitude)
Set the spacecraft position

Parameters:
spacecraftLatitude - degrees
spacecraftLongitude - degrees

setTimestamp

public void setTimestamp(Timestamp timestamp)
Set the timestamp for the half

Parameters:
timestamp - acquisition time

getObservation

public String getObservation()
Get the observation ID.

Returns:
ID if defined or null

getStatus

public String getStatus()
Get the observation Status.

Returns:
status if defined or null

getSuggestion

public int getSuggestion()
Get the suggestion ID.

Returns:
ID if defined, or -1

getIncidenceAngle

public Float getIncidenceAngle()
Get the incidence angle.

Returns:
Angle if defined, otherwise null

getRollAngle

public Float getRollAngle()
Get the roll angle.

Returns:
Angle if defined or null

isRetired

public boolean isRetired()
Get the retirement state (default false).

Returns:
retirement state

getTimestamp

public Timestamp getTimestamp()
Get the time.

Returns:
time if defined or null.

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona