|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.lanl.Web.SyndromeReport
| Nested Class Summary | |
static class |
SyndromeReport.CalendarComparator
|
static class |
SyndromeReport.PageStats
Holder class for the results of a Page's statistic computation. |
| Constructor Summary | |
SyndromeReport()
Creates new SyndromeReport with default chart (JFreeChart) |
|
SyndromeReport(JFreeChartGenericChart chart)
Creates new SyndromeReport with user specified chart |
|
| Method Summary | |
void |
addField(java.lang.String field)
add field for display |
static void |
expandCountsMap(java.util.TreeMap calendars)
Fill in the missing slots in a Calendar-to-Integer mapping with zeros. |
java.lang.String |
getAllRecords()
return XMl string of all contained records |
java.lang.String |
getChart(java.lang.String[] facilities,
java.lang.String syndromeName,
java.lang.String start,
java.lang.String stop,
boolean fullData)
Compute the time history chart |
org.w3c.dom.Document |
getDom(int no)
return Dom representation of specified record |
java.util.Vector |
getFields()
return the fields labels |
DateGraphGenerator[] |
getGenerators()
Get the generators used to produce the graph data. |
int |
getInterval()
Get the chart interval as a date code from java.util.Calendar. |
int |
getNumber()
return the number of observations that were found |
org.w3c.dom.Document |
getObsById(int no)
get the ObservationId associated with a data element |
java.util.ArrayList |
getObservations(java.lang.String[] facilities,
java.lang.String syndromeName,
java.lang.String start,
java.lang.String stop,
boolean fullData)
Get observations from the server, merging results from multiple facilities. |
org.omg.DsObservationAccess.ObservationDataStruct[] |
getObservations(java.lang.String facility,
java.lang.String syndromeName,
java.lang.String start,
java.lang.String stop,
boolean fullData)
get the observations from the server |
java.util.TreeSet |
getPageStatisticsByDay(java.lang.String syndrome,
java.util.Calendar t0Date,
java.util.Calendar endDate)
Get an ordered set of page statistics for the current observations (which are obtained from CountsDaemon) |
java.lang.String |
getRangedChart(java.lang.String[] facilities,
java.lang.String syndromeName,
java.lang.String start,
java.lang.String stop,
boolean fullData)
Get a chart with control chart information superimposed. |
java.lang.String |
getRecord(int no)
return XML string of the specified record |
java.util.Vector |
getRecords()
return a Collection of Events organized by row with date/syndrome/facility/clinician in the row |
java.util.TreeMap |
getSortedCountsByDay()
Get an ordered mapping of calendars to Integers containing the number of counts found on that date in the given observation data |
static java.util.TreeMap |
getSortedCountsByDay(org.omg.DsObservationAccess.ObservationDataStruct[] observations)
Get an ordered mapping of calendars to Integers containing the number of counts found on that date in the given observation data |
java.lang.String |
getStackedChart(java.lang.String[] facilities,
java.lang.String[] syndromeNames,
java.lang.String start,
java.lang.String stop,
boolean fullData)
Compute the time history chart |
static java.util.ArrayList |
removeDuplicates(java.util.ArrayList observations)
Remove duplicate observations (as determined by the OBSERVATION_ID) from the data set, keeping only the most recent (as determined by DATE_RECORDED) |
void |
setCoas(COAS coas)
set the COAS server |
void |
setFields(java.lang.String[] inFields)
replace the fields with these (but retain Date_Time as first field no matter what) |
void |
setInterval(java.lang.String interval)
set the Interval |
void |
setPlotType(java.lang.String plotType)
set the plot type |
void |
setProperties(java.util.Properties props)
set the Properties |
void |
setWriteDirectory(java.lang.String writeDirectory)
set the write Directory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SyndromeReport()
public SyndromeReport(JFreeChartGenericChart chart)
| Method Detail |
public void setProperties(java.util.Properties props)
props - Propertiespublic void setCoas(COAS coas)
coas - COAS serverpublic void setInterval(java.lang.String interval)
interval - determines DAY, WEEK, or MONTH for time binspublic int getInterval()
public void setWriteDirectory(java.lang.String writeDirectory)
writeDirectory - Where to write the plotpublic void setPlotType(java.lang.String plotType)
plotType - String with the plot typepublic void addField(java.lang.String field)
public java.util.Vector getFields()
public int getNumber()
public void setFields(java.lang.String[] inFields)
inFields -
public org.omg.DsObservationAccess.ObservationDataStruct[] getObservations(java.lang.String facility,
java.lang.String syndromeName,
java.lang.String start,
java.lang.String stop,
boolean fullData)
public java.util.ArrayList getObservations(java.lang.String[] facilities,
java.lang.String syndromeName,
java.lang.String start,
java.lang.String stop,
boolean fullData)
facilities - List of facilities to get data for, or null to get
all facilities.syndromeName - Syndrome name to get observations for.start - Start of interval.stop - End of interval.fullData - Whether to return full observation data (otherwise
return qualifiers only).
public java.lang.String getChart(java.lang.String[] facilities,
java.lang.String syndromeName,
java.lang.String start,
java.lang.String stop,
boolean fullData)
syndromeName - Syndrome to be looked upstart - begining of intervalstop - end of interval
public java.lang.String getRangedChart(java.lang.String[] facilities,
java.lang.String syndromeName,
java.lang.String start,
java.lang.String stop,
boolean fullData)
facilities - Facilities to get data for.syndromeName - Syndrome name to plotstart - Beginning of intervalstop - End of intervalfullData - Whether to query full observation data (not just
qualifiers)
public java.lang.String getStackedChart(java.lang.String[] facilities,
java.lang.String[] syndromeNames,
java.lang.String start,
java.lang.String stop,
boolean fullData)
facilities - Facilities to get data for.syndromeNames - Syndromes to be looked upstart - begining of intervalstop - end of intervalfullData - Whether to query full observation data (not just
qualifiers)
public static java.util.ArrayList removeDuplicates(java.util.ArrayList observations)
public java.util.Vector getRecords()
public java.lang.String getRecord(int no)
no - record number to be retrievedpublic org.w3c.dom.Document getDom(int no)
no - of record to be returnedpublic org.w3c.dom.Document getObsById(int no)
no -
public DateGraphGenerator[] getGenerators()
public java.util.TreeMap getSortedCountsByDay()
public static java.util.TreeMap getSortedCountsByDay(org.omg.DsObservationAccess.ObservationDataStruct[] observations)
public static void expandCountsMap(java.util.TreeMap calendars)
public java.util.TreeSet getPageStatisticsByDay(java.lang.String syndrome,
java.util.Calendar t0Date,
java.util.Calendar endDate)
syndrome - Syndrome name to get Page's statistics fort0Date - Date to start Page calculations atendDate - Date to stop Page calculations atpublic java.lang.String getAllRecords()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||