Subversion Repositories DevTools

Rev

Rev 2155 | Go to most recent revision | 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
 
44
      // Relationship modelling variables  
45
      public ReqPro_object parent;  // allows us to look upwards
46
 
47
      // a collection of sub-objects - this is how we can reflect the ReqPro parent-child hierarchy,
2141 ghuddy 48
      // by adding objects (packages or requirements) to other objects, drilling down
49
      // as required.
50
      public ArrayList ReqPro_objects;
51
 
2167 ghuddy 52
      // a collection of traced-to objects. This captures the explicit traces-to relationships we find in
53
      // the ReqPro database
2143 ghuddy 54
      public ArrayList ReqPro_traces;
55
 
2141 ghuddy 56
      /// <summary>
57
      /// Constructor logic
58
      /// </summary>
2151 ghuddy 59
      public ReqPro_object()
60
      {
2141 ghuddy 61
         isPackage = false;
62
         isRequirement = false;
63
         name = "";
64
         text = "";
65
         guid = "";
66
         tag = "";
2151 ghuddy 67
         status = "Approved";
2141 ghuddy 68
         versionDateTime = "";
69
         level = 0;
70
         treePos = 0;
2151 ghuddy 71
         difficulty = "Medium";
72
         priority = "Medium";
2141 ghuddy 73
         version = "";
2155 ghuddy 74
         source = "";
75
         sourceVersion = "";
76
         sourceSection = "";
2141 ghuddy 77
         filtered = false;
78
         numberOfRequirements = 0;
79
         tag_enum = -1;
2143 ghuddy 80
         ea_element_ID = -1;
2141 ghuddy 81
         ReqPro_objects = new ArrayList();
2143 ghuddy 82
         ReqPro_traces = new ArrayList();
83
         parent = null;
2155 ghuddy 84
         iKey = -1;
85
         subsystem = "";
86
         stability = "";
87
         type = "";
2151 ghuddy 88
      }
89
   }
2141 ghuddy 90
}