Search in sources :

Example 11 with ResultSet

use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.

the class QualityAnalysisPage method getTotalCostOfQuality.

@Chart(id = "totalCOQ", type = "line", titleKey = "Quality.Total_COQ_Title")
public ResultSet getTotalCostOfQuality(ChartData chartData) {
    ResultSet data = //
    chartData.getEnactmentResultSet("Quality.Total_COQ_Label");
    Object phases = chartData.histData.getPhasesOfType(PhaseType.Appraisal, PhaseType.Failure);
    writePhaseTimePct(data, 1, phases);
    return data;
}
Also used : ResultSet(net.sourceforge.processdash.data.util.ResultSet)

Example 12 with ResultSet

use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.

the class ProcessAnalysisPage method getProductivityVsAFR.

@//
Chart(//
id = "prodVsAfr", //
type = "xy", titleKey = "Process.Productivity_Vs_AFR_Title")
public ResultSet getProductivityVsAFR(ChartData chartData) {
    ResultSet data = chartData.getEnactmentResultSet(2);
    QualityAnalysisPage.writeAFR(data, 1);
    writeProductivity(chartData, data, 2);
    return data;
}
Also used : ResultSet(net.sourceforge.processdash.data.util.ResultSet)

Example 13 with ResultSet

use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.

the class ProcessAnalysisPage method getTimeByPhaseType.

@//
Chart(//
id = "typeTime", //
type = "area", //
titleKey = "Process.Time_By_Type_Title", format = "stacked=pct\n" + TYPE_COLORS)
public ResultSet getTimeByPhaseType(ChartData chartData) {
    ResultSet data = chartData.getEnactmentResultSet(4);
    for (PhaseType type : PhaseType.values()) {
        int col = type.ordinal() + 1;
        data.setColName(col, getRes("Process.Type_" + type));
        writePhaseTimePct(data, col, type);
    }
    return data;
}
Also used : ResultSet(net.sourceforge.processdash.data.util.ResultSet) PhaseType(net.sourceforge.processdash.tool.db.WorkflowHistDataHelper.PhaseType)

Example 14 with ResultSet

use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.

the class ProcessAnalysisPage method getTimeByPhaseTypeToDate.

@//
Chart(//
id = "typeToDate", //
type = "pie", titleKey = "Process.Time_By_Type_To_Date_Title", format = TYPE_COLORS)
public ResultSet getTimeByPhaseTypeToDate(ChartData chartData) {
    ResultSet data = new ResultSet(4, 2);
    data.setColName(0, getRes("Process.Type_Header"));
    data.setColName(1, getRes("Hours"));
    data.setColName(2, getRes("Percent_Units"));
    data.setFormat(2, "100%");
    double totalTime = chartData.histData.getTime(null, null, true);
    for (PhaseType type : PhaseType.values()) {
        int row = type.ordinal() + 1;
        double time = chartData.histData.getTime(null, type, true);
        data.setRowName(row, getRes("Process.Type_" + type));
        data.setData(row, 1, num(time / 60));
        data.setData(row, 2, num(time / totalTime));
    }
    return data;
}
Also used : ResultSet(net.sourceforge.processdash.data.util.ResultSet) PhaseType(net.sourceforge.processdash.tool.db.WorkflowHistDataHelper.PhaseType)

Example 15 with ResultSet

use of net.sourceforge.processdash.data.util.ResultSet in project processdash by dtuma.

the class ProcessAnalysisPage method getProductivityVsYield.

@//
Chart(//
id = "prodVsYield", //
type = "xy", titleKey = "Process.Productivity_Vs_Yield_Title")
public ResultSet getProductivityVsYield(ChartData chartData) {
    ResultSet data = chartData.getEnactmentResultSet(2);
    QualityAnalysisPage.writeYield(data, 1);
    writeProductivity(chartData, data, 2);
    return data;
}
Also used : ResultSet(net.sourceforge.processdash.data.util.ResultSet)

Aggregations

ResultSet (net.sourceforge.processdash.data.util.ResultSet)57 Enactment (net.sourceforge.processdash.tool.db.WorkflowHistDataHelper.Enactment)11 DoubleData (net.sourceforge.processdash.data.DoubleData)5 ArrayList (java.util.ArrayList)4 ListData (net.sourceforge.processdash.data.ListData)3 DataPair (net.sourceforge.processdash.util.DataPair)3 Iterator (java.util.Iterator)2 List (java.util.List)2 Map (java.util.Map)2 PDashQuery (net.sourceforge.processdash.api.PDashQuery)2 PhaseType (net.sourceforge.processdash.tool.db.WorkflowHistDataHelper.PhaseType)2 IOException (java.io.IOException)1 Calendar (java.util.Calendar)1 Date (java.util.Date)1 HashMap (java.util.HashMap)1 ServletException (javax.servlet.ServletException)1 DataContext (net.sourceforge.processdash.data.DataContext)1 StringData (net.sourceforge.processdash.data.StringData)1