It is currently Wed Feb 22, 2012 10:53 pm

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 [ 3 posts ] 
Author Message
 Post subject: Sequence Diagrams and interprocess communication
PostPosted: Wed Jan 25, 2012 8:46 pm 

Joined: Mon Jun 20, 2011 9:08 pm
Posts: 3
I am working on a project with multiple executables. They communicate by sending messages between one another. The messages are simple data structures (typedef'd C structs, to be specific) passed over network sockets. We have our own library that handles sending and receiving the messages.

Previously, we have used sequence diagrams to show how the messages flowed through the system for things like initialization, shutdown, and other major functional threads. Each flow on the sequence diagram was labeled with the message name.

Now we are moving toward using Rhapsody and modeling the whole system, rather than just the sequences. We have the messages created as classes. However, the flows in Rhapsody's sequence diagrams (and the UML standard) are essentially function calls, rather than structure names. We do not currently have a separate function for each flow. Thus, I am struggling with how to show the relation of the flows in the sequence diagram and the messages that they represent.

We are currently putting in Event flows (since operation is asynchronous) with the name of the message. However, this means there is no relationship in the model between the flow and the message structure. Has anyone done modeling of systems like this before? If so, I would be interested to know how you showed these types of message flow sequences.

Thanks.


Offline
 Profile  
 
 Post subject: Re: Sequence Diagrams and interprocess communication
PostPosted: Fri Jan 27, 2012 9:22 am 

Joined: Wed May 07, 2008 3:50 pm
Posts: 151
Location: Horsham, W Sussex, England
Isn't there a method/function call that sends the struct/'Message' (maybe as an argument) through a socket?


Offline
 Profile  
 
 Post subject: Re: Sequence Diagrams and interprocess communication
PostPosted: Fri Jan 27, 2012 2:03 pm 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 399
Location: London
It's a good question. At least it's a question that a lot of us have grappled with over recent years as 'systems' has met 'software' in modelling.

I have attached a little model that might help. It's the essence of what I do.


Attachments:
File comment: Distributed Comms on an SD
DistributedCommunication.zip [12.99 KiB]
Downloaded 11 times
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 3 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:

cron

suspicion-preferred