use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.
the class ProcessAnalysisPage method getTypeTimePctSet.
private ResultSet getTypeTimePctSet(ChartData chartData, PhaseType type) {
ResultSet data = chartData.getEnactmentResultSet("Percent_Units");
writePhaseTimePct(data, 1, type);
return data;
}
use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.
the class PlanAnalysisPage method getSizeVsTime.
@//
Chart(//
id = "sizeVsTime", //
type = "xy", //
params = "units", titleKey = "Plan.Size_Vs_Time_FMT", format = "autoZero=none")
public ResultSet getSizeVsTime(ChartData chartData) {
String units = chartData.chartArgs[0];
ResultSet data = chartData.getEnactmentResultSet("Plan.Size_Scatter_Actual_FMT", "Plan.Time_Scatter_Actual");
for (int row = data.numRows(); row > 0; row--) {
Enactment e = (Enactment) data.getRowObj(row);
data.setData(row, 1, num(e.actualSize(units)));
data.setData(row, 2, num(e.actualTime() / 60));
}
return data;
}
use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.
the class PlanAnalysisPage method getPlanVsActualSize.
@//
Chart(//
id = "planVsActualSize", //
type = "xy", //
params = "units", titleKey = "Plan.Size_Scatter_Title_FMT", format = "autoZero=none")
public ResultSet getPlanVsActualSize(ChartData chartData) {
String units = chartData.chartArgs[0];
ResultSet data = chartData.getEnactmentResultSet("Plan.Size_Scatter_Plan_FMT", "Plan.Size_Scatter_Actual_FMT");
for (int row = data.numRows(); row > 0; row--) {
Enactment e = (Enactment) data.getRowObj(row);
double plan = chartData.histData.getSize(e, units, false);
double actual = e.actualSize(units);
data.setData(row, 1, num(plan));
data.setData(row, 2, num(actual));
}
return data;
}
use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.
the class DefectAnalysisPage method getDefectsInjectedToDate.
@//
Chart(//
id = "injToDate", //
type = "pie", //
titleKey = "Defects.Injected_By_Phase_Title", format = "colorScheme=consistent\nconsistentSkip=1", smallFmt = "hideLegend=t")
public ResultSet getDefectsInjectedToDate(ChartData chartData) {
ResultSet data = getTotalDefectsByPhaseToDate(chartData, false);
data.setColName(1, getRes("Defects_Injected"));
String firstPhase = data.getRowName(2);
data.setRowName(1, resources.format("Workflow.Analysis.Before_FMT", firstPhase));
return data;
}
use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.
the class DefectAnalysisPage method getTotalDefectDensity.
@//
Chart(//
id = "totalDefects", //
type = "line", titleKey = "Defects.Total_Title", format = "isDensity=t")
public ResultSet getTotalDefectDensity(ChartData chartData) {
ResultSet data = chartData.getEnactmentResultSet(1);
setDensityColumnHeader(data, chartData);
for (int row = data.numRows(); row > 0; row--) {
Enactment e = (Enactment) data.getRowObj(row);
int total = e.actualDefects(TOTAL, true);
int unknown = e.actualDefects(UNKNOWN, true);
double denom = getDenom(chartData, e, Denom.Density, null);
data.setData(row, 1, num((total + unknown) / denom));
}
return data;
}
Aggregations