home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.univie.ac.at!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!rpi!uwm.edu!spool.mu.edu!yale.edu!ira.uka.de!news.belwue.de!news.uni-stuttgart.de!news.uni-stuttgart.de!news
- From: LANG@nvdv.e-technik.uni-stuttgart.dbp.de (MARTIN LANG)
- Newsgroups: comp.object
- Subject: Re: Booch question: new class relationship?
- Date: 27 Jan 1993 14:46:27 GMT
- Organization: University of Stuttgart, IND (Germany)
- Lines: 51
- Distribution: world
- Message-ID: <1k6783INNka9@info2.rus.uni-stuttgart.de>
- References: <894@ulogic.UUCP> <rmartin.727740331@thor>
- NNTP-Posting-Host: nvdv01.ind.e-technik.uni-stuttgart.de
- X-News-Reader: VMS NEWS 1.24
- In-Reply-To: rmartin@thor.Rational.COM's message of 22 Jan 93 22:05:31 GMT
-
- > The "using" relationships described in his book have been replaced
- > with:
- >
- > Contains by Value
- > Which is a black circle, a double line and a black box
- >
- > *=========#
- >
- > Contains by Reference
- > A black circle, double line and a white box
- >
- > *=========[]
- >
- > Uses
- > A white circle, double line and no box.
- >
- > O=============
- >
- > Robert Martin | Design Consulting | Training courses offered:
- > R. C. M. Consulting | rmartin@rational.com | Object Oriented Analysis
- > 2080 Cranbrook Rd. | Tel: (708) 918-1004 | Object Oriented Design
- > Green Oaks, Il 60048| Fax: (708) 918-1023 | C++
-
-
- Which class relationship is appropriate if you have two relations at the
- same time, e.g.
-
- class ValueAndUse {
- void AddValue(Value & val);
-
- Value X;
- };
-
- or
-
- class ReferenceAndUse {
- void AddRef(Ref & r);
-
- Ref * ref;
- };
-
- or
-
- class ValueAndReference {
- Member x;
- Member * y;
- };
-
-
- Martin Lang
- University of Stuttgart
-