Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Link distinction in baseline set
Topic Summary:
Created On: 10-Aug-2004 12:22
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Antonio Norkus, on Monday, August 30, 2004 4:14 PM

Answer:
Frank,

I think you need to use the following function to get the baseline information of the source of the link.

ModuleVersion sourceVersion(Link|LinkRef l)

Then use the following function to get the baseline from the ModuleVersion.

Baseline baseline(ModuleVersion modver)

Best Regards,
Antonio.
 10-Aug-2004 12:22
User is offline View Users Profile Print this message


Frank Held

Posts: 14
Joined: 16-Jul-2004

Hi
I have one baselined module (A) in a baselineset. Also there is another modul (B) in the baseline set which is not baselined. Between these modules are links A(baseline) -> B and A(current) -> B.
I tried to follow the links back to the baselined modul, but obviously it doesn't work. I'm not able to distinguish between links from the current and the baselined modul.
Can anyone advice me? Thanks


My code example: (should count the links to the baselined mod, but prints always zero)

Object o
Module m
Module msrc = null
LinkRef lnk
string srcmn
Baseline b=null
int i = 0 // links from baseline
int j = 0 // links from baseline
int k = 0 // all links

m = current Module

for o in m do {
for lnk in (all (o <- "*")) do {
srcmn = source(lnk)
msrc = read(srcmn, false)
b = baselineInfo(msrc)

if(isBaseline(msrc)) {
i++
}

if(b!=null) {
print srcmn "\n"
j++
}
close msrc
k++
}
}
print i "\n"
print j "\n"
print k

-------------------------
Frank
Report this to a Moderator Report this to a Moderator
 10-Aug-2004 12:27
User is offline View Users Profile Print this message


Frank Held

Posts: 14
Joined: 16-Jul-2004

annotation:
i and j are zero, k counts right

-------------------------
Frank
Report this to a Moderator Report this to a Moderator
 11-Aug-2004 10:52
User is offline View Users Profile Print this message


Antonio Norkus

Posts: 109
Joined: 28-Jun-2003

Answer Answer
Frank,

I think you need to use the following function to get the baseline information of the source of the link.

ModuleVersion sourceVersion(Link|LinkRef l)

Then use the following function to get the baseline from the ModuleVersion.

Baseline baseline(ModuleVersion modver)

Best Regards,
Antonio.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.