HiRISE

HiRISE.HiReport.main
Class ObservationNavigation

java.lang.Object
  extended by HiRISE.HiReport.DataProvider
      extended by HiRISE.HiReport.main.ObservationNavigation

public class ObservationNavigation
extends DataProvider

Looks up the previous and subsequent observations (if any) for a given observation ID.


Nested Class Summary
static class ObservationNavigation.Direction
          Allowed directions
 
Field Summary
static String ID
          CVS ID
 
Fields inherited from class HiRISE.HiReport.DataProvider
Anaglyph, CCD, Cycles, DTM, EDR, FS, Geo, HiP, HiRISE_ROOT, Jit, logger, Mars_Years, Obs, Orbits, PAP, PDTM, PEDR, PHiP, PPL, PPL_map, PRDR, PS, PXP, RDR, RS1, RS2, SO, SOP, SOPO, SOPO_map, SOST, SOST_map, SR, ST, Tags, Web, XP
 
Constructor Summary
ObservationNavigation()
           
 
Method Summary
 String getObservationID()
          Return the observation ID that should be navigated to.
 String getSQL()
          Get the query used
 void init(String obs, ObservationNavigation.Direction go)
          Given the input form, performs a query to determine the observation ID to navigate to.
 
Methods inherited from class HiRISE.HiReport.DataProvider
getConnection, setConnection
 
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

ObservationNavigation

public ObservationNavigation()
Method Detail

init

public void init(String obs,
                 ObservationNavigation.Direction go)
          throws SQLException
Given the input form, performs a query to determine the observation ID to navigate to. If there is none (current observation is the first or last), that observation ID is returned.

Parameters:
obs - current observation
go - direction
Throws:
SQLException - Could not determine navigation

getObservationID

public String getObservationID()
Return the observation ID that should be navigated to.

Returns:
Observation ID

getSQL

public String getSQL()
Get the query used

Returns:
SQL

HiRISE

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