Example #1
0
        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);
        }
Example #2
0
        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);
        }