Subversion Repositories DevTools

Rev

Rev 2167 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2141 ghuddy 1
using System;
2
using System.Collections;
3
 
4
namespace EA_ReqPro
5
{
2151 ghuddy 6
   /// <summary>
2141 ghuddy 7
   /// This class captures all the data of a ReqPro object that we need with a view to creating
2151 ghuddy 8
   /// a representation of that object in an EA database.
9
   /// </summary>
10
   public class ReqPro_object
11
   {
2167 ghuddy 12
      // mutually exclusive state vars (only one can be true in any given object).
2141 ghuddy 13
      public bool isPackage;
14
      public bool isRequirement;
2167 ghuddy 15
 
16
      // attributes captured from the ReqPro database
17
      public string name;        // Short name of the object
18
      public string text;        // Description of the object
19
      public string guid;        // GUID of the object in the ReqPro database
2155 ghuddy 20
      public string tag;         // eg. CR23, SPR1, SPR2.5, etc
2167 ghuddy 21
      public int tag_enum;       // enum version of 
2155 ghuddy 22
      public string status;      // eg Approved, Proposed, etc
23
      public string subsystem;   
24
      public string stability;
2167 ghuddy 25
      public string source;
26
      public string sourceVersion;
27
      public string sourceSection;
2141 ghuddy 28
      public string versionDateTime;
29
      public string difficulty;
30
      public string priority;
2155 ghuddy 31
      public string version;     // to be deprecated
2167 ghuddy 32
      public string type;        // eg. functional, performance, non-functional, etc
33
      public int iKey;           // Allows us to query ReqPro database effeciently
34
 
35
      // parser control variables
36
      public int level;          // controls depth ordering in EA
37
      public int treePos;        // controls display ordering in EA
38
      public int ea_element_ID;  // ID of the EA representation of the ReqPro object once it has been written into the EA database
2141 ghuddy 39
      public int numberOfRequirements;
40
 
2167 ghuddy 41
      // filter control variables
42
      public bool filtered;
43
 
2173 ghuddy 44
      // orphanage detection
45
      public bool matched;
46
 
2167 ghuddy 47
      // Relationship modelling variables  
48
      public ReqPro_object parent;  // allows us to look upwards
49
 
50
      // a collection of sub-objects - this is how we can reflect the ReqPro parent-child hierarchy,
2141 ghuddy 51
      // by adding objects (packages or requirements) to other objects, drilling down
52
      // as required.
53
      public ArrayList ReqPro_objects;
54
 
2167 ghuddy 55
      // a collection of traced-to objects. This captures the explicit traces-to relationships we find in
56
      // the ReqPro database
2143 ghuddy 57
      public ArrayList ReqPro_traces;
58
 
2141 ghuddy 59
      /// <summary>
60
      /// Constructor logic
61
      /// </summary>
2151 ghuddy 62
      public ReqPro_object()
63
      {
2141 ghuddy 64
         isPackage = false;
65
         isRequirement = false;
66
         name = "";
67
         text = "";
68
         guid = "";
69
         tag = "";
2151 ghuddy 70
         status = "Approved";
2141 ghuddy 71
         versionDateTime = "";
72
         level = 0;
73
         treePos = 0;
2151 ghuddy 74
         difficulty = "Medium";
75
         priority = "Medium";
2141 ghuddy 76
         version = "";
2155 ghuddy 77
         source = "";
78
         sourceVersion = "";
79
         sourceSection = "";
2141 ghuddy 80
         filtered = false;
81
         numberOfRequirements = 0;
82
         tag_enum = -1;
2143 ghuddy 83
         ea_element_ID = -1;
2141 ghuddy 84
         ReqPro_objects = new ArrayList();
2143 ghuddy 85
         ReqPro_traces = new ArrayList();
86
         parent = null;
2155 ghuddy 87
         iKey = -1;
88
         subsystem = "";
89
         stability = "";
90
         type = "";
2173 ghuddy 91
         matched = false;
2151 ghuddy 92
      }
93
   }
2141 ghuddy 94
}