Book a Demo

Author Topic: How do I add reception to a SysML block?  (Read 9923 times)

Volkan

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
How do I add reception to a SysML block?
« 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. :)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How do I add reception to a SysML block?
« Reply #1 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.

Volkan

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: How do I add reception to a SysML block?
« Reply #2 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> )     |
|                                                                                 |
...................................................................................

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How do I add reception to a SysML block?
« Reply #3 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.

natvig

  • EA User
  • **
  • Posts: 65
  • Karma: +7/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: How do I add reception to a SysML block?
« Reply #4 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
« Last Edit: September 13, 2016, 03:14:38 am by natvig »

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Volkan

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: How do I add reception to a SysML block?
« Reply #6 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!

Volkan

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: How do I add reception to a SysML block?
« Reply #7 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.

Volkan

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile