![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Suspect Links Commands? Topic Summary: Created On: 4-Aug-2004 20:19 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Haven't used v7 much. Are there DXL commands that let us count and manipulate Suspect Links? Cannot find any in the Manual help.
|
|
![]() |
|
![]() |
|
I don't think there are any commands. But I did some investigating and wrote up the following for a colleague.
When you initialize or clear the Suspect Links for a module a new link-attribute is created in the relevant link-modules called "Suspicion Cleared Forwards". This date attribute of the link houses the time the suspicion was cleared or initialized. I am confident that the encrypted layout DXL created by the Analysis wizard compares this value with the changed date of the other object. A DXL that wants to simply count the number of Suspect Links for an object may look something like the following: for lnk in obj ->"*" do { oOther = object at the other end of the link if oOther is invalid (deleted, not in a requirement spec, whatever) continue datLnkSuspect = dateOf(intOf(lnk."Suspicion Cleared Forwards")) datObjModified = dateOf(intOf(oOther."Last Modified On")) if (datLnkSuspect < datObjModified) then this is a Suspect Link. } To avoid program aborts when the link attribute doesn't exist, you may need to use: datTemp = probeAttr_(lnk, "Suspicion Cleared Forwards") // returns null if the attr doesn't exist datLinkSuspect = dateOf(intOf(datTemp)) The silly looking "dateOf(intOf(" sequence is to turn a DAY date (04 August 2004) into a SECOND date (08/04/04 14:25:55). On second thought, using integers instead of the two date variables and getting rid of the "dateOf(" would be marginally better. Notice that you CAN, therefore, set or reset the Suspect Link value with the command: lnk."Suspicion Cleared Forwards" = today() or "1980 Jan 01". That will require the object's module to be open exclusive, not the link module. I did NOT investigate any special "Object Text" only issues with Suspect Links. That may involve looking through the History of an object and finding the last history entry that modified Object Text, and extracting the date from that. - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Suspect Links Commands?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.