Exemplo n.º 1
0
 public void AddVerifiedByLink(ImpactItem ii)
 {
     if (!verifiedByLinks.Contains(ii))
     {
         verifiedByLinks.AddLast(ii);
     }
 }
Exemplo n.º 2
0
 public void AddUnspecifiedLink(ImpactItem ii)
 {
     if (!unspecifiedLinks.Contains(ii))
     {
         unspecifiedLinks.AddLast(ii);
     }
 }
Exemplo n.º 3
0
 public void AddSpecifiedByLink(ImpactItem ii)
 {
     if (!specifiedByLinks.Contains(ii))
     {
         specifiedByLinks.AddLast(ii);
     }
 }
Exemplo n.º 4
0
 public void AddNeedsUpdateLink(ImpactItem ii)
 {
     if (!needsUpdateLinks.Contains(ii))
     {
         needsUpdateLinks.AddLast(ii);
     }
 }
Exemplo n.º 5
0
 public void AddImpactedHWLink(ImpactItem ii)
 {
     if (!impactedHWLinks.Contains(ii))
     {
         impactedHWLinks.AddLast(ii);
     }
 }
Exemplo n.º 6
0
 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);
     }
 }