Login | Register
My pages Projects Community openCollabNet

Discussions > users > [Q] Associative classes and source generation

argouml
Discussion topic

Back to topic list

[Q] Associative classes and source generation

Author autophile
Full name Robert Baruch
Date 2006-03-22 17:34:47 PST
Message Hi all,

I have a simple class layout. A Library contains zero or more Books,
and a Book is contained in one or more Libraries. Now, a specific
Book in a specific Library has a location. For example, we could have
two Library instances, one called EliteUniversityLibrary, and another
called HicktownPublicLibrary. Then let's have a Book instance called
UsingArgoUML.

Both EliteUniversityLibrary and HicktownPublicLibrary have this book.
In EliteUniversityLibrary it's located on the first floor, while in
HicktownPublicLibrary it's located in the basement.

Clearly this is a job for associative classes. So, I make an
associative class called LibraryBook, which has location as an
attribute.

If I do this in ArgoUML, and look at the source tab for Library and
for Book, I find that Library contains a Vector (of Books) and Book
contains a Vector (of Libraries). I don't see anything that ties in
to LibraryBook.

What am I doing wrong?

Thanks,

--Rob

« Previous message in topic | 1 of 7 | Next message in topic »

Messages

Show all messages in topic

[Q] Associative classes and source generation autophile Robert Baruch 2006-03-22 17:34:47 PST
     RE: [argouml-users] [Q] Associative classes and source generation tfmorris Tom Morris 2006-03-22 18:08:23 PST
     Re: [argouml-users] [Q] Associative classes and source generation mkl Markus Klink 2006-03-23 00:34:15 PST
         Re: [argouml-users] [Q] Associative classes and source generation mkl Markus Klink 2006-03-23 00:44:03 PST
             Re: [argouml-users] [Q] Associative classes and source generation autophile Robert Baruch 2006-03-23 08:03:11 PST
                 Re: [argouml-users] [Q] Associative classes and source generation lholmgren Leif Holmgren 2006-03-23 13:44:14 PST
                     Re: [argouml-users] [Q] Associative classes and source generation autophile Robert Baruch 2006-03-23 14:08:35 PST
Messages per page: