Search in sources :

Example 66 with ListData

use of net.sourceforge.processdash.data.ListData in project processdash by dtuma.

the class DefectAnalysisPage method writeRemRateArgs.

public void writeRemRateArgs() {
    ListData qualityPhases = getProcessList("Quality_Phase_List");
    out.println("qf=" + PATH_TO_REPORTS + "compProj.rpt");
    out.print("title=");
    out.println(resources.getString("Defects.Removal_Rate.Title"));
    out.print("units=");
    out.println(resources.getString("Defects.Removal_Rate.Units"));
    out.print("headerComment=");
    out.println(resources.getString("Defects.Removal_Rate.Comment"));
    for (int i = 0; i < qualityPhases.size(); i++) {
        String num = Integer.toString(qualityPhases.size() - i);
        String phaseName = (String) qualityPhases.get(i);
        String displayName = Translator.translate(phaseName);
        out.println("h" + num + "=" + displayName);
        out.println("d" + num + "=" + phaseName + "/Defects Removed per Hour");
    }
}
Also used : ListData(net.sourceforge.processdash.data.ListData)

Example 67 with ListData

use of net.sourceforge.processdash.data.ListData in project processdash by dtuma.

the class DefectAnalysisPage method writeHTML.

protected void writeHTML() throws IOException {
    writeHTMLHeader("Defects.Title");
    // get information about the current process
    ListData developmentPhases = getProcessList("Development_Phase_List");
    ListData qualityPhases = getProcessList("Quality_Phase_List");
    ListData failurePhases = getProcessList("Failure_Phase_List");
    // write the total defects chart
    writeChartHTML(LINE_CHART, TOTAL_CHART);
    // write the "injected in phase" charts
    for (int i = 0; i < developmentPhases.size(); i++) writeChartHTML(LINE_CHART, INJ_CHART, fmtArg("phase", developmentPhases.get(i)));
    // write the "removed in phase" charts
    for (int i = 0; i < qualityPhases.size(); i++) writeChartHTML(LINE_CHART, REM_CHART, fmtArg("phase", qualityPhases.get(i)));
    // write the cumulative injection percentage chart
    if (developmentPhases.size() > 1)
        writeChartHTML(LINE_CHART, CUM_INJ_PCT_CHART);
    // write the cumulative removal percentage chart
    if (qualityPhases.size() > 1)
        writeChartHTML(LINE_CHART, CUM_REM_PCT_CHART);
    // write the removal rates chart
    if (qualityPhases.size() > 0)
        writeChartHTML(LINE_CHART, REM_RATES_CHART);
    if (qualityPhases.size() > 1)
        // write the defect removal leverage chart
        writeChartHTML(LINE_CHART, LEVERAGE_CHART);
    // write scatter plots of failure phase densities
    for (int i = 1; i < failurePhases.size(); i++) writeChartHTML(XY_CHART, FAIL_SCATTER_CHART, fmtArg("phaseX", failurePhases.get(i - 1)) + "&" + fmtArg("phaseY", failurePhases.get(i)));
    // write pie charts of injected/removed defects by phase
    writeChartHTML(PIE_CHART, INJ_PIE_CHART);
    writeChartHTML(PIE_CHART, REM_PIE_CHART);
    out.write("</body></html>\n");
}
Also used : ListData(net.sourceforge.processdash.data.ListData)

Example 68 with ListData

use of net.sourceforge.processdash.data.ListData in project processdash by dtuma.

the class EVTaskListRollup method saveTaskLists.

private void saveTaskLists(String newName, DataRepository data) {
    ListData list = null;
    if (newName != null) {
        list = new ListData();
        for (EVTaskList tl : getTaskListsToSave()) list.add(tl.taskListName);
    }
    persistDataValue(newName, data, TASK_LISTS_DATA_NAME, list);
}
Also used : ListData(net.sourceforge.processdash.data.ListData)

Example 69 with ListData

use of net.sourceforge.processdash.data.ListData in project processdash by dtuma.

the class MessageDispatcher method setMessageHandled.

private void setMessageHandled(String serverID, String messageID, boolean handled) {
    if (serverID != null) {
        ListData l = ListData.asListData(data.getValue(SERVER_MESSAGES));
        if (l == null)
            l = new ListData();
        if (handled == true)
            l.setAdd(serverID);
        else
            l.remove(serverID);
        data.putValue(SERVER_MESSAGES, l);
        if (messageID.contains("/pdes/"))
            return;
    }
    SimpleData value = (handled ? ImmutableDoubleData.TRUE : null);
    data.putValue(getHandledDataName(messageID), value);
}
Also used : SimpleData(net.sourceforge.processdash.data.SimpleData) ListData(net.sourceforge.processdash.data.ListData)

Example 70 with ListData

use of net.sourceforge.processdash.data.ListData in project processdash by dtuma.

the class MigrationToolIndivLauncher method checkPreconditions.

private void checkPreconditions() throws Exception {
    failedPreconditions = new ListData();
    showDeleteAdvice = false;
    assertTargetProcessInstalled();
    assertNoRootDefects();
    assertNoRootPhases();
    assertNoMultiplePhases();
    if (failedPreconditions.test()) {
        putValue("Failed_Migration_Preconditions", failedPreconditions);
        MigrationException me = new MigrationException("failedPreconditions");
        if (showDeleteAdvice)
            me.add("showDeleteAdvice");
        throw me;
    }
}
Also used : ListData(net.sourceforge.processdash.data.ListData)

Aggregations

ListData (net.sourceforge.processdash.data.ListData)129 SimpleData (net.sourceforge.processdash.data.SimpleData)20 ArrayList (java.util.ArrayList)18 List (java.util.List)16 Iterator (java.util.Iterator)15 StringData (net.sourceforge.processdash.data.StringData)15 EVTaskListData (net.sourceforge.processdash.ev.EVTaskListData)9 Map (java.util.Map)8 HashSet (java.util.HashSet)7 DashHierarchy (net.sourceforge.processdash.hier.DashHierarchy)6 IOException (java.io.IOException)5 HashMap (java.util.HashMap)5 LinkedList (java.util.LinkedList)5 DoubleData (net.sourceforge.processdash.data.DoubleData)5 PropertyKey (net.sourceforge.processdash.hier.PropertyKey)5 LocalizedString (net.sourceforge.processdash.util.LocalizedString)5 NodeList (org.w3c.dom.NodeList)5 Date (java.util.Date)4 EVTaskList (net.sourceforge.processdash.ev.EVTaskList)4 Element (org.w3c.dom.Element)4