void writeSampler() { List<String[]> samplingParams = theSampler.getSamplerParameterList(); logFile.write("<Sampler>"); logFile.writeParametersXML(samplingParams, 1); logFile.write("</Sampler>"); }
void writeGeneral() { List<String[]> simParams = new ArrayList<String[]>(); if (seed > 0) { simParams.add(new String[] {"Seed", "" + seed}); } simParams.add(new String[] {"Path", simpath}); simParams.add(new String[] {"Rootname", simname}); simParams.add(new String[] {"Nreps", "" + nreps}); simParams.add(new String[] {"Tauleap", "" + tauleap}); logFile.write("<General>"); logFile.writeParametersXML(simParams, 1); logFile.write("</General>"); }
void writePopulationStructure() { List<String[]> populationParams = new ArrayList<String[]>(); populationParams.add(new String[] {"NumberOfDemes", "" + numberOfDemes}); populationParams.add(new String[] {"NetworkType", popType.toString()}); populationParams.add(new String[] {"Directed", dirType}); if (popType.equals(PopulationType.RANDOM)) { populationParams.add(new String[] {"ProbabilityConnect", "" + probConnect}); } populationParams.add(new String[] {"ModelType", modelType.toString()}); populationParams.add(infectionParams); populationParams.add(new String[] {"DemeType", demeType}); populationParams.add(new String[] {"NumberOfHostsPerDeme", "" + hostsInDeme}); populationParams.add(new String[] {"ProbabilityInfectionAnyOtherDeme", "" + pinfectother}); populationParams.add(new String[] {"ReportSummary", reportSummary}); logFile.write("<PopulationStructure>"); logFile.writeParametersXML(populationParams, 1); logFile.write("</PopulationStructure>"); }