HiRISE

HiRISE.HiReport.main
Class MainPage

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

public class MainPage
extends DataProvider

Collects data for presentation on the main page


Field Summary
protected  Map<String,Integer> counts
          Counts of status values
protected  Map<String,Map<String,Integer>> grid
          phase => { status => counts }
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
MainPage()
           
 
Method Summary
 int getObservationsTotal()
          Get the total number of observations with non-null statuses
 Map<String,Map<String,Integer>> getPhaseCounts()
          Get the count of observations by phase.
 String getSQL()
          Return the query string
 Map<String,Integer> getStatusCounts()
          Get the total count of observations by status
 List<Map<String,Object>> getTodaysObservations()
          Get a list of observations expected today
 int getTodaysTotal()
          Get the total number of observations expected today
 List<Map<String,Object>> getTomorrowsObservations()
          Get a list of observations expected tomorrow
 int getTomorrowsTotal()
          Get the total number of observations expected tomorrow
 XYSeriesCollection getXYDataset()
          Return collected data for plotting
 List<Map<String,Object>> getYesterdaysObservations()
          Get a list of observations expected yesterday
 int getYesterdaysTotal()
          Get the total number of observations expected yesterday
 void init()
          Collect the data for the main page
 
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

counts

protected Map<String,Integer> counts
Counts of status values


grid

protected Map<String,Map<String,Integer>> grid
phase => { status => counts }

Constructor Detail

MainPage

public MainPage()
Method Detail

init

public void init()
          throws SQLException
Collect the data for the main page

Throws:
SQLException - Data could not be obtained

getPhaseCounts

public Map<String,Map<String,Integer>> getPhaseCounts()
Get the count of observations by phase.

Returns:
One map per phase, with values for each status

getStatusCounts

public Map<String,Integer> getStatusCounts()
Get the total count of observations by status

Returns:
values for each status

getTodaysObservations

public List<Map<String,Object>> getTodaysObservations()
Get a list of observations expected today

Returns:
One map per observation

getYesterdaysObservations

public List<Map<String,Object>> getYesterdaysObservations()
Get a list of observations expected yesterday

Returns:
One map per observation

getTomorrowsObservations

public List<Map<String,Object>> getTomorrowsObservations()
Get a list of observations expected tomorrow

Returns:
One map per observation

getTodaysTotal

public int getTodaysTotal()
Get the total number of observations expected today

Returns:
count of observations

getTomorrowsTotal

public int getTomorrowsTotal()
Get the total number of observations expected tomorrow

Returns:
count of observations

getYesterdaysTotal

public int getYesterdaysTotal()
Get the total number of observations expected yesterday

Returns:
count of observations

getObservationsTotal

public int getObservationsTotal()
Get the total number of observations with non-null statuses

Returns:
count of observations

getXYDataset

public XYSeriesCollection getXYDataset()
Return collected data for plotting

Returns:
plot data

getSQL

public String getSQL()
Return the query string

Returns:
query

HiRISE

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