Book a Demo

Author Topic: Network devices in MDG toolbox  (Read 4649 times)

kepNCI

  • EA User
  • **
  • Posts: 127
  • Karma: +1/-0
    • View Profile
Network devices in MDG toolbox
« on: June 20, 2012, 02:05:52 am »
In my MDG profile folder I have metaclass for Node where I extend stereotypes for various network devices such as router, patchpanel, switch, server, etc as well as a metaclass for port where I extend a port stereotype.  I then have created a toolbox and a diagram for network design which reference the defined network  stereotypes. All is working fine.  For example, I can select a PatchPanel device from the network design toolbox and drop in onto s network diagram.

Now I would like to define a specific model in my MDG profile under the a node which would already have the number of ports configured. For example, I was hoping that I could use the network design toolbox to select a patch panel that when puilled onto the diagram would already have all of the ports configured. Can I do that?

This is what I tried to do, but it does not work.
In my MDG profile, I created a stereotype called PatchPanel12 to which I configured 12 ports to it and then connected it to the PatchPanel stereotype as a Generalization.
The PatchPanel12 does appear in my toolbox, but selected and dropped into a diagram, the ports are not there. (FYI: It does pickup the attributes from the parent PatchPanel stereotype)

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Network devices in MDG toolbox
« Reply #1 on: June 20, 2012, 09:00:30 am »
I'm assuming you have an MDG Technology with a custom toolbox profile. If not, it's time to create one.

Don't bother with a PatchPanel12 stereotype. Put a patch panel with 12 ports on a diagram. Save the diagram as a UML Pattern. Add a pattern item to your custom toolbox profile (search help for "UMLPatternSilent" for instructions). Add the pattern to your technology and rebuild technology.
The Sparx Team
[email protected]

kepNCI

  • EA User
  • **
  • Posts: 127
  • Karma: +1/-0
    • View Profile
Re: Network devices in MDG toolbox
« Reply #2 on: June 21, 2012, 12:24:29 am »
Thanks, I'll try that today.  Similar question, but outside of MDG. I have a project with a package which has a diagram that defines the patch panel defined with 24 ports. I now would like to drop the patch panel onto a different diagram as a simple link. but when I drag the panel over from the project browser, only the panel (node) is displayed, that is, no ports. I then have to drag the ports from the probser onto the linked patch node and arrange them.  Is there a way to drag an existing node with its configured ports onto a different diagram as a simple link?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Network devices in MDG toolbox
« Reply #3 on: June 21, 2012, 07:18:16 am »
Have you tried to copy/paste all parts? Select element+ports; copy; paste in new diagram. That should work.

q.