Search in sources :

Example 16 with ResultSet

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;
}
Also used : ResultSet(net.sourceforge.processdash.data.util.ResultSet)

Example 17 with ResultSet

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;
}
Also used : Enactment(net.sourceforge.processdash.tool.db.WorkflowHistDataHelper.Enactment) ResultSet(net.sourceforge.processdash.data.util.ResultSet)

Example 18 with ResultSet

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;
}
Also used : Enactment(net.sourceforge.processdash.tool.db.WorkflowHistDataHelper.Enactment) ResultSet(net.sourceforge.processdash.data.util.ResultSet)

Example 19 with ResultSet

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;
}
Also used : ResultSet(net.sourceforge.processdash.data.util.ResultSet)

Example 20 with ResultSet

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;
}
Also used : Enactment(net.sourceforge.processdash.tool.db.WorkflowHistDataHelper.Enactment) 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