Author Topic: Stereotyping SysML stererotype  (Read 3000 times)

Kamal Hammoutene

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
    • View Profile
Stereotyping SysML stererotype
« on: November 16, 2012, 03:27:36 am »
hello,

I am trying without success to stereotype a SysML Use Case stereotype.

In the profile diagram, I am creating a steterotype "SysML1.2::UseCase" and a stereotype "MyUseCase" which specialize the SysML stereotype.

This does not work. I have tried also "SysML::UseCase" and "UML4SysML::UseCase" as described in the SysML specification document.

What am I doing wrong?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: Stereotyping SysML stererotype
« Reply #1 on: November 16, 2012, 08:25:18 am »
SysML doesn't make any changes to the Use Case type.

The UML4SysML namespace you see in the spec is just referring to a subset of UML.

Therefore what you want is just to extend the UML Use Case. Drop the metaclass onto your diagram and select UseCase.

Kamal Hammoutene

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
    • View Profile
Re: Stereotyping SysML stererotype
« Reply #2 on: November 16, 2012, 07:30:37 pm »
Quote
SysML doesn't make any changes to the Use Case type.

The UML4SysML namespace you see in the spec is just referring to a subset of UML.

Therefore what you want is just to extend the UML Use Case. Drop the metaclass onto your diagram and select UseCase.
Thank you.
What about specializing SysML Requirement type or SysML Block type?

Kamal Hammoutene

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
    • View Profile
Re: Stereotyping SysML stererotype
« Reply #3 on: November 17, 2012, 01:27:51 am »
Quote
Quote
SysML doesn't make any changes to the Use Case type.

The UML4SysML namespace you see in the spec is just referring to a subset of UML.

Therefore what you want is just to extend the UML Use Case. Drop the metaclass onto your diagram and select UseCase.
Thank you.
What about specializing SysML Requirement type or SysML Block type?
Sorry to spam the forum but I am struggling making my own SysML Requirements stereotypes.
As I am in Europe, the excellent Sparx support team is replying each time with 24 hours delay but i cannot blame them.

I have downgraded the UML profile to the very basic sterotyping of a SysML Requirement type as shown below:

<?xml version="1.0" encoding="windows-1252"?>
<UMLProfile profiletype="uml2">
      <Documentation id="47F62F33-7" name="SysMLRequirementTest" version="1.0" notes="SysMLRequirementTest"/>
      <Content>
            <Stereotypes>
                  <Stereotype name="MySysMLRequirementType" notes="" cx="90" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0" generalizes="SysML1.2::Requirement" baseStereotypes="SysML1.2::Requirement"/>
            </Stereotypes>
            <TaggedValueTypes/>
      </Content>
</UMLProfile>


But this does not work. Any idea? Thanks.