Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » How to specify SendSignalEvent?
How to specify SendSignalEvent? [message #473044] Wed, 30 May 2007 17:42 Go to next message
Jan Reimann is currently offline Jan ReimannFriend
Messages: 90
Registered: July 2009
Member
Hello NG,
I want to add a SendSignalEvent to a transition in a StateMachine. The
UML-Specification writes:

A send operation event specifies the sending of a request to invoke a
specific operation on an object. The send operation
event may result in the occurrence of a call event in the receiver
object (see “Common Behaviors” on page 421), and may
consequentially cause the execution of a behavior by the receiver object.

Ok...so far so good ;) But as I wanted to add a SendSignalEvent to the
transition to specifiy the operation I had no success. The reason is
there is no element called like this or similar :( There were only some
kinds of guards and rules to add and trigger. Is the trigger my friend
to add?

Thanks for answers

greets
Jan
Re: How to specify SendSignalEvent? [message #473047 is a reply to message #473044] Wed, 30 May 2007 18:46 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jan,

Yes, triggers are your friends :). In the latest version of UML, the
transition would refer to a trigger, the trigger would refer to the event.

Cheers,

- James.

"Jan Reimann" <eclipse@janreimone.de> wrote in message
news:f3kd2q$qgh$1@build.eclipse.org...
> Hello NG,
> I want to add a SendSignalEvent to a transition in a StateMachine. The
> UML-Specification writes:
>
> A send operation event specifies the sending of a request to invoke a
> specific operation on an object. The send operation
> event may result in the occurrence of a call event in the receiver
> object (see "Common Behaviors" on page 421), and may
> consequentially cause the execution of a behavior by the receiver object.
>
> Ok...so far so good ;) But as I wanted to add a SendSignalEvent to the
> transition to specifiy the operation I had no success. The reason is
> there is no element called like this or similar :( There were only some
> kinds of guards and rules to add and trigger. Is the trigger my friend
> to add?
>
> Thanks for answers
>
> greets
> Jan
Re: How to specify SendSignalEvent? [message #473072 is a reply to message #473047] Fri, 01 June 2007 07:39 Go to previous messageGo to next message
Jan Reimann is currently offline Jan ReimannFriend
Messages: 90
Registered: July 2009
Member
Thanks for your answer James.

James Bruck wrote:
> Yes, triggers are your friends :). In the latest version of UML, the
> transition would refer to a trigger, the trigger would refer to the event.

Does that mean that I have to create a SendOperationEvent representing
the method? And then only connect trigger with event?

greets
Jan
Re: How to specify SendSignalEvent? [message #473083 is a reply to message #473072] Fri, 01 June 2007 16:32 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jan

Yes you would create a SendOperationEvent then create your trigger, then
call myTrigger.setEvent(mySendOperationEvent).

Keep your events in a convenient location because they can be reused by your
SequenceDiagrams (see OccurrenceSpecification). In this way, you can
"tie" together several diagrams to model one concept.

Regards,

- James.


"Jan Reimann" <eclipse@janreimone.de> wrote in message
news:f3oig9$97v$1@build.eclipse.org...
> Thanks for your answer James.
>
> James Bruck wrote:
> > Yes, triggers are your friends :). In the latest version of UML, the
> > transition would refer to a trigger, the trigger would refer to the
event.
>
> Does that mean that I have to create a SendOperationEvent representing
> the method? And then only connect trigger with event?
>
> greets
> Jan
Re: How to specify SendSignalEvent? [message #473181 is a reply to message #473083] Tue, 12 June 2007 08:38 Go to previous messageGo to next message
Jan Reimann is currently offline Jan ReimannFriend
Messages: 90
Registered: July 2009
Member
I have found something interesting.
http://www4.informatik.tu-muenchen.de/publ/papers/meisinge00 .pdf

After reading that I found that SendEvent is the opposite of triggers? Am
I right?

greets
Jan
Re: How to specify SendSignalEvent? [message #473186 is a reply to message #473181] Tue, 12 June 2007 14:01 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jan,


Do you mean Message::sendEvent is the opposite of Transition::triggers ?
(That must be it because there is no SendEvent metatype in UML 2.1 )

I'm not sure if I would say they are the "opposite".. but rather, they are
mechanisms for specifying an event.

Message::sendEvent takes a MessageEnd. MessageOccurrenceSpecifications are
MessageEnd's. On your Message, you could create a
MessageOccurrenceSpecifiation, call setEvent() ( set Event is defined on
OccurrenceSpecification ).

Likewise, Transitions refer to Triggers, and you can specify an event for
the Trigger.

You can use the same event in both cases. The event could be stored at
package level.

Voila, you can now show how one event impacts your model on a sequence
diagram and statechart diagram.

Cheers,

- James.




"Jan Reimann" <eclipse@janreimone.de> wrote in message
news:f521b33cf7cb88955efcdb6121386028$1@www.eclipse.org...
> I have found something interesting.
> http://www4.informatik.tu-muenchen.de/publ/papers/meisinge00 .pdf
>
> After reading that I found that SendEvent is the opposite of triggers? Am
> I right?
>
> greets
> Jan
>
Re: How to specify SendSignalEvent? [message #618330 is a reply to message #473044] Wed, 30 May 2007 18:46 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jan,

Yes, triggers are your friends :). In the latest version of UML, the
transition would refer to a trigger, the trigger would refer to the event.

Cheers,

- James.

"Jan Reimann" <eclipse@janreimone.de> wrote in message
news:f3kd2q$qgh$1@build.eclipse.org...
> Hello NG,
> I want to add a SendSignalEvent to a transition in a StateMachine. The
> UML-Specification writes:
>
> A send operation event specifies the sending of a request to invoke a
> specific operation on an object. The send operation
> event may result in the occurrence of a call event in the receiver
> object (see "Common Behaviors" on page 421), and may
> consequentially cause the execution of a behavior by the receiver object.
>
> Ok...so far so good ;) But as I wanted to add a SendSignalEvent to the
> transition to specifiy the operation I had no success. The reason is
> there is no element called like this or similar :( There were only some
> kinds of guards and rules to add and trigger. Is the trigger my friend
> to add?
>
> Thanks for answers
>
> greets
> Jan
Re: How to specify SendSignalEvent? [message #619431 is a reply to message #473047] Fri, 01 June 2007 07:39 Go to previous message
Jan Reimann is currently offline Jan ReimannFriend
Messages: 90
Registered: July 2009
Member
Thanks for your answer James.

James Bruck wrote:
> Yes, triggers are your friends :). In the latest version of UML, the
> transition would refer to a trigger, the trigger would refer to the event.

Does that mean that I have to create a SendOperationEvent representing
the method? And then only connect trigger with event?

greets
Jan
Re: How to specify SendSignalEvent? [message #619671 is a reply to message #473072] Fri, 01 June 2007 16:32 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jan

Yes you would create a SendOperationEvent then create your trigger, then
call myTrigger.setEvent(mySendOperationEvent).

Keep your events in a convenient location because they can be reused by your
SequenceDiagrams (see OccurrenceSpecification). In this way, you can
"tie" together several diagrams to model one concept.

Regards,

- James.


"Jan Reimann" <eclipse@janreimone.de> wrote in message
news:f3oig9$97v$1@build.eclipse.org...
> Thanks for your answer James.
>
> James Bruck wrote:
> > Yes, triggers are your friends :). In the latest version of UML, the
> > transition would refer to a trigger, the trigger would refer to the
event.
>
> Does that mean that I have to create a SendOperationEvent representing
> the method? And then only connect trigger with event?
>
> greets
> Jan
Re: How to specify SendSignalEvent? [message #621533 is a reply to message #473083] Tue, 12 June 2007 08:38 Go to previous message
Jan Reimann is currently offline Jan ReimannFriend
Messages: 90
Registered: July 2009
Member
I have found something interesting.
http://www4.informatik.tu-muenchen.de/publ/papers/meisinge00 .pdf

After reading that I found that SendEvent is the opposite of triggers? Am
I right?

greets
Jan
Re: How to specify SendSignalEvent? [message #621548 is a reply to message #473181] Tue, 12 June 2007 14:01 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jan,


Do you mean Message::sendEvent is the opposite of Transition::triggers ?
(That must be it because there is no SendEvent metatype in UML 2.1 )

I'm not sure if I would say they are the "opposite".. but rather, they are
mechanisms for specifying an event.

Message::sendEvent takes a MessageEnd. MessageOccurrenceSpecifications are
MessageEnd's. On your Message, you could create a
MessageOccurrenceSpecifiation, call setEvent() ( set Event is defined on
OccurrenceSpecification ).

Likewise, Transitions refer to Triggers, and you can specify an event for
the Trigger.

You can use the same event in both cases. The event could be stored at
package level.

Voila, you can now show how one event impacts your model on a sequence
diagram and statechart diagram.

Cheers,

- James.




"Jan Reimann" <eclipse@janreimone.de> wrote in message
news:f521b33cf7cb88955efcdb6121386028$1@www.eclipse.org...
> I have found something interesting.
> http://www4.informatik.tu-muenchen.de/publ/papers/meisinge00 .pdf
>
> After reading that I found that SendEvent is the opposite of triggers? Am
> I right?
>
> greets
> Jan
>
Previous Topic:How to specify those operations to be run in a transition?
Next Topic:How to retrieve subclasses by giving a class
Goto Forum:
  


Current Time: Fri Apr 26 03:34:17 GMT 2024

Powered by FUDForum. Page generated in 0.04283 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top