public static void addDosePQMInfo(string dosePQMName, DosePQMType type, DoseValue dv, DoseValue doseConstraint, double upperLimit, XmlWriter writer) { XElement pqm = new XElement("PQM", new XAttribute("type", type.ToString()), new XAttribute("name", dosePQMName), getDVXML(dv), getEvaluateXML(dv, doseConstraint, upperLimit)); pqm.WriteTo(writer); }
public static string ToString(this DosePQMType type) { if (type == DosePQMType.MaxDose) { return("MaxDose"); } if (type == DosePQMType.MeanDose) { return("MeanDose"); } return("unknown"); }
public static void addDosePQMInfo(DosePQMType type, DoseValue dv, DoseValue doseConstraint, double upperLimit, XmlWriter writer) { string dosePQMName = string.Format("{0} < {1}", (type == DosePQMType.MaxDose) ? "Dmax" : "Dmean", doseConstraint.ToString()); XElement pqm = new XElement("PQM", new XAttribute("type", type.ToString()), new XAttribute("name", dosePQMName), getDVXML(dv), getEvaluateXML(dv, doseConstraint, upperLimit)); pqm.WriteTo(writer); }