use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.
the class PlanAnalysisPage method getTimeEstimatingError.
@//
Chart(//
id = "timeEstErr", //
type = "line", titleKey = "Plan.Time_Estimating_Error_Title")
public ResultSet getTimeEstimatingError(ChartData chartData) {
ResultSet data = chartData.getEnactmentResultSet("Plan.Percent_Error");
for (int row = data.numRows(); row > 0; row--) {
Enactment e = (Enactment) data.getRowObj(row);
double plan = chartData.histData.getTime(e, null, false);
double actual = e.actualTime();
double err = (actual - plan) / plan;
data.setData(row, 1, num(err));
}
data.setFormat(1, "100%");
return data;
}
use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.
the class PlanAnalysisPage method getPlanVsActualTime.
@//
Chart(//
id = "planVsActualTime", //
type = "xy", titleKey = "Plan.Time_Scatter_Title", format = "autoZero=none")
public ResultSet getPlanVsActualTime(ChartData chartData) {
ResultSet data = chartData.getEnactmentResultSet("Plan.Time_Scatter_Plan", "Plan.Time_Scatter_Actual");
for (int row = data.numRows(); row > 0; row--) {
Enactment e = (Enactment) data.getRowObj(row);
double plan = chartData.histData.getTime(e, null, false);
double actual = e.actualTime();
data.setData(row, 1, num(plan / 60));
data.setData(row, 2, num(actual / 60));
}
return data;
}
use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.
the class PlanAnalysisPage method getSizeEstimatingError.
@//
Chart(//
id = "sizeEstErr", //
type = "line", //
params = "units", titleKey = "Plan.Size_Estimating_Error_Title_FMT")
public ResultSet getSizeEstimatingError(ChartData chartData) {
String units = chartData.chartArgs[0];
ResultSet data = chartData.getEnactmentResultSet("Plan.Percent_Error");
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);
double err = (actual - plan) / plan;
data.setData(row, 1, num(err));
}
data.setFormat(1, "100%");
return data;
}
use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.
the class WorkflowPlanSummary method writePhaseChart.
private void writePhaseChart(boolean plan, String titleRes, String columnRes, double factor, Map<String, DataPair> phaseData) throws IOException {
int numRows = phaseData.size() - 1;
ResultSet data = new ResultSet(numRows, 1);
int row = 0;
for (Entry<String, DataPair> e : phaseData.entrySet()) {
if (++row > numRows)
break;
data.setRowName(row, e.getKey());
double value = plan ? e.getValue().plan : e.getValue().actual;
data.setData(row, 1, new DoubleData(value / factor));
}
writeChart((plan ? "Plan" : "Actual"), titleRes, columnRes, data);
}
use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.
the class QualityAnalysisPage method getAppraisalToFailureRatio.
@Chart(id = "AFR", type = "line", titleKey = "Quality.AFR_Title")
public ResultSet getAppraisalToFailureRatio(ChartData chartData) {
ResultSet data = //
chartData.getEnactmentResultSet("Quality.AFR_Label");
writeAFR(data, 1);
return data;
}
Aggregations