Are you trying to hide it in terms of public and private?

        -----Original Message----- 
        From: Andrea Scaggiante 
        Sent: Thu 3/22/2001 6:18 AM 
        To: [EMAIL PROTECTED] 
        Cc: 
        Subject: (ROSE) Capsule hiding
        
        


        Hi everybody.
        
        I'm working with RoseRT.
        Suppose I have a thread (call it MainThread) where I need a
data, for
        example an integer value, say IntData. This data could be
obtained from a
        class (for example class DataSupplier) with method GetIntData,
or I could
        receive it from a capsule (call it DataOwnerCapsule), so that I
should send
        a message to that capsule and wait to receive the IntData in
another message
        from that capsule. I would like to prepare only one MainThread
able to deal
        with both situations.
        I would like to hide the communications to DataOwnerCapsule in a
different
        implementation of DataSupplier:  DataSupplier could become a
capsule too; by
        calling the GetIntData method of DataSupplier I could send a
message to
        DataCapsule and wait for the answer; then I could return the
value (and the
        control) to the MainThread. In MainThread I only call the method
GetIntData.
        DataSupplier now would be an interface to another capsule.
        
        This, more or less, is the situation.
        The question is:
        Is there any way to hide the communication to a capsule (and the
creation of
        the capsule too)?
        
        I hope I was able to explain what I need.
        Thank you for any help.
        
        Andrea.
        
        
************************************************************************
        * 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
        *
        
************************************************************************
*
        
        

winmail.dat

Reply via email to