Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Requirements Modeling Framework  » ID-Generator auto-numbering.
ID-Generator auto-numbering. [message #1709261] Fri, 25 September 2015 12:11 Go to next message
Max Russell is currently offline Max RussellFriend
Messages: 39
Registered: May 2015
Member
I have setup an ID-Generator presentation, but don't see it being used against requirements. I'm following the instructions in the help and also the fmstudio.pdf - what steps might I be missing?

Also, I note that the pdf states:
"Currently, the presentation does not check whether duplicate
IDs exist!"

Is this still true? When my requirements base increases, this could be of concern.
Re: ID-Generator auto-numbering. [message #1709376 is a reply to message #1709261] Mon, 28 September 2015 06:12 Go to previous messageGo to next message
Michael Jastram is currently offline Michael JastramFriend
Messages: 229
Registered: April 2010
Location: Düsseldorf, Germany
Senior Member
Hi Max,

> what steps might I be missing?

Carefully check the following: (1) The ID-Generator is associated with a DatatypeDefinition; (2) There must be an Attribute using that DatatypeDefinition; (3) The Attribute belongs to a SpecObjectType; (4) Only SpecObjects using that SpecObjectType will receive IDs.

> "Currently, the presentation does not check whether duplicate IDs exist!"
> Is this still true? When my requirements base increases, this could be of concern.

The Generator simply increments a counter and assigns IDs. If you are working in a team environment, this could lead to duplicates, and this is not checked. Checking this is not that difficult, but someone has to implement it. If this is a concern to you, you should not use it (or fix it. Smile).

Best,

- Michael


Re: ID-Generator auto-numbering. [message #1709419 is a reply to message #1709261] Mon, 28 September 2015 10:52 Go to previous messageGo to next message
Max Russell is currently offline Max RussellFriend
Messages: 39
Registered: May 2015
Member
Yes, I have this setup - but I'm not seeing my numbering used:
index.php/fa/23377/0/
index.php/fa/23378/0/
Re: ID-Generator auto-numbering. [message #1709483 is a reply to message #1709419] Mon, 28 September 2015 20:03 Go to previous messageGo to next message
Michael Jastram is currently offline Michael JastramFriend
Messages: 229
Registered: April 2010
Location: Düsseldorf, Germany
Senior Member
What Datatype are you using for RequirementType.ID?

Re: ID-Generator auto-numbering. [message #1709548 is a reply to message #1709483] Tue, 29 September 2015 08:41 Go to previous messageGo to next message
Max Russell is currently offline Max RussellFriend
Messages: 39
Registered: May 2015
Member
I thought I had set it correctly:

index.php/fa/23383/0/
Re: ID-Generator auto-numbering. [message #1709557 is a reply to message #1709548] Tue, 29 September 2015 09:56 Go to previous messageGo to next message
Michael Jastram is currently offline Michael JastramFriend
Messages: 229
Registered: April 2010
Location: Düsseldorf, Germany
Senior Member
Hi Max,

From the screenshot I cannot see what I am looking for: You need to select "ID" (the Attribute of "Requirement Type". Then you would see in the lower pane, which **Datatype** is assinged. If it is T_String32k (as I suspect), then you'd have to change it to T_ID.

But maybe I am on the wrong track.

Best,

- Michael


Re: ID-Generator auto-numbering. [message #1709560 is a reply to message #1709557] Tue, 29 September 2015 10:05 Go to previous message
Max Russell is currently offline Max RussellFriend
Messages: 39
Registered: May 2015
Member
Bingo! Thank you very much. I had the SpecType (SpecObject) and the datatype T_ID but hadn't applied the T_ID as the SpecObject attribute type for string, as you suggested!

Happily numbering away now!
Previous Topic:Creating SpecHierarchy Programmatically and Save to .reqif file
Next Topic:What datatype required for Glossary?
Goto Forum:
  


Current Time: Mon Sep 24 09:20:31 GMT 2018

Powered by FUDForum. Page generated in 0.02137 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top