public void AddVerifiedByLink(ImpactItem ii) { if (!verifiedByLinks.Contains(ii)) { verifiedByLinks.AddLast(ii); } }
public void AddUnspecifiedLink(ImpactItem ii) { if (!unspecifiedLinks.Contains(ii)) { unspecifiedLinks.AddLast(ii); } }
public void AddSpecifiedByLink(ImpactItem ii) { if (!specifiedByLinks.Contains(ii)) { specifiedByLinks.AddLast(ii); } }
public void AddNeedsUpdateLink(ImpactItem ii) { if (!needsUpdateLinks.Contains(ii)) { needsUpdateLinks.AddLast(ii); } }
public void AddImpactedHWLink(ImpactItem ii) { if (!impactedHWLinks.Contains(ii)) { impactedHWLinks.AddLast(ii); } }
private void StartElement(string strURI, string strName, string strName_2, Hashtable attributes) { if (strName == "TrackerCase") { nodeMode = 1; currentTrackerCase = kb.GetTrackerCase(attributes["ID"].ToString(), false); if (currentTrackerCase == null) { currentTrackerCase = new TrackerCase(attributes["ID"].ToString()); kb.AddTrackerCase(currentTrackerCase); } } else if (strName == "RelatedCase") { nodeMode = 2; } else if (strName == "SpecifiedBy") { nodeMode = 3; } else if (strName == "VerifiedBy") { nodeMode = 4; } else if (strName == "NeedsUpdate") { nodeMode = 5; } else if (strName == "ImpactedHW") { nodeMode = 6; } else if (strName == "UnspecifiedLink") { nodeMode = 7; } else if (strName == "REQ") { ImpactItem newItem = new ImpactItem(attributes["ID"].ToString(), "Requirement"); kb.AddArtifact(newItem); } else if (strName == "TEST") { ImpactItem newItem = new ImpactItem(attributes["ID"].ToString(), "Test description"); kb.AddArtifact(newItem); } else if (strName == "HARDWARE") { ImpactItem newItem = new ImpactItem(attributes["ID"].ToString(), "Hardware library"); kb.AddArtifact(newItem); } else if (strName == "UNSPECIFIED") { ImpactItem newItem = new ImpactItem(attributes["ID"].ToString(), "Unspecified artifact"); kb.AddArtifact(newItem); } }