Search in sources :

Example 31 with ResultSet

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

the class QualityAnalysisPage method getQualityCostByPhase.

@//
Chart(//
id = "qualityPhases", //
type = "line", //
titleKey = "Quality.COQ_Phase_Title", format = "units=${Percent_Time}\nnoSkipLegend=t")
public ResultSet getQualityCostByPhase(ChartData chartData) {
    List<String> qualityPhases = chartData.histData.getPhasesOfType(PhaseType.Appraisal, PhaseType.Failure);
    ResultSet data = chartData.getEnactmentResultSet(qualityPhases.size());
    writePhaseTimePct(data, 1, qualityPhases.toArray());
    return data;
}
Also used : ResultSet(net.sourceforge.processdash.data.util.ResultSet)

Example 32 with ResultSet

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

the class PlanAnalysisPage method getTotalActualTime.

@Chart(id = "totalTime", type = "line", titleKey = "Plan.Time_Title")
public ResultSet getTotalActualTime(ChartData chartData) {
    ResultSet data = chartData.getEnactmentResultSet("Hours");
    for (int row = data.numRows(); row > 0; row--) {
        Enactment e = (Enactment) data.getRowObj(row);
        data.setData(row, 1, num(e.actualTime() / 60));
    }
    return data;
}
Also used : Enactment(net.sourceforge.processdash.tool.db.WorkflowHistDataHelper.Enactment) ResultSet(net.sourceforge.processdash.data.util.ResultSet)

Example 33 with ResultSet

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

the class ProcessAnalysisPage method getPhaseTimePctSet.

public static ResultSet getPhaseTimePctSet(ChartData chartData, PhaseType type) {
    List<String> phases = chartData.getPhases(type);
    if (phases.isEmpty())
        return null;
    ResultSet data = chartData.getEnactmentResultSet(phases.size());
    writePhaseTimePct(data, 1, phases.toArray());
    return data;
}
Also used : ResultSet(net.sourceforge.processdash.data.util.ResultSet)

Example 34 with ResultSet

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

the class ProcessAnalysisPage method getProductivityVsFailure.

@//
Chart(//
id = "prodVsFailure", //
type = "xy", titleKey = "Process.Productivity_Vs_Failure_Title")
public ResultSet getProductivityVsFailure(ChartData chartData) {
    ResultSet data = chartData.getEnactmentResultSet(2);
    data.setColName(1, getRes("Plan.Percent_Failure_Time"));
    writePhaseTimePct(data, 1, PhaseType.Failure);
    writeProductivity(chartData, data, 2);
    return data;
}
Also used : ResultSet(net.sourceforge.processdash.data.util.ResultSet)

Example 35 with ResultSet

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

the class ProcessAnalysisPage method getTimeByPhase.

@//
Chart(//
id = "phaseTime", //
type = "area", //
titleKey = "Plan.Phase_Time_Title", //
smallFmt = "hideLegend=t", format = "colorScheme=consistent\nconsistentSkip=2\n" + "stacked=pct\nheaderComment=(${Hours})")
public ResultSet getTimeByPhase(ChartData chartData) {
    List<String> phases = chartData.histData.getPhasesOfType();
    ResultSet data = chartData.getEnactmentResultSet(phases.size());
    writePhaseTime(data, false, 1, phases.toArray());
    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