From: Jessica on
Hi All,

When creating a UML class diagram of my MDI application in Visio, what kind
of relationship I should show between my view class and the doc class? Is it
an aggregation with the diamond near the view class, or is it just an
association with the arrow towards the view class?

Thanks in advance,
Jessy

[Cross post from MFC Doc View]
From: Joseph M. Newcomer on
These kinds of questions frighten me. The day I have to start worrying about
flowchart^H^H^H^H^H^H^H^HUML syntax is the day I retire.
joe

On Sun, 11 May 2008 21:54:00 -0700, Jessica <Jessica(a)discussions.microsoft.com> wrote:

>Hi All,
>
>When creating a UML class diagram of my MDI application in Visio, what kind
>of relationship I should show between my view class and the doc class? Is it
>an aggregation with the diamond near the view class, or is it just an
>association with the arrow towards the view class?
>
>Thanks in advance,
>Jessy
>
>[Cross post from MFC Doc View]
Joseph M. Newcomer [MVP]
email: newcomer(a)flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
From: ChrisN on
On Sun, 11 May 2008 21:54:00 -0700, Jessica
<Jessica(a)discussions.microsoft.com> wrote:

>Hi All,
>
>When creating a UML class diagram of my MDI application in Visio, what kind
>of relationship I should show between my view class and the doc class? Is it
>an aggregation with the diamond near the view class, or is it just an
>association with the arrow towards the view class?
>
>Thanks in advance,
>Jessy
>
>[Cross post from MFC Doc View]

Hi Jessica,

To be an aggregate, there needs to be a "whole/part" relationship
between the document and its views.

Personally, I wouldn't consider a view to be "part of" a document, so
I'd denote this as an association, not aggregation.

FWIW, I tend to agree with Joe's sentiments on this...

I hope this helps,

Chris