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");
}
}
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");
}
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);
}
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);
}
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;
}
}
Aggregations