Exemple #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);
        }
Exemple #2
0
 public static string ToString(this DosePQMType type)
 {
     if (type == DosePQMType.MaxDose)
     {
         return("MaxDose");
     }
     if (type == DosePQMType.MeanDose)
     {
         return("MeanDose");
     }
     return("unknown");
 }
Exemple #3
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);
        }