It is currently Thu Feb 09, 2012 12:27 am

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: Accept Event Action on state charts
PostPosted: Wed Jul 21, 2010 12:12 pm 

Joined: Tue May 25, 2010 9:13 am
Posts: 3
Hi,

is it possible to wait for events using a "Accept Event Action" on a state chart.
It does not work for me with Rhapsody 7.5.1.

Thanks,
Soewa


Offline
 Profile  
 
 Post subject: Re: Accept Event Action on state charts
PostPosted: Mon Oct 18, 2010 2:34 pm 

Joined: Wed Oct 31, 2007 3:09 pm
Posts: 58
Location: Milkyway, classic 9-planet solar system
Afaik, Rhapsody does support the graphical notation of an "Accept Event Action" on statechart diagrams in v7.5 and later (I've checked for v7.5.1). It would also allow to do that on activity diagrams (in both design and analysis mode).

However, Rhapsody also allows using the textual notation in order to show, that a transition waits for an event on a statechart.

The textual format allows to show the triggering event, an optional guard and an optional action (which could be a send action) associated with that transition.

The textual format looks like that:
Event [Guard] / Action

The nice thing about Rhapsody... it does not only show that on a diagram, it can also generate corresponding code (including an automatically generated event class definition on package level and an event reception on class level).

In system analysis mode, the graphical notation may be better understandable and so probably preferable (see on the left):

Attachment:
StatechartAcceptEvent.png
StatechartAcceptEvent.png [ 8.86 KiB | Viewed 327 times ]

For target code / deployable code generation I'd recommend using the textual notation, because it generates more efficient code (avoiding implicit "sendaction" and "accepteventaction" helper states in the code - see on the right).

-Luke.



_________________
May the force be with you ...
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:


suspicion-preferred