Yep. Also, in more formal terms, an activity diagram represents all possible
instances of a state machine - that is, all of the possible paths a state
machine can take during its lifetime. If you have a formal description of
your classes(using contracts written in a language like Z or even OCL)  then
you can derive the state diagram and activity diagrams automatically. I'm
getting to that part on my site, but you might also like to read Robert
Binder's book on OO testing which is a mine of information on this subject.

Cheers

Jason Gorman
http://www.xml-objects.com

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kesterton, Anthony
Sent: 02 January 2001 10:16
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: (ROSE) Activity / State -diagram



Hi Arno

> Is it possible to have both states and activities in one
> diagram. I don't
> mean if it is possible technically, but if it is a semantic
> correct way of
> modeling.
> We are modeling a bug's lifecycle. Typically this is a
> statechart diagram.
> One of my collegues created a diagram with both Activities
> and states. I am
> having doubts weather this is semantic correct.

Bear in mind that an activity diagram is just like a state diagram but only
holds activities - so the two are very closely related.

In your state chart - you could have activities listed within the state (so
in your example, have a state called In Test, with the activity Testing
listed in the state icon.

Also - you can have states and activities on an activity diagram - see the
UML User Guide, p260 in my copy, "Because an activity diagram is a kind of
state machine, all characteristics of state machines apply.  That means that
activity diagrams may contain simple and composite states, branches, forks
and joins."  I did not see a diagram example of activity icons on a state
chart - but did not look that hard :-)

regards

anthony

************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************


************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages: 
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************

Reply via email to