Topic
  • 5 replies
  • Latest Post - ‏2013-11-16T12:18:42Z by Yevo
2SXP_Francesca_Carla_Rotolo
3 Posts

Pinned topic libraries in Rhapsody

‏2013-05-17T13:57:58Z |

Hello,

I'm using Rational Rhapsody with an harmony profile.

I have to develope a lot of Activity diagrams with a defined actions, and I would crate a library to semplify my work. 

I would know if there is someone that has developed librarias using UML or SYSML language.

Regard,

Francesca

  • Yevo
    Yevo
    280 Posts

    Re: libraries in Rhapsody

    ‏2013-05-21T14:08:01Z  

    You can set Library type in model Component Features dialog (the General page). Take a look on Samples/CppSamples/Elevator model, for example. It contains library components.

  • shanz9903
    shanz9903
    306 Posts

    Re: libraries in Rhapsody

    ‏2013-05-21T16:00:17Z  

    If you mean "how can I reuse my packages" then you can create your template activity diagrams in a template project and then include the package as a reference in any future projects.

  • shanz9903
    shanz9903
    306 Posts

    Re: libraries in Rhapsody

    ‏2013-05-24T08:58:38Z  
    • shanz9903
    • ‏2013-05-21T16:00:17Z

    If you mean "how can I reuse my packages" then you can create your template activity diagrams in a template project and then include the package as a reference in any future projects.

    Alternatively, maybe not a very well known solution is available ...

    Instead of using references, you can get a copy of 'standard content', using stereotypes :-

    See https://www.ibm.com/developerworks/community/groups/service/html/communityview?communityUuid=969f1342-9137-406d-81f5-7f082a7c646d#fullpageWidgetId=W7b708910613a_41a1_aa47_1cc06a5020ec&file=8b83c590-df28-46fc-86dc-069076356708

     

  • buptxch
    buptxch
    31 Posts

    Re: libraries in Rhapsody

    ‏2013-11-16T08:39:15Z  
    • Yevo
    • ‏2013-05-21T14:08:01Z

    You can set Library type in model Component Features dialog (the General page). Take a look on Samples/CppSamples/Elevator model, for example. It contains library components.

    it did works to generate XXX.lib, but the class head file always contain its package head file,  do we use the lib and the class head file  with the package head file in other project, for example in a VC project?

  • Yevo
    Yevo
    280 Posts

    Re: libraries in Rhapsody

    ‏2013-11-16T12:18:42Z  
    • buptxch
    • ‏2013-11-16T08:39:15Z

    it did works to generate XXX.lib, but the class head file always contain its package head file,  do we use the lib and the class head file  with the package head file in other project, for example in a VC project?

    It depends on your library component logic. Ususally Rhapsody generates "include"  of package header file, because reactive class uses events, which are generated in its package. Also package can contain global variables and functions, which may be used by class. You can avoid generation of this "#include" using CG::Class::ImplicitDependencyToPackage property setting to False. But it is on your responsibility, because it could cause incompilable code generation.