home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.object
- Path: sparky!uunet!projtech!sanjiv
- From: sanjiv@projtech.com (Sanjiv Gossain)
- Subject: Re: Can functions be objects?
- Message-ID: <1992Jul29.180139.7333@projtech.com>
- Organization: Project Technology, Inc., Berkeley, CA
- References: <2840@media03.UUCP> <knight.712244466@cunews>
- Date: Wed, 29 Jul 1992 18:01:39 GMT
- Lines: 42
-
- In article <knight.712244466@cunews> knight@mrco.carleton.ca (Alan Knight) writes:
- >In <2840@media03.UUCP> pkr@media03.UUCP (Peter Kriens) writes:
- >
- >>However, I get the uneasy feeling that I am missing
- >>something because everybody else seems to find function objects
- >>which I regard as bad. Even in the book of Rebecca Wirfs-Brock
- >>I am confronted with an Inquiry, a Deposit and a Withdrawal object
- >>in the ATM. In a design I am reviewing I find a XX_Create, XX_Delete
- >>and a XX_Edit object.
-
- [ various stuff deleted ]
- >
- >It seems to me that there is a considerable difference between "plays
- >an active role in the problem domain" and "are tangible things". The
- >different kinds of transactions certainly play an important role in
- >the domain. They just aren't tangible. I think that trying to restrict
- >objects to things that can be picked up and thrown is a bad idea.
-
- I would agree here, although I would suggest that bothe Roles and Tangible
- Things are valid objects during analysis. Tangible things in the
- problem domain are just *one* kind of object that one can identify
- during analysis. The objects that Peter referred to (XX_Create,
- XX_Delete, ..) if they are separate objects, are certainly in my
- opinion "incorrect".
-
- One useful technique which is useful when trying
- to capture the semantics of the problem domain
- is to think of the different categories of objects one can have:
- tangible things, roles, incidents, interactions, and specifications.
- Then try and look at your problem and see if you can identify objects
- from each category in the problem domain. Each category can introduce
- objects during analysis. Thus using such a scheme objects such as
- Deposit, Withdrawal could be seen as objects (in the incident category).
- However, XX_Create, XX_Delete would not.
-
- - Sanjiv
-
- --
- ----------------
- Sanjiv Gossain sgossain@projtech.com
- Project Technology Training and Consulting using Shlaer-Mellor OOA/RD
- Berkeley, CA (510) 845 1484
-