org.hackystat.projectbrowser.page.sensordata
Class SensorDataTableRowModel

java.lang.Object
  extended by org.hackystat.projectbrowser.page.sensordata.SensorDataTableRowModel
All Implemented Interfaces:
java.io.Serializable

public class SensorDataTableRowModel
extends java.lang.Object
implements java.io.Serializable

A model for an individual row in the sensor data table.

Author:
Philip Johnson
See Also:
Serialized Form

Constructor Summary
SensorDataTableRowModel(org.hackystat.sensorbase.resource.projects.jaxb.ProjectSummary summary)
          Creates a row given a project summary for a given day.
 
Method Summary
 java.lang.String getDayString()
          Returns a string indicating the day associated with this row.
 java.util.List<org.hackystat.sensorbase.resource.projects.jaxb.SensorDataSummary> getSensorDataSummaryList(java.lang.String sdt)
          Returns a list of SensorDataSummary instances associated with the passed sdt.
 javax.xml.datatype.XMLGregorianCalendar getStartTime()
          Returns the start time for this day.
 int getTotal()
          Returns the total number of sensor data instances sent on this day.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SensorDataTableRowModel

public SensorDataTableRowModel(org.hackystat.sensorbase.resource.projects.jaxb.ProjectSummary summary)
Creates a row given a project summary for a given day.

Parameters:
summary - The ProjectSummary instance.
Method Detail

getDayString

public java.lang.String getDayString()
Returns a string indicating the day associated with this row.

Returns:
The day as a string.

getStartTime

public javax.xml.datatype.XMLGregorianCalendar getStartTime()
Returns the start time for this day.

Returns:
The start time.

getTotal

public int getTotal()
Returns the total number of sensor data instances sent on this day.

Returns:
The total number of sensor data instances.

getSensorDataSummaryList

public java.util.List<org.hackystat.sensorbase.resource.projects.jaxb.SensorDataSummary> getSensorDataSummaryList(java.lang.String sdt)
Returns a list of SensorDataSummary instances associated with the passed sdt.

Parameters:
sdt - The sdt of interest.
Returns:
The SensorDataSummary instances associated with this SDT.