public class TimeChartData extends AbstractCruiseControlChartData implements ChartPostProcessor {
private static final long serialVersionUID = -5159867264828131088L;
public Object produceDataset(Map params) throws DatasetProduceException {
BuildInfoSummary summary = (BuildInfoSummary) params.get("buildInfo");
TimeSeries brokenSeries = new TimeSeries("Broken Builds", Minute.class);
TimeSeries goodSeries = new TimeSeries("Good Builds", Minute.class);
for (Iterator iter = summary.iterator(); iter.hasNext();) {
BuildInfo buildInfo = (BuildInfo) iter.next();
Date buildTime = buildInfo.getBuildDate();
double timeValue = extractTimeOfDay(buildTime);
Minute timePeriod = new Minute(buildTime);
TimeSeries seriesToAddTo = buildInfo.isSuccessful() ? goodSeries