Search in sources :

Example 16 with Enactment

use of net.sourceforge.processdash.tool.db.WorkflowHistDataHelper.Enactment in project processdash by dtuma.

the class QualityAnalysisPage method writeAFR.

public static void writeAFR(ResultSet data, int col) {
    if (data.getColName(col) == null)
        data.setColName(col, getRes("Process.AFR_Label"));
    for (int row = data.numRows(); row > 0; row--) {
        Enactment e = (Enactment) data.getRowObj(row);
        double appraisalTime = e.actualTime(PhaseType.Appraisal);
        double failureTime = e.actualTime(PhaseType.Failure);
        data.setData(row, col, num(appraisalTime / failureTime));
    }
}
Also used : Enactment(net.sourceforge.processdash.tool.db.WorkflowHistDataHelper.Enactment)

Example 17 with Enactment

use of net.sourceforge.processdash.tool.db.WorkflowHistDataHelper.Enactment 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 18 with Enactment

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

Aggregations

Enactment (net.sourceforge.processdash.tool.db.WorkflowHistDataHelper.Enactment)18 ResultSet (net.sourceforge.processdash.data.util.ResultSet)11 ArrayList (java.util.ArrayList)1 Map (java.util.Map)1 Entry (java.util.Map.Entry)1 DoubleData (net.sourceforge.processdash.data.DoubleData)1 DataPair (net.sourceforge.processdash.util.DataPair)1