public class MainPage extends DataProvider
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Integer> |
counts
Counts of status values
|
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Integer>> |
grid
phase => { status => counts }
|
static java.lang.String |
ID
CVS ID
|
Constructor and Description |
---|
MainPage() |
Modifier and Type | Method and Description |
---|---|
int |
getObservationsTotal()
Get the total number of observations with non-null statuses
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Integer>> |
getPhaseCounts()
Get the count of observations by phase.
|
java.lang.String |
getSQL()
Return the query string
|
java.util.Map<java.lang.String,java.lang.Integer> |
getStatusCounts()
Get the total count of observations by status
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getTodaysObservations()
Get a list of observations expected today
|
int |
getTodaysTotal()
Get the total number of observations expected today
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getTomorrowsObservations()
Get a list of observations expected tomorrow
|
int |
getTomorrowsTotal()
Get the total number of observations expected tomorrow
|
org.jfree.data.xy.XYSeriesCollection |
getXYDataset()
Return collected data for plotting
|
java.util.List<java.util.Map<java.lang.String,java.lang.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
|
getConnection, setConnection
public static final java.lang.String ID
protected java.util.Map<java.lang.String,java.lang.Integer> counts
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Integer>> grid
public void init() throws java.sql.SQLException
java.sql.SQLException
- Data could not be obtainedpublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Integer>> getPhaseCounts()
public java.util.Map<java.lang.String,java.lang.Integer> getStatusCounts()
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getTodaysObservations()
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getYesterdaysObservations()
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getTomorrowsObservations()
public int getTodaysTotal()
public int getTomorrowsTotal()
public int getYesterdaysTotal()
public int getObservationsTotal()
public org.jfree.data.xy.XYSeriesCollection getXYDataset()
public java.lang.String getSQL()
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona