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



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 [ 5 posts ] 
Author Message
 Post subject: Rhapsody 7.2 C++ - DistributedComm Factory
PostPosted: Fri Apr 11, 2008 5:36 pm 

Joined: Tue Oct 30, 2007 7:40 pm
Posts: 9
Got this model from an Telelogic Employee and his permission to distribute ... to be honest ... it's pretty cool

You want to realize an interaction between distributed applications which is independend of the underneth transport layer ? ... take a look of the DistributedCommsFactory Example - realized with Winsock and UDP but can be extended to any other (Shared Memory, Pipes whatever)

Example:
Two Components (Application) on one host are communicating by exchanging events via UDP
One Component on Windows Host is communicating with another component on Linux Target.

Have fun


Attachments:
Proxy2.jpg
Proxy2.jpg [ 23.63 KiB | Viewed 741 times ]
TellyCounter2.zip [147.74 KiB]
Downloaded 69 times
WinLinux.jpg
WinLinux.jpg [ 25.77 KiB | Viewed 745 times ]


Last edited by HateVista on Thu Apr 17, 2008 1:21 pm, edited 1 time in total.
Offline
 Profile  
 
 Post subject:
PostPosted: Mon Apr 14, 2008 2:38 pm 

Joined: Mon Mar 03, 2008 5:39 pm
Posts: 13
Hi Hatevista ...I am having rhapsody 7.1.1 but it is showing that there is some version incompatiblity with this one....can you please upload a model which works in 7.1.1


Offline
 Profile  
 
 Post subject:
PostPosted: Thu Apr 17, 2008 1:20 pm 

Joined: Tue Oct 30, 2007 7:40 pm
Posts: 9
The Model is for Rhapsody 7.2 ... download the latest version


Offline
 Profile  
 
 Post subject:
PostPosted: Sun Jan 11, 2009 9:34 pm 

Joined: Wed Dec 10, 2008 10:51 pm
Posts: 138
I've been studying this sample for a couple days now. Please correct me if I'm wrong, but isn't the point of the Factory pattern to allow the user to create the concrete class by only accessing the Abstract class? I would expect a static parameterized constructor in the abstract class that returns a pointer to the concrete class. Where is the constructor? Without the ability to create the concrete object via the abstract class, the user still has to create the concrete object specifically. Am I missing something?


Offline
 Profile  
 
 Post subject:
PostPosted: Mon Jan 12, 2009 8:37 am 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
I haven't downloaded it but it looks familiar. There's probably a static instance() method in the factory that gets implemented by each concrete. Therefore the way to access the factory methods would be via the instance method, e.g.

itsIOXFServerRx = DistributedCommsFactory::instance()->CreateServerRx(...);

This is the same pattern that is used to implement the OSAL (operating system adapter layer). See the OXF model in <rhapsody>/share/langcpp/oxf/model or os.h (generated from that model) in <rhapsody>/share/langcpp/oxf.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 5 posts ] 


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