Re: ASCII Text notation of UML diagram

From: Daniel T. (postmaster_at_eathlink.net)
Date: 05/30/04


Date: Sun, 30 May 2004 14:17:02 GMT

In article <ujqk80dm78tp0564sr81e4a1uj349ftgju@4ax.com>,
 Robert C. Martin <unclebob@objectmentor.com> wrote:

>On Fri, 23 Apr 2004 12:00:30 GMT, "Daniel T."
><postmaster@eathlink.net> wrote:
>
>>"Matt" <mattloude@hotmail.com> wrote:
>>
>>> I want to know the ASCII text notation of UML diagram. For example,
>>> inheritance notation is <|-----, I am sure this is the wrong one.
>>
>>I don't know that there is a standard but here is how I do it:
>>
>>[ClassA]-----[ClassB] : association or aggregation
>>
>>[ClassA]<>---[ClassB] : composition
>>
>>[ClassA]- - -[ClassB] : dependency
>>
>> [ClassA]
>> A
>> | : inheritance
>> [ClassB]
>
>
>I use <#>-----> for composition and
> <>-----> for aggregation.
>
>And since I don't use aggregation except when arguing about why you
>shouldn't use it, I seldom use <>---->. I imagine that's 'the logic
>behind Daniel's code.

In all honesty, I mainly use OMT and not UML. In OMT (for those who
don't remember :-) [A]<>---[B] means "A delegates to B".