Jump to content

How to display this in UML


Recommended Posts

I am doing design and want to show the following in a UML diagram: 

 

Method is "GenerateNextX" and it returns class "X." X won't be held in private data, just stuck in a queue to go elsewhere, where it will be immediately consumed. There really is no single object that is holding onto this  "X" object. So, where in my UML do I define the "X" class? It seems aggregation and composition don't really fit, so I can't stick it on an existing diagram, as it relates to another class. But, I do want to define the class somewhere.

Link to comment

So the Method "GenerateNextX" belongs a class e.g. "Creator" class is that what you mean?

If so the Creator class has a normal Association dependency to the Class "X"

This is what Symbio's UML Modeller would show about that design.

(select an assoication and press Shift to open the Context Help)

post-941-0-57706000-1376607388.png

Cheers,

Mike

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.