![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: How to count the number of requirements Topic Summary: Created On: 22-Jul-2005 04:49 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: If you really want a count of requirements in the subsection, not simply all the objects in the subsection, then you must have an attribute or combination of criteria that indicates such. Then, you can include that with a filter for a subsection using the Object Number, e.g. to count the requirements in subsection 1.1.2, you could use: (Object Number >= 1.1.2) AND (Object Number < 1.1.3) AND (Type == Reqmt) where Type is a user-defined attribute. The number of Accepted objects in the upper right corner of the filter dialog is your count. Good luck to you, Greg | |
![]() |
|
Hi, |
|
![]() |
|
![]() |
|
Filtering is the easiest answer. If you just want an occasional count of a few objects then set up a boolean attribute called 'Filter' or similar and set it to not generate history, or affect change dates and change bars. Set it to true just for the things you are interested in (this might be with another set of complex filters with include decendents or include ancestors set), then filter on your 'filter' attribute and the filter dialog will tell you how many objects are included. |
|
![]() |
|
![]() |
|
Dxl is attached. It will give a count of this object and all children, grandchildren...... etc.
Note. Inserted as part of replay as attachments are not avail in this forum. void countChildObj(Object oPrime,int &cntr) { Object oChildPrime for oChildPrime in oPrime do { cntr++ countChildObj(oChildPrime,cntr) } } //Main Object o = current int cntr = 1 // this object countChildObj(o,cntr) ack "There are " cntr " objects below this object -- count includes this object" ------------------------- Cliff Bly |
|
![]() |
|
![]() |
|
There is also the Statistics in the Module Properties, Statistics tab.
|
|
![]() |
|
![]() |
|
If you really want a count of requirements in the subsection, not simply all the objects in the subsection, then you must have an attribute or combination of criteria that indicates such. Then, you can include that with a filter for a subsection using the Object Number, e.g. to count the requirements in subsection 1.1.2, you could use:
(Object Number >= 1.1.2) AND (Object Number < 1.1.3) AND (Type == Reqmt) where Type is a user-defined attribute. The number of Accepted objects in the upper right corner of the filter dialog is your count. Good luck to you, Greg |
|
![]() |
|
![]() |
|
Hi,
If you adopt the rule that all requirements contain the word "shall", and that you only have one requirement per object, you can simply filter on object text containing the word "shall". It is good practice to write requirements in this way, so I think it's a good system to adopt - but then again, writing good requirements is another subject altogether. I personally use "<shall>" just to ensure I don't pick up any words with .*shall.* in them, e.g. "shallow". You can also toggle the 'Match Case' check box in the Filtering window to suit. Hope that helps, Graham |
|
![]() |
|
![]() |
|
Comparing paragraph numbers doesn't work all the time since comparisons are lexigraphic whereas you really want comparison's based on numerical values. You want section "2.12" to sort after "2.9" since 12 is bigger than 9, but it sorts before since 1 is smaller than 9.
Figuring out if an object is in a specific section requires an Object Handle of the section. Then keep looking at the Parent of the desired object until you get to the section (match) or a level 1 object (no match). - Louie |
|
![]() |
Telelogic DOORS
» General Discussion
»
How to count the number of requirements
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.