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