Book a Demo

Author Topic: requirements copy  (Read 6426 times)

nada

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
requirements copy
« on: January 20, 2010, 06:55:17 pm »
Hello, if I would like to use the same tags and some attributes for a new requirements I can use Template of requirement or Convert linked element to a local copy. What is the difference between them? Thanks
« Last Edit: January 20, 2010, 06:55:38 pm by nada »

marcelloh

  • EA User
  • **
  • Posts: 192
  • Karma: +0/-0
    • View Profile
Re: requirements copy
« Reply #1 on: January 20, 2010, 08:29:45 pm »
I suppose it's because i'm not a native englishman, that I think about your question like "a lot of words, but what is Nada saying".  :-?

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: requirements copy
« Reply #2 on: January 21, 2010, 12:03:01 am »
Quote
Hello, if I would like to use the same tags and some attributes for a new requirements I can use Template of requirement or Convert linked element to a local copy. What is the difference between them? Thanks
Be careful, the "Convert" option (which in build 850 is named: Convert to Instance)  does NOT convert the existing element (from a Classifier) to an Instance of the Classifier, but creates a NEW instance from the Classifier and THEN replaces the Classifier in the diagram with the Instance.

It another example of an incorrectly named functionality.

Using a Requirement template will create a new occurrence of a Requirement Classifier when you drag the requirement tool onto the diagram.  The "Convert" will create a Requirement Instance - not the same thing.

HTH,
Paolo
« Last Edit: January 21, 2010, 08:59:37 am by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: requirements copy
« Reply #3 on: January 21, 2010, 09:31:25 am »
Quote
It another example of an incorrectly named functionality.
A better name would be?
The Sparx Team
[email protected]

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: requirements copy
« Reply #4 on: January 21, 2010, 10:17:06 am »
Quote
Hello, if I would like to use the same tags and some attributes for a new requirements I can use Template of requirement or Convert linked element to a local copy. What is the difference between them? Thanks
The easiest way to create a copy of an element (on a diagram) is to Ctrl+Drag it to a new place on the diagram.
The Sparx Team
[email protected]

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: requirements copy
« Reply #5 on: January 21, 2010, 10:24:31 am »
Quote
Quote
Hello, if I would like to use the same tags and some attributes for a new requirements I can use Template of requirement or Convert linked element to a local copy. What is the difference between them? Thanks
Be careful, the "Convert" option (which in build 850 is named: Convert to Instance)  does NOT convert the existing element (from a Classifier) to an Instance of the Classifier, but creates a NEW instance from the Classifier and THEN replaces the Classifier in the diagram with the Instance.
Actually, "Convert to Instance" and "Convert Linked Element to Local Copy" are different commands. The former, given a class on a diagram, will replace it on the diagram with a newly-created instance of the class. The latter, given a class from package A on a diagram in package B will create a copy of the class in package B which replaces the original class on the diagram. In both cases, connectors will copied to the new element. Obviously, these descriptions are a bit long as command names, so I'd still be happy to hear a better name for either command!
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: requirements copy
« Reply #6 on: January 21, 2010, 12:25:28 pm »
Quote
Quote
It another example of an incorrectly named functionality.
A better name would be?
Not using the word convert...

The length or complexity of the name is not the problem.

Convert: to change (something) into a different form or properties; transmute; transform.

Conversion implies the changing of something not the creation of a new something.

I accept that I got the commands conflated, but the the issue has to do with the verb (in both cases).

I would (as you did in your explanations - hint, hint.  Notice how you didn't use the word convert once?) replace Convert with Replace (pun intended!).

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: requirements copy
« Reply #7 on: January 21, 2010, 01:06:42 pm »
No, "Replace" doesn't work for me. While it does suggest that a substitution is taking place, it doesn't convey the idea of anything being created. Any more ideas?
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: requirements copy
« Reply #8 on: January 21, 2010, 02:11:50 pm »
Quote
No, "Replace" doesn't work for me. While it does suggest that a substitution is taking place, it doesn't convey the idea of anything being created. Any more ideas?
Then why did you use it?   ;)

Seriously, though.  I do think replace is the best available solution, it "does the least harm".

For example:  Convert to Instance could become: Replace with New Instance;

while: Convert Linked Element to Local Copy could become: Replace Element with New local copy.

Which, I think, explicitly embody the explanations you made above.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: requirements copy
« Reply #9 on: January 21, 2010, 02:40:54 pm »
Quote
For example:  Convert to Instance could become: Replace with New Instance;
Better but still not there. You see I'm currently making changes to the command so that something like a SysML Block which supports properties rather than instances would have the command "Convert to Property". With your suggestion, that would become "Replace with New Property" which I don't like, but I think my issue is with the overloading of the word "Property" - the "Replace with New" bit is fine  :-/

Thanks for your help anyway...
The Sparx Team
[email protected]

son-of-sargasso

  • EA User
  • **
  • Posts: 122
  • Karma: +0/-0
    • View Profile
Re: requirements copy
« Reply #10 on: January 21, 2010, 06:20:43 pm »
OFDS!

"Create a new repository element as a copy of this foreign one in the current repository branch and then replace this diagram widget with an instance of that element."

Get back to work, the lot of you. And while you're there fix the fact that "Copy" on the attribute popup doesn't respect the Const setting!!!

grrrrrrrrrrrrr
bruce
« Last Edit: January 21, 2010, 06:21:54 pm by barrydrive »

Yves C

  • EA User
  • **
  • Posts: 33
  • Karma: +1/-1
  • I love YaBB 1G - SP1!
    • View Profile
Re: requirements copy
« Reply #11 on: January 21, 2010, 08:19:32 pm »
Quote
In both cases, connectors will copied to the new element.
In build 834, "Convert linked element to local copy" doesn't copy all connectors but only those in the local diagram. Is this the correct behavior ?
Yves

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: requirements copy
« Reply #12 on: January 22, 2010, 08:21:27 am »
Quote
Quote
In both cases, connectors will copied to the new element.
In build 834, "Convert linked element to local copy" doesn't copy all connectors but only those in the local diagram. Is this the correct behavior ?
Yes
The Sparx Team
[email protected]