Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Using ports for state machine interactions(Linking port provided/required interface to state machine triggers/effects)
Using ports for state machine interactions [message #1009151] Thu, 14 February 2013 09:58 Go to next message
Yannick S. is currently offline Yannick S.
Messages: 15
Registered: February 2013
Junior Member
Hello, all.

Using Papyrus 0.8.2 for SysML modeling, I'm looking for a way to :
* have two blocks with state machines as behavior
* describe their interactions with standard ports providing and requiring an interface with receptions (for example)
* use the interface attached to the ports to trigger the transitions (and therefore, use the transition effects to call the required interface).

Of course, the state machines have other external inputs, but this is not the point here.

I'm able to use "receive signal events", attached to a signal, as triggers, but these events are simply owned by a package and not related to the ports or interface.
I would like to make sure that every communication is managed by ports.

Might seem obvious for you, but I'm afraid I'm a bit lost in Papyrus and probably SysML also (in books it seems so easy ...).

I would appreciate if somebody would be kind enough to provide a step-by-step explanation of how to do this (if it's possible ?), or something similar.

Best regards.
Re: Using ports for state machine interactions [message #1009195 is a reply to message #1009151] Thu, 14 February 2013 11:30 Go to previous messageGo to next message
Yannick S. is currently offline Yannick S.
Messages: 15
Registered: February 2013
Junior Member
(Edit)
I was able to define a trigger linked to an operation defined in my interface (call event).
But I can't do the same for a reception, although it's possible to define a "ReceiveSignalEvent" linked to the same signal.
However, I think it's possible to use the same triggering event even if there is no interface, so there is no logical link between the trigger and the interface.
Is there a workaround or is this not expected ?
Re: Using ports for state machine interactions [message #1011341 is a reply to message #1009151] Tue, 19 February 2013 05:57 Go to previous messageGo to next message
Eclipse User
Yannick,

every trigger can specify a port where this event is expected to be
received. See page 191 in UML 2.2 spec.

This will do the trick.

Marc-Florian

"Yannick S." schrieb im Newsbeitrag news:kfiu20$soc$1@xxxxxxxxe.org...

Hello, all.

Using Papyrus 0.8.2 for SysML modeling, I'm looking for a way to :
* have two blocks with state machines as behavior
* describe their interactions with standard ports providing and requiring an
interface with receptions (for example)
* use the interface attached to the ports to trigger the transitions (and
therefore, use the transition effects to call the required interface).

Of course, the state machines have other external inputs, but this is not
the point here.

I'm able to use "receive signal events", attached to a signal, as triggers,
but these events are simply owned by a package and not related to the ports
or interface.
I would like to make sure that every communication is managed by ports.

Might seem obvious for you, but I'm afraid I'm a bit lost in Papyrus and
probably SysML also (in books it seems so easy ...).

I would appreciate if somebody would be kind enough to provide a
step-by-step explanation of how to do this (if it's possible ?), or
something similar.

Best regards.
Re: Using ports for state machine interactions [message #1018234 is a reply to message #1011341] Wed, 13 March 2013 09:11 Go to previous message
Yannick S. is currently offline Yannick S.
Messages: 15
Registered: February 2013
Junior Member
Hello,

sorry for the delay acknowledging your answer.

Following your hint, I found the "port" field in the advanced properties of my trigger. I suppose this does the trick but it is somehow hidden.

Thanks a lot and best regards.
Yannick.
Previous Topic:Change event in state machine
Next Topic:Problems generating a state machine diagram from a xmi file
Goto Forum:
  


Current Time: Thu Aug 28 03:14:48 EDT 2014

Powered by FUDForum. Page generated in 0.02957 seconds