Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Volkan on September 12, 2016, 11:56:27 pm

Title: How do I add reception to a SysML block?
Post by: Volkan on September 12, 2016, 11:56:27 pm
Hi! I tried to create reception for a SysML block, but I cannot find such an option within EA. How do I add reception to a SysML block? Thank you so much. :)
Title: Re: How do I add reception to a SysML block?
Post by: qwerty on September 13, 2016, 12:10:32 am
I don't have SysML installed, but you should find a Port element in the toolbox. Just drag that over a block. Check the tagged values of the Port to set in/out.

q.
Title: Re: How do I add reception to a SysML block?
Post by: Volkan on September 13, 2016, 12:22:19 am
I don't have SysML installed, but you should find a Port element in the toolbox. Just drag that over a block. Check the tagged values of the Port to set in/out.

q.

Thank you very much for the quick response.

For reception I mean "A reception represents a behavior that a block performs when a client sends a signal that triggers it. Stated formally, a reception is invoked by a signal event." It occupies a compartment in a block.

...................................................................................
|                                      receptions                          |
|«signal» <reception name> ( <parameter list> )     |
|                                                                                 |
...................................................................................
Title: Re: How do I add reception to a SysML block?
Post by: qwerty on September 13, 2016, 01:52:20 am
My last contact with SysML is too long ago, but that looks just like a stereotyped operation. Eventually such an operation is present somewhere in the toolbox. (I would likely just create that by hand)

q.
Title: Re: How do I add reception to a SysML block?
Post by: natvig on September 13, 2016, 01:57:16 am
The current version of EA does not provide support for receptions.

You can somewhat create that appearance by creating a stereotyped operation. In SysML blocks must designate whether it makes requests or handles requests for the behavioural features it defines. Hence, you need to set the DirectedFeature stereotype on the operation. Then you can add the additional stereotype 'Signal'. Ideally this keyword should appear after (prov, reqd, or provreqd), but EA cannot do this. Instead the keyword is displayed at the compartment top comma separated like this: «DirectedFeature, signal». Not very nice.

/H
Title: Re: How do I add reception to a SysML block?
Post by: Helmut Ortmann on September 13, 2016, 06:48:09 pm
Hi,

see: http://sparxsystems.com/forums/smf/index.php/topic,36020.msg231673.html#msg231673

Regards,

Helmut
Title: Re: How do I add reception to a SysML block?
Post by: Volkan on October 13, 2016, 12:14:45 am
My last contact with SysML is too long ago, but that looks just like a stereotyped operation. Eventually such an operation is present somewhere in the toolbox. (I would likely just create that by hand)

q.

Thank you very much for the reply!
Title: Re: How do I add reception to a SysML block?
Post by: Volkan on October 13, 2016, 12:15:23 am
The current version of EA does not provide support for receptions.

You can somewhat create that appearance by creating a stereotyped operation. In SysML blocks must designate whether it makes requests or handles requests for the behavioural features it defines. Hence, you need to set the DirectedFeature stereotype on the operation. Then you can add the additional stereotype 'Signal'. Ideally this keyword should appear after (prov, reqd, or provreqd), but EA cannot do this. Instead the keyword is displayed at the compartment top comma separated like this: «DirectedFeature, signal». Not very nice.

/H

Thank you very much for the reply! It is really helpful.
Title: Re: How do I add reception to a SysML block?
Post by: Volkan on October 13, 2016, 12:15:58 am
Hi,

see: http://sparxsystems.com/forums/smf/index.php/topic,36020.msg231673.html#msg231673

Regards,

Helmut

Hi Helmut! Thank you very much for the reply!