Author Topic: SysML: Classify Flow Property with Enumeration  (Read 1605 times)

Arne Krüger

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
SysML: Classify Flow Property with Enumeration
« on: March 22, 2019, 12:41:24 am »
Apparently EA 14 only allows Flow Properties to be classified with Class, Data Type and Signal and Stereotypes block and ValueType. What is the reasoning to disallow Enumeration types? Is there a way to extend the standard SysML profile to allow Flow Properties of specific Enumeratio types?

It appears that I could define a signal with a Enumeration member and use the Signal as classifier of the Flow Property. However, when there is only one member this appears somewhat cumbersome. Even more so when Value Types can be used directly on Flow Properties.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2901
  • Karma: +52/-3
    • View Profile
Re: SysML: Classify Flow Property with Enumeration
« Reply #1 on: March 27, 2019, 08:41:00 am »
Apparently EA 14 only allows Flow Properties to be classified with Class, Data Type and Signal and Stereotypes block and ValueType. What is the reasoning to disallow Enumeration types? Is there a way to extend the standard SysML profile to allow Flow Properties of specific Enumeratio types?


Looking at the SysML 1.5 specification (ptc-16-12-02) section 9.3.2.7 has

Quote
Constraints
[1] A FlowProperty shall be typed by a ValueType, Block, or Signal.

I suspect that if your property is typed by an enumeration then it isn't a flow property.
The Sparx Team
support@sparxsystems.com

Pegasus

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: SysML: Classify Flow Property with Enumeration
« Reply #2 on: March 28, 2019, 10:06:02 pm »
proposing following procedure:

1) Define a new reference data UML Types /Tagged Vlue Types, e.g.
Tag Name: ModelEnum
Detail:
Type=Enum;
Value=XX,YY;ZZ;
Default=XX;
2) define new valueType "test" with a tagged value defined in step 1)
3) type the flow property with the valueType defined in 2)