//============================================================================* // ResolveIdentities() //============================================================================* public bool ResolveIdentities(cDataFiles Datafiles, cCharge Charge) { bool fChanged = false; foreach (cChargeTest ChargeTest in this) { fChanged = ChargeTest.ResolveIdentities(Datafiles) ? true : fChanged; } return(fChanged); }
//============================================================================* // Export() //============================================================================* public void Export(cRWXMLDocument XMLDocument, XmlElement XMLParentElement) { if (Count > 0) { XmlElement XMLElement = XMLDocument.CreateElement("ChargeTests"); XMLParentElement.AppendChild(XMLElement); foreach (cChargeTest ChargeTest in this) { ChargeTest.Export(XMLDocument, XMLElement); } } }
//============================================================================* // AddTest() //============================================================================* public void AddTest(cChargeTest NewChargeTest) { bool fFound = false; foreach (cChargeTest ChargeTest in m_TestList) { if (ChargeTest.CompareTo(NewChargeTest) == 0) { fFound = true; break; } } if (!fFound) { m_TestList.Add(NewChargeTest); } }
//============================================================================* // ProcessLoads() //============================================================================* public void ProcessLoads() { m_nNumBadLoads = 0; m_nNumCharges = 0; m_nNumBadCharges = 0; m_nNumChargeTests = 0; m_nNumBadChargeTests = 0; foreach (cLoad Load in m_DataFiles.LoadList) { if (!Load.Validate()) { m_nNumBadLoads++; } m_nNumCharges += Load.ChargeList.Count; foreach (cCharge Charge in Load.ChargeList) { if (!Charge.Validate()) { m_nNumBadCharges++; } m_nNumChargeTests += Charge.TestList.Count; foreach (cChargeTest ChargeTest in Charge.TestList) { if (!ChargeTest.Validate()) { m_nNumBadChargeTests++; } } } } }