use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.
the class ProcessAnalysisPage method getTimeInPhaseToDate.
@//
Chart(//
id = "phaseToDate", //
type = "pie", //
titleKey = "Plan.Time_In_Phase_Title", //
smallFmt = "hideLegend=t", format = "colorScheme=consistent\nconsistentSkip=2")
public ResultSet getTimeInPhaseToDate(ChartData chartData) {
Map<String, DataPair> time = chartData.histData.getTotalTimeInPhase();
double totalTime = time.remove(WorkflowHistDataHelper.TOTAL_PHASE_KEY).actual;
List<String> phases = new ArrayList(time.keySet());
ResultSet data = new ResultSet(phases.size(), 2);
data.setColName(0, getRes("Phase"));
data.setColName(1, getRes("Hours"));
data.setColName(2, getRes("Percent_Units"));
data.setFormat(2, "100%");
for (int row = phases.size(); row > 0; row--) {
String onePhase = phases.get(row - 1);
data.setRowName(row, onePhase);
data.setData(row, 1, num(time.get(onePhase).actual / 60));
data.setData(row, 2, num(time.get(onePhase).actual / totalTime));
}
return data;
}
use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.
the class ProcessAnalysisPage method getProductivity.
@//
Chart(//
id = "productivity", //
type = "line", titleKey = "Process.Productivity_Title")
public ResultSet getProductivity(ChartData chartData) {
ResultSet data = chartData.getEnactmentResultSet(1);
writeProductivity(chartData, data, 1);
return data;
}
use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.
the class QualityAnalysisPage method getYield.
@//
Chart(//
id = "yield", //
type = "line", //
titleKey = "Quality.Yield_Title", format = "headerComment=${Quality.Yield_Header}")
public ResultSet getYield(ChartData chartData) {
ResultSet data = chartData.getEnactmentResultSet(1);
writeYield(data, 1);
return data;
}
use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.
the class QualityAnalysisPage method writeYieldsByPhase.
private ResultSet writeYieldsByPhase(ChartData chartData, boolean process) {
List<String> phases = chartData.getPhases();
if (process)
phases.remove(0);
Collections.reverse(phases);
ResultSet data = chartData.getEnactmentResultSet(phases.size());
for (int col = phases.size(); col > 0; col--) {
String phase = phases.get(col - 1);
data.setColName(col, phase);
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(phase, process)));
}
}
return data;
}
use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.
the class QualityAnalysisPage method getDefectsVsAFR.
@//
Chart(//
id = "defectsVsAfr", //
type = "xy", //
params = "phase", titleKey = "Process.Defects_Vs_AFR_Title_FMT")
public ResultSet getDefectsVsAFR(ChartData chartData) {
ResultSet data = chartData.getEnactmentResultSet(2);
writeAFR(data, 1);
writePhaseDefectDensity(chartData, data, 2, chartData.chartArgs[0]);
return data;
}
Aggregations