use of net.sourceforge.processdash.tool.db.WorkflowHistDataHelper.Enactment 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.tool.db.WorkflowHistDataHelper.Enactment 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.tool.db.WorkflowHistDataHelper.Enactment 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.tool.db.WorkflowHistDataHelper.Enactment in project processdash by dtuma.
the class ProcessAnalysisPage method writePhaseTime.
public static void writePhaseTime(ResultSet resultSet, boolean pct, int firstCol, Object... phases) {
for (int i = phases.length; i-- > 0; ) {
int col = firstCol + i;
Object onePhase = phases[i];
if (onePhase instanceof String)
resultSet.setColName(col, (String) onePhase);
if (pct)
resultSet.setFormat(col, "100%");
for (int row = resultSet.numRows(); row > 0; row--) {
Enactment e = (Enactment) resultSet.getRowObj(row);
double phaseTime = e.actualTime(onePhase);
double finalTime = phaseTime / (pct ? e.actualTime() : 60);
resultSet.setData(row, col, new DoubleData(finalTime));
}
}
}
use of net.sourceforge.processdash.tool.db.WorkflowHistDataHelper.Enactment in project processdash by dtuma.
the class QualityAnalysisPage method writeYield.
public static void writeYield(ResultSet data, int col) {
data.setColName(col, getRes("Process.Yield_Label"));
data.setFormat(col, "100%");
for (int row = data.numRows(); row > 0; row--) {
Enactment e = (Enactment) data.getRowObj(row);
data.setData(row, col, num(e.actualYield(null, true)));
}
}
Aggregations