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: Skiplist of Baslines, Checking Date, Loading Specific Baseline based on Date
Topic Summary:
Created On: 2-Oct-2006 15:44
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.
 2-Oct-2006 15:44
User is offline View Users Profile Print this message


Pete Kowalski

Posts: 301
Joined: 7-Feb-2003

Hi -

I have a module, and it has 3 baselines.

The baselines are:

Baseline............................................On
2.0 BLUE-2453...................................13 December 2004
3.0 BLUE-2453...................................1 January 2005
4.0 BLUE-2453...................................15 Janurary 2006

What I am trying to do is load a specific baseline or baselines to process for metrics purposes.

For example, if I want to grab metrics for the dates between 15 December 2004 and 3 January 2005 I would have to load these baselines

2.0 BLUE-2453
3.0 BLUE-2453

However, I don't know how to do this, and looking for any assistance.

Here is my code so far (code assumes user invokes it from within a module)

quote:


// THE VARIABLES
Module theModule = current

Baseline aBaseline = null
string aBaselineName = null

Date startDate = "12/15/04"
Date endDate = "01/03/05"
Date aBaselineDate = null

Skip listOfBaselines = create


// READ ALL BASELINES IN MODULE AND PUT IN A SKIPLIST
for aBaseline in theModule do
{
aBaselineName = (major aBaseline) "." (minor aBaseline) (suffix aBaseline)
aBaselineDate = (dateOf aBaseline)

put(listOfBaselines,aBaselineName,aBaselineDate)
}

// AFTER READING THE BASELINES IN A SKIPLIST NEED TO LOOP THROUGH AND CHECK
// THE "aBaselineDate" AGAINST "startDate" AND "endDate" LOAD APPROPRIATELY




Thanks for your time,

-------------------------
pete.kowalski(at)motorola.com
Report this to a Moderator Report this to a Moderator
 3-Oct-2006 20:33
User is offline View Users Profile Print this message


Pete Kowalski

Posts: 301
Joined: 7-Feb-2003

Without using a Skip list I figured out a method using an array.

In addition, what I could do is this.
1) Load the module
2) Load the most recent basline and check the date of it
3) If the date is in range in step 2 record the name
4) Determine from the previous loaded baselien if the previous baseline from that baseline needs to be open.
5) And so on...

-------------------------
pete.kowalski(at)motorola.com
Report this to a Moderator Report this to a Moderator
 3-Oct-2006 23:20
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

The attached code I think will do the trick. Take note of the 'sequencer' comments.

- Louie

Edited: 3-Oct-2006 at 23:21 by Louie Landale
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.