Docsity

Object-Oriented Design: A Comparison of RDD and OOD Methodologies, Exercises of Design

Toggle sidebar
bg1
Object-Oriented and
Conventional Analvsis and
J
Design Methodologies
Comparison and Critique
Robert
G.
Fichman and Chris
F.
Kemerer
Massachusetts Institute
of
Technology
The question
of
whether emerging
object-oriented
analysis and design
methodologies require
incremental or radical
changes on the part
of
prospective
adopters is being
vigorously debated.
lthough the concepts underlying object-orientation as a programming
discipline go back two decades, it’s only in the last few years that object-
oriented analysis
(OOA)
and object-oriented design
(OOD)
methodol-
ogies have begun to emerge. Object orientation certainly encompasses many novel
concepts, and some have called it a new paradigm for software development. Yet,
the question of whether object-oriented methodologies represents a radical change
over such conventional methodologies as structured analysis remains a subject
of
much debate.
Yourdon has divided various object-oriented methodologists into two camps,
revolutionaries
and
synthesists.’
Revolutionaries believe that object orientation is
a radical change that renders conventional methodologies and ways
of
thinking
about design obsolete. Synthesists, by contrast, see object orientation as simply an
accumulation of sound software engineering principles that adopters can graft
onto their existing methodologies with relative ease.
On
the side
of
the revolutionaries, Booch2 states
Let there be
no
doubt that object-oriented design is fundamentally different from
traditional structured design approaches: it requires a different way of thinking about
decomposition, and
it
produces software architectures that are largely outside the realm
of the structured design culture.
Coad and Yourdon3 add
We have
no
doubt that one could arrive at the same results [as Coad and Yourdon’s
OOA
methodology produces] using different methods; but it has also been
our
experience that
the thinking process, the discovery process, and the communication between user and
analyst are fundamentally different with
OOA
than with structured analysis.
On
the side
of
the synthesists, Wasserman, Pircher, and Muller4 take the position
that their object-oriented structured design
(OOSD)
methodology is essentially an
elaboration of structured design. They state that the “foundation of
OOSD
is
structured design” and that structured design “includes most of the necessary
22
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Object-Oriented Design: A Comparison of RDD and OOD Methodologies and more Exercises Design in PDF only on Docsity!

Object-Oriented and

Conventional Analvsis and

J

Design Methodologies

Comparison and Critique

Robert G. Fichman and Chris F. Kemerer

Massachusetts Institute of Technology

The question of

whether emerging object-oriented

analysis and design

methodologies require

incremental or radical

changes on the part

of prospective

adopters is being

vigorously debated.

lthough the concepts underlying object-orientation as a programming discipline go back two decades, it’s only in the last few years that object- oriented analysis (OOA) and object-oriented design (OOD) methodol- ogies have begun to emerge. Object orientation certainly encompasses many novel concepts, and some have called it a new paradigm for software development. Yet, the question of whether object-oriented methodologies represents a radical change

over such conventional methodologies as structured analysis remains a subject of

much debate. Yourdon has divided various object-oriented methodologists into two camps,

revolutionaries and synthesists.’ Revolutionaries believe that object orientation is

a radical change that renders conventional methodologies and ways of thinking about design obsolete. Synthesists, by contrast, see object orientation as simply an accumulation of sound software engineering principles that adopters can graft onto their existing methodologies with relative ease. On the side of the revolutionaries, Booch2 states

Let there be no doubt that object-oriented design is fundamentally different from traditional structured design approaches: it requires a different way of thinking about decomposition, and it produces software architectures that are largely outside the realm of the structured design culture.

Coad and Yourdon3 add

We have no doubt that one could arrive at the same results [as Coad and Yourdon’s OOA methodology produces] using different methods; but it has also been our experience that the thinking process, the discovery process, and the communication between user and analyst are fundamentally different with OOA than with structured analysis.

On the side of the synthesists, Wasserman, Pircher, and Muller4take the position

that their object-oriented structured design (OOSD) methodology is essentially an

elaboration of structured design. They state that the “foundation of OOSD is structured design” and that structured design “includes most of the necessary

concepts and notations” for OOSD. Page-Jones and Weiss5 take a similar position in stating that

T h e problem is that object orientation has been widely touted as a revolutionary approach, a complete break with t h e past. This would b e fascinating if it were true, but it isn’t. Like most engineeringdevelop- ments, the object-oriented approach is a refinement of some of t h e best software engineering ideas of the past.

Factors to consider. One of the most

important assessments a company must make in considering the adoption of a technical innovation is where the inno- vation falls on the incremental-radical continuum in relation to its own current practice. Incremental innovations intro- duce relatively minor changes to an ex- isting process or product and reinforce the established competencies of adopt- ing firms. Radical innovations are based on a different set of engineering and scientific principles, and draw on new technical and problem-solving skills. If object-oriented analysis and design comes to be regarded as a radical change by most organizations, then a strong, negative impact on the ultimate rate of adoption of the technology can be ex- pected. Compared with incremental change, implementation of radical change involves greater expense and risk, and requires different management strategies. Many development groups have already invested considerable re- sources in conventional methodologies like structured analysis/structured de- sign or information engineering. These investments can take many forms, in- cluding training in the specifics of the methodology, acquisition of automated tools t o support the methodology, and repositories of analysis and design mod- els accumulated over the course of em- ploying the methodology. On an industry-wide level, vendors have been actively developing more powerful tools t o support conventional methodologies, and a growing pool of expertise now exists in the use of these tools. T o the extent that object orienta- tion is a radical change, investments in conventional methodologies will be lost: Staff will have to be retrained, new tools will have to be purchased, and a likely expensive conversion process will be necessary. Implementation of radically new tech- nologies also involves a much greater element of risk because the full range of

impacts is typically unknown. Moreover, the implementation of a radically new methodology requires different strate- gies to manage this risk and to over- come other implementation barriers (such as resistance to change). The radical-versus-incremental de- bate is crucial to assessing the future of object orientation and formulating a transition strategy, but unfortunately no comprehensive analyses have been performed comparing leading object- oriented methodologies with conven- tional methodologies. Two surveys of object-oriented methodologies have been compiled. but these only cover either analysish or design,’ and neither draws specific comparisons with con- ventional methodologies. Loy’ provides an insightful commentary on the issue of conventional versus object-oriented methodologies, although no specific methodologies are compared. The current research fills the gap left by other surveys by analyzing several leading conventional and object- oriented analysis and design methodol- ogies. including a detailed point-by-point comparison of the kinds of modeling tools provided by each. A^ review (de- scribed below in greater detail) was performed that resulted in the selection of six analysis methodologies and five de sign methodologies. T h e analysis methodologies were

DeMarco structured analysis, Yourdon modern structured analy-

Martin information engineering

Bailin object-oriented requirements

Coad and Yourdon object-oriented

Shlaer and Mellor object-oriented

sis,

analysis.

specification,

analysis, and

analysis.

The design methodologies were

Yourdon and Constantine structured

Martin information engineeringde-

Wasserman et al. object-oriented

Booch object-oriented design, and Wirfs-Brock et al. responsibility-

design,

sign,

structured design.

driven design.

Incremental or radical? We conclude

that the object-oriented analysis meth-

odologies reviewed here represent a radical change over process-oriented methodologies such as DeMarco struc- tured analysis but only an incremental change over data-oriented methodolo- gies such as Martin information engi- neering. Process-oriented methodolo- gies focus attention away from the inherent properties of objects during the modeling process and lead to a mod- el of the problem domain that is orthog- onal to the three essential principles of object orientation: encapsulation, clas- sification of objects, and inheritance. By contrast, data-oriented method- ologies rely heavily on the same basic technique - information modeling - as each of the three O O A methodolo- gies. T h e main differences between

OOA and data-oriented conventional

methodologies arise from the principle of encapsulation of data and behavior:

OOA methodologies require that all

operations be encapsulated within ob- jects, while conventional methodologies permit operations to exist as subcom- ponents of disembodied processes. At the level of detail required during anal- ysis, however, we conclude that expert information modelers will be able t o learn and apply the principle of encap- sulation without great difficulty. Regarding design methodologies, we conclude that object-oriented design is a radical change from both process- oriented and data-oriented methodolo- gies. The OOD methodologies we re- view here collectively model several important dimensions of a target sys- temnot addressed by conventional meth- odologies. These dimensions relate to the detailed definition of classes and inheritance, class and object relation- ships, encapsulated operations, and message connections. T h e need for adopters to acquire new competencies related t o these dimensions, combined with Booch’s uncontested observation that OOD uses a completely different

structuring principle (based on object-

oriented rather than function-oriented decomposition of system components),

renders OOD as a radical change.

Conventional methodologies

A systems development methodolo- gy combines tools and techniques to guide the process of developing large-

October 1992 23

modeling of data began to take on a

more central role in systems develop- ment, culminating in the development of data-oriented methodologies such as information engineering. The concep- tual roots of data-oriented methodolo- gies go back to the 1970s with the inven- tion of the relational database model and entity-relationship modeling, al- though it took several years for mature data-oriented methodologies to emerge. The data-oriented approach has two central assumptions:

(1) Organizational data provides a more stable foundation for a system design than organizational procedures.

(2) Data should be viewed as an or-

ganizational resource independent of the systems that (currently) process the data.

One outgrowth of the data-oriented approach was the creation of a new information systems subfunction, data administration, t o help analyze, define, store, and control organizational data.

Martin" information engineering is a comprehensive methodology that ex- tends the data-oriented approach across the entire development life cycle. While structured methods evolved backwards through the life cycle from program- ming, information engineering evolved forward through the life cycle from plan- ning and analysis. Martin defines infor- mation engineering as consisting of four phases:

(1) Information strategy planning,

(2) Business area analysis,

(3) System design, and (4) Construction.

Information engineering distinguish-

es activities that are performed on the

level of a business unit (planning and analysis) from those that are project- specific (design and construction). Com- pared with structured methods, infor- mation engineering recommends a much broader range of analysis techniques and modeling tools, including enterprise modeling, critical-success-factors anal- ysis, data modeling. process modeling. joint-requirements planning. joint- applications design, time-box method- ology, and prototyping (see the sidebar. "Tools for Martin information engineer- ing"). Information engineering describes

Tools for Martin information engineering

Actlon diagram - Used to depict detailed procedurallogic at a given lev- el of detail (for example, at a system level or within individual modules). Similar to structured English, except graphical constructs are used to high- light various control structures (condition, sequence, iteration, and selec- tion).

Bubble chart - A low-level diagram used as an aide to normalizationof relational tables. Shows attributes (depicted as bubbles) and the functional dependencies between them (depicted as directed arcs).

Dataflow diagram (DFD) - Conforms to the conventionalnotation and usage for dataflow diagrams (see the sidebar, "Tools for structured method- ologies").

Data-model diagram - Depicts data entities (boxes) and their relational connections (lines). Shows cardinality and whether the connections are op- tional or mandatory. Similar to the entity-relationshipdiagram.

Data-structure diagram - Shows data structures in a format appropriate to the database management system to be used for implementation.

Encyclopedia - A more comprehensive version of the data dictionary that serves as an integrated repository for modeling informationfrom all de- velopment phases, including the enterprise model; organizationalgoals, crit- ical success factors, strategies, and rules; data models and data definitions; process models and process definitions; and other design-relatedinforma- tion. Automated support is assumed.

Enterprise model - A model that defines, at a high level, the functional areas of an organizationand the relationshipsbetween them. It consists of text descriptionsof functions (usually an identifiable business unit such as a department) and processes (a repetitive, well-defined set of tasks that sup- port a function).

Entity-process matrix - Cross-referencesentities to the processes that use them.

Process-decomposition diagram - A hierarchical chart that shows the breakdown of processes into progressivelyincreasing detail. Similar to the conventionaltree diagram, except a particularly compact notation is used to fit many levels on one page.

Process-dependency diagram - A diagram consisting of processes (de- picted by bubbles) and labeled arcs. It shows how each process depends on the prior execution other processes. Similar to a dataflow diagram, except conditional logic and flow of control is also depicted.

State-transition diagram - Conforms to the conventionalnotation and usage for state-transitiondiagrams (see the sidebar, "Tools for structured methodologies").

planning as an organization-wide activ- i t y that develops an enterprise model and a high-level data architecture. Busi- ness area analysis attempts to capture a more detailed understanding of busi- ness activities and their interdependen-

cies, using such tools as data-model di- agrams, decomposition diagrams, pro- cess-dependency diagrams, and entity- process matrices. The design phase builds on the results of prior phases and produces a detailed model of a target

October 1992 25

system consisting of process-decompo- sition diagrams, process-dependency diagrams, dataflow diagrams, action di- agrams, and data-structure diagrams. System construction, the last phase of information engineering, consists of translating the models from the design phase to an operational system-ideal- ly using a code generator.

Object-oriented analysis methodologies

As with traditional analysis, the pri- mary goal of object-oriented analysis is the development of an accurate and complete representation of the prob- lem domain. We conducted a literature search t o identify well-documented, broadly representative O O A method- ologies first published in book form or as detailed articles in refereed journals from 1980 t o 1990. This search resulted in the selection of three methodologies from Coad and Yourdon,’ Bailin,I4 and Shlaer and Mellor.’5.’6Numerous O O A methodologies have emerged in recent

years. Since no more than a few meth-

odologies could be compared in depth, two criteria - maturity (first published prior t o 1990) and form of publication (book or refereed journal) -were used t o select among them. Several method- ologies were identified that did not meet these criteria (see Fichman and Kemer- er”) although this should not be taken to mean they are inferior to those that did. Object-oriented analysis is, of course, quite young; it is much too early to predict which (if any) of the current methodologies will come t o be recog- nized as standard works in the field. The goal here is to provide a detailed com- parison of representative methodolo- gies at a single point in time, not a comprehensive review. The three methodologies are present- ed in the order of their similarity t o conventional methodologies. Bailin’s methodology is viewed as most similar, followed by Coad and Yourdon’s, and then Shlaer and Mellor’s.

Bailin object-oriented requirements

specification. Bailin developed object-

oriented requirements specification (00s) in response t o a perceived in- compatibility between conventional structured analysis and object-oriented design. Outwardly, the method resem-

bles structured analysis in that a system decomposition is performed using a dataflow diagram-like notation. Yet, there is an important difference: Struc- tured analysis specifies that functions should be grouped together only if they are “constituent steps in the execution of a higher level function,” while 0 0 s groups functions together only if they “operate on the same data ab~traction.”’~ In other words, functions cannot exist as part of disembodied processes, but must be subordinated t o a single entity. (Bailin uses the term entity rather than object for stylistic reasons only; the terms are assumed t o be interchangeable.) This restriction is used t o promote encapsu- lation of functions and data. Two distinctions are central to 00s. First, Bailin distinguishes between enti- ties, which possess underlying states that can persist across repeated execution cycles, andfunctions, which exist solely to transform inputs to outputs and thus have no underlying states remembered between cycles. Entities can be further decomposed into subentities or func- tions, but functions can only be decom- posed into subfunctions. Second, Bailin distinguishes between two classes of entities, active and pas- sive. Active entities perform operations

(on themselves or other entities) im-

portant enough to be considered in de- tail during the analysis phase, while pas- sive entities are of lesser importance and can therefore be treated as a “black box” until the design phase. These dis- tinctions are important because, as we show below, active entities, passive entities, and functions are each mod- eled differently during the analysis process. The 00s methodology consists of a seven-step procedure:

(1) Identify key problem domain en- tities. Draw dataflow diagrams and then designate objects that appear in process names as candidate entities. (2) Distinguish between uctive and passive entities. Distinguish between entities whose operations are signifi- cant in terms of describing system re- quirements (active entities) versus those whose detailed operations can be deferred until design (passive). Con- struct an entity-relationship diagram (ERD). (3) Establish datuflowws between ac- tiveentities. Construct the top-level (level 0 ) entity-dataflow diagram (EDFD).

Designate each active entity as a pro- cess node and each passive entity as a dataflow or data store. (4) Decompose entities (orfunctions) into subentities and/or functions. This step is performed iteratively together

with steps 5 and 6. Consider each active

entity in the top-level E D F D and deter- mine whether it is composed of lower

level entities. Also consider what each

entity does and designate these opera- tions as functions. For each of the sub- entities identified, create a new E D F D and continue the decomposition pro- cess.

(5) Check f o r new entities. At each

stage of decomposition, consider wheth- e r any new entities are implied by the new functions that have been intro- duced and add them to the appropriate EDFD, reorganizing EDFDs as neces- sary. (6) Group functions under new enti- ties. Identify all the functions performed by or on new entities. Change passive to active entities if necessary and reorga- nize EDFDs as appropriate. (7) Assign entities to uppropriate do- mains. Assign each entity to some ap- plication domain, and create a set of ERDs, one for each domain.

The end result of 00s is an entity- relationship diagram, together with a hierarchy of entity-dataflow diagrams (see the sidebar “Tools for Bailin ob- ject-oriented requirements specifica- tion’’). Bailin’s methodology conforms to the essential principals of object ori- entation, although explicit object- oriented terminology is not used. (Loy lists three principles that distinguish object orientation from other approach- es: encapsulation of attributes, opera- tions, and services within objects; clas- sification of object abstractions; and inheritance of common attributes be- tween classes.) The entity-relationship diagrams capture a classification of ob- jects as well as opportunities for inher- itance, and Bailin’s functions map to the object-oriented concept of encapsu- lated services.

Coad and Yourdon object-oriented

analysis. Coad and Yourdonj view their

O O A methodology as building “upon the best concepts from information modeling, object-oriented programming languages, and knowledge-based sys- tems.” O O A results in a five-layer mod- el of the problem domain, where each

26 COMPUTER

I

Tools for Shlaer and Mellor object-oriented analysis

Actlon-daatlow diagram (ADFD) - Similar to DFDs, except ADFDs are used to model elementary “action” processes rather than to create a top- down functional decomposition of the entire system. Standard DeMarco no- tation is used, except additional notations are provided to show control flows and to show conditionalityin the execution of dataflows and control flows.

Domain chart - A simple diagram that illustrates all domains relevant to the implementationof an OOA model. Domains are enclosed within bubbles and are connected by directed a m. These arcs represent bridges between domains. Four types of domains are identified: application, service, architec- tural, and implementation.

Information structure diagram - A variant on the entity-relationshipdia- gram that shows objects (boxes) connected by relationships(labeled arcs). Attributes are listed within object boxes. Relationship conditionalityand mul- tiplicity are also shown.

Object and attribute description - A text description of an object, in- cluding object name, object description, object identifier, a list of attributes, and descriptions of each attribute.

Object-access model - Shows the synchronous interactions between state models at the global system level. Synchronous interactionsoccur when one state model accesses the instance data of another object via an accessor process. State models (enclosed in ovals) are connected to each other by directed arcs labeled with the accessor process.

Object-communlcatlon model - Shows the asynchronous interactions between state models and extemal entities at the global system level. State models (enclosed in ovals) are connected to each other and to external enti- ties (enclosed in boxes) by directed arcs labeled with communicatingevents.

Process desctlptlon - A narrative description of a process. A process description is needed for every process appearing on an action-dataflow dia- gram.

Relationship specfflcatlon - A text description of each relationship, in-

cluding the name of the relationship (from the point of view of each object),

conditionality(required or optional), multiplicity (one-to-one, oneto-many, many-to-many),a general descriptionof the relationship, and identification of the attributes (foreign keys) through which the relationshipis formalized.

State m W l - State models conform to the conventional notation for

state-transitiondiagrams (see the sidebar, “Tools for structured methodolo-

gies”), except they are used to model the states of problem domain entities. (Traditional STDs, by contrast. model the states of a system, system compo- nent, or process.)

Subsystem access model - Shows synchronous interactions between object-access models (one OAM exists for each subsystem). Directed, la- beled arcs represent synchronous processes flowing between OAMs (en- closed in boxes).

Subsystem communication model - Shows asynchronous interactions between object-communicationmodels (one OCM exists for each sub- system). Directed, labeled arcs represent asynchronous events flowing be- tween OAMs (enclosed in boxes).

Subsystem relationship model - Shows relationships between informa- tion models(whereeach subsystem has exactly one information model). In-

formation models (enclosed in boxes) are connected by undirected arcs (la-

beled with relationships).

of an entity, that is, a person, place, thing, or event that exists in the real world.)

( 2 ) Define object life cycles. The fo-

cus here is on analyzing the life cycle of each object (from creation through de- struction) and formalizing the life cycle into a collection of states (some pre- defined condition of an object), events (signals that cause transitions from state to state), transition rules (which specify the allowable transitions b e t w e e n

states), and actions (activities or opera-

tions that must be done by an object upon arrival in a state). This step also

defines timers, mechanisms used by ac-

tions to generate a future event. The primary tool during this step is the state model. (See the sidebar, “Tools for Shlaer and Mellor object-oriented anal- ysis.”)

( 3 ) Define the dynamics of relation-

ships. This step develops a state model

for those relationships between objects that evolve over time (dynamic rela- tionships). For each dynamic relation- ship, an associative object is defined in the information model. Special assigner state models are defined for relation- ships in which there may be contention between object instances for resources of another object instance.

( 4 ) Definesystem dynamics. This step

produces a model of time and control at the system level. An object-communi- cation model (OCM) is developed to show asynchronous control (akin to sim- ple message passing). An object-access model is developed to show synchro- nous control (instances where one ob- ject accesses the instance data of anoth- er through an accessor process). Shlaer and Mellor also describe a procedure for tracing threads of control at a high level (by following events on the OCM) and at a more detailed level (by creating a thread-of-control chart for individual actions).

( 5 ) Developprocessmodels. For each

action, an action-dataflow diagram is created that shows all of the processes for that action, and the data flows among the processes and data stores. (Stan-

dard DeMarco notation for DFDs is

used, except additional notations are provided to show control flows and to show conditionality in the execution of dataflows and control flows.) OOA de- fines four types of processes (accessors, event generators, transformations, and tests) and provides guidelines for de-

COMPUTER

I

composing actions into these constitu- ent processes. (6) Define domains und subsysterns.

For large problems, it can be useful to

decompose the subject matter into con-

ceptually distinct domains. Four types

of domains are identified: application, service, architectural, and implementa- tion. In addition, it is sometimes useful to decompose the application domain into multiple subsystems.

Shlaer and Mellor provide implicit. rather than explicit,support for the three essential principles of object orienta- tion - classification, inheritance, and encapsulation. The objects and relation- ships contained in the information struc- ture diagram, while not identical to ob- ject-oriented concepts of classification and inheritance, can easily be mapped to these concepts during design. (Regu- lar entities and parent entities engaged in is-a style relationships correspond to classes and superclasses, respectively. and identify candidate inheritance rela- tionships. The is-part-of style relation- ships correspond to whole-to-part class relationships.) The requirement that each action process (and associated data- flow diagram) be associated with exact- ly one object preserves encapsulation of those operations.

Comparison of analysis methodologies

The conventional and OOA method-

ologies reviewed here can be compared along 1 1 modeling dimensions: these dimensions represent the superset of dimensions supported by the individual methodologies (see Table 1). Since the various methodologists tend to use wide- ly divergent terminology and notations

for similar concepts, Table 1 presents

the dimensions at a level that captures essential similarities and differences between the methodologies. We exam- ined the concepts and notations advo- cated by each methodology in detail to determine those that were variants on the same basicidea. (For example, Coad and Yourdon’s concept of a generaliza- tion-specialization relationship between objects is viewed as essentially the same as the is-a style or s u b t y p e h p e r t y p e entity relationships described in the oth- er analysis methodologies. When used as part of an OOA methodology, gener-

alization-specialization and is-a relation- ships are both intended to identify can- didate opportunities for inheritance.)

Object-oriented versus conventional

analysis. As Table 1 shows, object-

oriented analysis covers many of the

same dimensions as Yourdon MSA^ and

Martin information engineering, al- though there is a marked contrast be-

tween OOA and DeMarco structured

analysis. MSA, information engineer-

ing, and all of the object-oriented meth- odologies provide a variety of tools for modeling entities. These include tools for defining entity relationships and at- tributes (see Table 1 , rows 1 through 4) and partitioning large models by group-

ing naturally related entities (row 5).

MSA. Coad and Yourdon OOA, and

Shlaer and Mellor OOA support mod-

eling of states (row 6), although within

MSA states are modeled at the level of

a system or system component, while in

the OOA methodologies states are

modeled at the level of problem domain entities (objects). DeMarco structured

analysis, MSA, Coad and Yourdon

OOA, and Shlaer and Mellor OOA pro-

vide tools for defining the detailed logic

within functions or services (row 7 ).

The most important differences be- tween object-oriented and convention- al analysis methodologies ultimately stem from the object-oriented require- ment of encapsulated operations. Con- ventional methodologies provide tools to create a functional decomposition of operations (row 8) and to model end-

to-end processing sequences (row 9). A

functional decomposition of systems violates encapsulation because opera- tions can directly access a multitude of different entities and are not subordi- nated to any one entity; so it is appropri- ate that no object-oriented methodolo- gy provides support here. It is less clear

why none of the OOA methodologies

as reviewed here provide an explicit model of end-to-end processingsequenc- es, since there is no inherent incompat- ibility between this view of a system and object orientation. This issue is discussed further in the concluding section.

All the OOA methodologists recog-

nize a need to develop some sort of model of system operations, albeit in a

way that preserves encapsulation. As a

result, each methodology provides new tools, or variants on conventional tools, for modeling operations as exclusive services of objects (row 10). Row 11

illustrates a further distinction between object-oriented and conventional anal- ysis that arises from the need in object orientation for active communication between entities. (Entities communi- cate explicitly in an object-oriented sys- tem, whereas in a conventional system, entities are passive data stores manipu- lated by active, independent proce- dures.)

OOA methodology similarities. The

three OOA methodologies illustrated

inTable 1 overlapsignificantly, although different notations and terminology are used for essentially the same concepts. These stylistic differences obscure the fact that, in each of the three methodol- ogies, entities (objects) and relation- ships establish a foundation for later stages of analysis. Bailin uses a standard

ERD notation, which includes the idea

of s u b t y p e h p e r t y p e relationships, as well as any number of user-defined re- lationships. Shlaer and Mellor’s infor- mation structure diagrams are similar

in terms of content to^ ERDs.^ While

neither of these methodologies specifi- cally mentions such object-oriented no- tions as inheritance and object classifi- cation, E R D s do, in fact, capture candidate instances of these sorts of relationships using subtypekupertype constructs.

Dynamic entity connections and us-

ing-style relationships are also captured in E R D s through such relationship types as creates, destroys, uses, and modifies. Unlike the other two methodologies, Coad and Yourdon refer explicitly to object-oriented concepts such as inher- itance and object decomposition. None-

theless, layers I , 2, and 4 of the class and

objects diagram can easily be mapped

to an ERD notation, and these three

layers serve essentially the same pur-

pose as an ERD. (The objects and class-

es identified in level 1 map to the ERD

concept of an entity. The generaliza- tion-specialization relationships defined

in level 2 correspond to s u b t y p e h p e r -

type relationships in an ERD. The whole-

part structures defined in level2 and the associative relationships identified in layer 4 correspond to general relation- ships in an ERD.)

OOA methodology differences. The

clearest differences between the meth- odologies occur in three areas:

(1) depiction of entity states,

October 1992 29

(2) definition of exclusive services, and (3) attention to attribute modeling.

Shlaer and Mellor place the most em- phasis on modeling entity states and devote an entire phase of their method- ology to defining entity life cycles and depicting them in state models. Coad and Yourdon also model entity states, although this does not appear t o be a significant component of the methodol- ogy. (Coad and Yourdon’s service chart contains much of the same information as Shlaer and Mellor’s state model, al- though it also contains procedural logic unrelated to entity states and transitions. Coad and Yourdon recommend the use of an object-state diagram where help- ful, but this diagram does not explicitly name the events that trigger transitions. The object-state model is referred to only sparingly, and does not appear to

be a significant component of the final

system model.) Bailin has no formal means of depicting entity states and tran- sitions, although he notes that state-tran- sition diagrams are being considered as one possible extension of the method. Coad and Yourdon and Shlaer and Mellor provide the most detailed repre- sentations of exclusive services. In Coad and Yourdon, exclusive services are as-

signed to objects in layer 5 of the class

and objects diagram. and the procedural logic contained in each service is defined in detail in an associated service chart. Shlaer and Mellor also identify exclu- sive services, which they term actions. Actions are identified on state models (object specific) and are defined in de- tail in t h e action-dataflow diagram (ADFD) and corresponding process de- scriptions. The primary tool for model- ing Bailin’s functions - the entity-data- flow diagram-contains much less detail than Coad and Yourdon’s service chart

or Shlaer and Mellor’s A D F D with pro-

cess descriptions. The methodologies differ substantial- ly in their level of attention to attribute

modeling. Bailin places a very low em-

phasis on defining attributes of^ entities; in fact, he makes no mention of attribute modeling at all. Coad and Yourdon de- vote a phase to identifying attributes, although not to the extent of ensuring that attributes are normalized within entities. Shlaer and Mellor provide the most emphasis on attribute modeling of the three methodologies, including ex- tensive guidance for describing and nor- malizing attributes.

Finally, Shlaer and Mellor support some concepts not addressed by Coad and Yourdon or Bailin. These include

(1) a distinction between asynchro-

nous and synchronous control,

(2) the use of timers to generate fu-

ture events, and (3) the concept of a dynamic rela- tionship and its role in handling contention between concurrent processes.

OOA: Incremental versus radical

change. With regard to the incremental

versus radical debate, object-oriented analysis does represent a radical depar- ture from older process-oriented meth- odologies such as DeMarco structured analysis, but is only an incremental change from data-oriented methodolo- gies like Martin information engineer-

ing. Table 1 shows that O O A methodol-

ogies typically model six dimensions of

the problem domain not contained in a structured analysis model (see rows 1-3, 6,10-11) and d o not model two process- oriented dimensions (rows 8-9) that form

the foundation of a D e Marco struc-

tured analysis model. O O A decompos- es the problem domain based on a clas- sification of entities (objects) and their relationships, while structured analysis provides a decomposition based on pro- cesses. Developers schooled in DeMar- CO structured analysis will find the com- petencies they developed in t h e construction of hierarchies of DFDs to be, for the most part, irrelevant. Mean-

while, a whole new set of competencies

relating to the classification and model- ingof entities will have to be developed. The revolutionaries quoted in the in- troduction rightly observe that object orientation is fundamentally at odds with the process-oriented view of systems favored by structured methodologies during the 1970s. However, they ignore important changes in these same meth- odologies over the course of the 1980s towards a more balanced view of data and processes. O O A methodologies only model two dimensions of the problem domain not modeled by Yourdon MSA or Martin information engineering (see

Table 1. rows 10-1 I ).

All the OOA methodologies reviewed here contain a heavy information mod- eling component, and potential adopt-

ers with a strong information modeling

background should require only limited exposure to absorb the notational dif-

ferences between conventional infor- mation modeling diagrams and the vari- ants developed by OOA methodolo- gists. T h e idea of shifting f r o m disembodied processes (modeled in dataflow diagrams) t o encapsulated ser- vices will be more challenging. Howev- er, at the level of detail required for analysis, this conceptual shift can prob- ably be absorbed without great difficul- ty. Shlaer and Mellor OOA, with its emphasis on modeling object life cycles, appears to represent the most signifi- cant change of the three O O A method- ologies.

Object-oriented design methodologies

Design is the process of mapping sys- tem requirements defined during anal-

ysis t o a n abstract representation of a

specific system-based implementation, meeting cost and performance con- straints. As was done with OOA meth- odologies, we conducted a literature search to identify broadly representa- tive OOD methodologies first published in book form or as detailed articles in refereed journals from 1980 to 1990. This resulted in the selection of three methodologies from Booch,’ Wasser- man et al.,” and Wirfs-Brock et al.’’ Implementation-specific methodologies, such as those targeted at real-time sys- tems using the Ada language, were ex- cluded from consideration. We present the methodologies in an order based on their similarities to con- ventional methodologies. Wasserman et al. draws most heavily on structured design and is presented first, followed by Booch, and Wirfs-Brock et al.

Wasserman et al. object-oriented

structureddesign. Object-oriented struc-

tured design (OOSD) was developed by Wasserman, Pircher, and Muller. The methodology provides a detailed nota- tion for describing an architectural de- sign, which they define as a high-level design that identifies individual mod- ules but not their detailed internal rep- resentation. Wasserman et al. state that the overall goal of O O S D is to provide

a standard design notation that can sup-

port every software design, including both object-oriented and conventional approaches. OOSD offers a hybrid notation that

October 1992 31

Tools for Wasserman et al. object-oriented structured design

Object-oriented structure chert - An updated version of the classical structure chart that adds notations for objects and classes (“information clusters”),methods, visibility, instantiation,exception handling, hidden oper- ations, generic definitions (abstract classes), inheritance, and concurrency. The charts can also be used to show multiple inheritance, message passing, polymorphism, dynamic binding, and asynchronous processes.

incorporates concepts from previous work from several areas, including struc- ture charts from structured design; Booch’s notation for Ada packages and tasks; hierarchy and inheritance from object orientation: and the concept of monitors from concurrent programming. However, as Wasserman et al. observe, O O S D does not provide a detailed pro- cedure for developing the design itself. The primary tool for OOSD is the object-oriented structure chart (see the sidebar, “Tools for Wasserman et al. object-oriented structured design”). This chart takes the symbols and notations from conventional structure charts. in- cluding modules. data parameters, and control parameters, and adds notations for such object-oriented constructs as objects and classes (called “informa- tion clusters” by the authors), methods, instantiation, exception handling. ge- neric definitions (similar t o abstract classes). inheritance. and concurrency. Object-oriented structure charts can be used to show multiple inheritance, mes- sage passing, polymorphism. and dy- namic binding. OOSD also supports the concept of a monitor. which i s useful in depicting the asynchronous processes typically found in real-time systems. Although OOSD is intended prima- rily for architectural design, the authors state that O O S D provides a foundation for representing design decisions asso- ciated with the physical design. The authors recommend that annotations be used to reflect the idiosyncrasies of individual implementation languages. while preserving the generic character of basic symbols. For example. O O S D includes optional Ada language-specif- ic annotations to provide for packages, sequencing, and selective activation.

Booch object-oriented design. Booch

pioneered the field of object-oriented design. As originally defined in the ear- ly 1980s. Booch’smethodology was Ada language specific, but it has been signif- icantly expanded and generalized since then. Booch views his methodology as an alternative to. rather than an exten- sion of, structured design.

Although Booch describes a host of

techniques and tools to assist design, ranging from informal lists to formal diagrams and templates, he is reluctant to prescribe a fixed ordering of phases for object-oriented design. Rather, he recommends that analysts work itera- tively and incrementally, augmenting formal diagrams with informal tech- niques as appropriate to the problem at hand. Nevertheless, Booch does delin- eate four major steps that must be per- formed during the course of OOD:

( 1 ) Identify classes and objects. Iden- tify key abstractions in the problem space and label them as candidate classes and objects. (2) Identifj the semantics o f classes and objects. Establish the meaning of the classes and objects identified in the previous step using a variety of tech- niques. including creating “scripts” that define the life cyclcs of each object from

creation to destruction.

( 3 ) Iden t i f j relatiotzsh i p s between classes and objects. Establish class and object interactions. such as patterns of inheritance among classes and patterns of cooperation among objects. Thisstep also captures visibility decisions among classes and objects. (4) Implenient c1as.sr.s r i n d objects. Construct detailed internal views of classes and objects, including definitions of their various behaviors (services). Also. allocate objects and classes to modules (as defined in the target lan-

guage environment) and allocate pro- grams to processors (where the target environment supports multiple proces- sors).

The primary tools used during O O D are

class diagrams and class templates (which emphasize class definitions and inheritance relationships); object diagrams and timing diagrams (which stress message definitions, visibility, and threads of control); state-transition diagrams (to model object states and transitions); operation templates (to capture def- initions of services); module diagrams and templates (to capture physical design decisions about the assignment of objects and classes to modules): and process diagrams and templates (to assign modules to processors in sit- uations where a multiprocessor con- figuration will be used).

(See the sidebar, “Tools for Booch ob-

ject-oriented design.”) Booch O O D provides the widest va- riety of modeling tools of the O O D methodologies reviewed here. Although he does not prescribe a fixed sequence of design steps. Booch does provide a

wealth of guidance on the design pro-

cess by describing in detail the types of activities that must be performed and by working through the design of five hypothetical systems from different problem domains.

Wirfs-Brock et al. responsibility-

driven design. Wirfs-Brock. Wilkerson,

and Wiener developed their responsi- bility-driven design ( R D D ) methodol- ogy during several years of internal soft- ware development experience in various corporate settings. R D D is based on a client-server model of computing in which systems are seen as being com- posed of collections of servers that hold private responsibilities and also render services to clients based on contracts that define the nature and scope of valid client-server interactions. T o map these terms to more conven- tional object-oriented terminology. cli- ents and servers are different kinds of objects, while services and responsibil- ities correspond to methods. Contracts and collaborations are metaphors for

32 COMPUTER

Tools for Wirh-Brock et al. responsibility- driven design

Class cards - A physical card used to record text describing classes, in- cluding name, superclasses, subclasses, responsibilities,and collabora- tions.

Class specification - An expanded version of the class card. Identifies superclasses, subclasses, hierarchy graphs, collaborationsgraphs. Also in- cludes a general description of the class, and documents all of its contracts and methods.

Collaborations graph - A diagram showing the classes, subsystems, and contracts within a system and the paths of collaboration between them. Classes are drawn as boxes. Subsystems are drawn as rounded-corner boxes enclosing multiple classes. Collaborationsare directed arcs from one class to the contract of another class.

Hierarchy diagram - A simple diagram that shows inheritance relation- ships in a lattice-like structure. Classes (enclosedwithin boxes) are con- nected by undirectedarcs that represent an inheritance relationship. Super- classes appear above subclasses.

Subsystem card - A physical card used to record text describing sub- systems, including name and a list of contracts.

Subsystem specification - Contains the same informationas a class specification,only at the level of a subsystem.

Venn diagram - Used to show the overlap of responsibilitiesbetween classes to help identify opportunities to create abstract superclasses. Class- es are depicted as intersecting ellipses.

odologies, the initial steps of RDD do

not focus on establishing a hierarchy of

classes, but rather attempt t o construct

a close simulation of object behaviors

and interactions.

Comparison of design

methodologies

Object-oriented design versus con-

ventional design. The distinctions be-

tween conventional and object-orient- ed development, some of which were identified in the discussion of analysis methodologies, are amplified during design due t o the growing importance of implementation-specific issues (see

Table 2). None of the conventional

methodologies support the definition of classes, inheritance, methods, or mes- sage protocols, and while it may not be necessary to consider these constructs

explicitly during object-oriented analy- sis, they form the foundation of an ob-

ject-oriented design (Table 2, rows 6

through 10). In addition, while conven- tional and object-oriented methodolo-

gies both provide tools that define a

hierarchy of modules (row l), a com-

pletely different method of decomposi- tion is employed, and the very defini- tion of the term module is different. I n conventional systems, modules - such as programs, subroutines, and func- tions - only contain procedural code. I n object-oriented systems, the object

-a bundling of procedures and data -

is the primary unit of modularity. Struc- tured design and information engineer- ing both use function-oriented decom-

position rules, resulting in a set of

procedure-oriented program modules. OOD methodologies, by contrast, em- ploy an object-oriented decomposition

resulting i n collections of methods en-

capsulated within objects.

The greatest overlap between con- ventional and object-oriented design methodologies is between Booch OOD and information engineering. Both

methodologies provide a tool for defin-

ing end-to-end processing sequences (row 4), although Booch’s timing dia- gram contains much less detail than in- formation engineering’sdata-dependen- cy diagram. Both methodologiesprovide for a detailed definition of procedural logic. Booch recommends the use of a ge- neric program definition language

(PDL) or structured English, while in-

formation engineering recommends the

use of a graphical action diagram for

this purpose. Finally, for information- intensive applications, Booch recom- mends that a normalization procedure be used for designing data. This nor- malization procedure is very similar t o the one employed by information engi- neering.

OOD methodology differences. The

most notable differences among the

three OOD methodologies have to do

with

(1) data design.

(2) level of detail in describing the

(3) level of detail provided by dia-

process of OOD, and

gram notations.

Booch, as mentioned above, employs a

detailed procedure (where appropriate) for designing the data encapsulated with-

in objects. In fact, Booth* sees many

parallels between database design and OOD: In a process not unlike object-oriented design, database designers bounce between logical and physical design throughout t h e

development of t h e database... T h e ways

in which we describe t h e elements of a database are very similar to t h e ways in which we describe t h e key abstractions in an application using object-oriented design.

Wasserman et al. and Wirfs-Brock et al., by contrast, say little on the issue of data design or normalization. Wirfs-Brocket al. providea very thor- ough description of the design process, which they break into 26 identifiable design activities spread across six steps. Booch offers less in the way of explicit, step-wise design procedures, although he does provide a wealth of implicit

guidance, using a detailed description

of five hypothetical design projects.

COMPUTER

I

Table 2. Comparison of design methodologies.

Wasserman Wirfs-Brock Yourdon and et al. Object- Booch et al. Constantine Structured Information Structured Oriented Driven Component Design Engineering Design Design Design

Mart in Oriented Object- Responsibility-

1. Hierarchy

of modules

(physical

design)

2. Data

definitions

3. Procedural

logic

  1. End-to-end processing sequences

5. Object

states and

transitions

  1. Definition of classes and inheritance

7. Other class

relationships

(instantiates,

uses, etc.)

  1. Assignment of operations/ services t o classes

9. Detailed

d e f i i n of

operations/

services

10. Message

connections

Structure

chart

Hierarchy diagram

Not

supported

Dataflow diagram

Not

supported

Not Tupported

Not

supported

Not supported

Not

supported

Not supported

Process-

decomposition

diagram

Data-model diagram: data- structure diagram

Action

diagram

Dataflow diagram; process- dependency diagram

Not

supported

Not supported

Not

supported

Not supported

Not

supported

Not supported

Object-

oriented

structure

chart

Object- oriented structure chart

Not

supported

Not supported

Not

supported

Object- oriented structure chart

Object-

oriented

structure

chart

Object- oriented structure chart

Not

supported

Object- oriented structure chart

Module

diagram

Class diagram

Operation

template

Timing diagrams

State-

transition

diagram

Class diagram

Class

diagram

Class diagram

Operations

template

Object diagram and template

Not

supported

Class specification

Class

specification

Not supported

Not

supported

Hierarchy diagram

Class

specification

Collaborations graph; class specification

Class

specification

Collaborations graph

Wasserman et al., by contrast, assume that the particulars of an implementa- tion environment will dictate what kinds of procedures and quality metrics are

best; they do not offer a procedural description of OOSD. Wasserman et al. and Booch both provide a comprehensive and rigorous

set of notations for representing an ob-

ject-oriented design. Wirfs-Brock et al.

provide a less detailed notation in their

R D D methodology, and do not address

October 1992 35

knowledge, or components (“harvest- ing” reuse). The first two areas are ones where object-oriented methodologies lack functionality provided by conven- tional methodologies, while the third area lacks support in both object-ori- ented and conventional methodologies.

Systempartitioninglobject clustering.

Traditionalmethodologies,such asstruc-

tured analysis andinformation engineer- ing, provide mechanisms for creating a natural, coarse-grained decomposition of systems (nested processes in the case of structured analysis, and subject data- bases in the case of information engi- neering). This decomposition is essen- tial because many projects are too large t o be developed by a single team within the desired time frame and, hence, must be dividedintocomponents and assigned to multiple teams working in parallel. T o be most beneficial, the decomposi- tion must be performed early in the development process, which also sug- gests it must be created in top-down

fashion rather than bottom-up. In addi-

tion, the decomposition must create natural divisions between components and allow for a rigorously defined pro-

cess of subsequent reintegration of the

components. The most coarse-grained, formally defined entities in object orientation are objects and classes. While objects and classes certainlyprovide apowerful mechanism for aggregating system func- tionality, they are usually defined in a bottom-up fashion as common charac- teristics get factored to ever higher lev- els in an inheritance structure. In addi- tion, very large systems, even after this factoring process has been completed,

may still consist of hundreds of top-

level classes. D e Champeaux’’ notes

cas,? domains,Ihsystems,IhJxandensem- blesz Two of these constructs - Coad and Yourdon’s subject areas and the Wirfs- Brock e t al. subsystems - appear to be very similar conceptually and provide a starting point for partitioning object- oriented models. Yet they are quite in- formally defined, and they provide lit- tle indication of how individually developed system components might interact. Shlaer and Mellor’s concepts of domains and subsystems are better developed, and four of the methodolo- gy’s diagrams are devoted to modeling the interactions between domains and between application domain subsystems (domain chart, subsystem relationship model, subsystem communication mod- el, and subsystem access model).

D e Champeaux’s ensembles and en-

semble classesz2 are the most rigorously

defined of the clustering mechanisms. Ensembles are analogous to conven- tional objects, while ensemble classes are analogous to conventional classes. An ensemble is a flat grouping of ob- jects (or other ensembles) that natural- ly go together - usually because they participate in whole-to-part relation- ships. An automobile. for example, is an ensemble consisting of an engine, doors, wheels, etc. Ensembles have many

of the same characteristics as conven- End-to-end process modeling. Many

tional objects, including attributes, states problem domains contain global pro- and transitions, and the capability of cesses that impact many objects and

interacting with other objects and en- involve the serial or parallel execution

sembles. of numerous intermediary steps between D e Champeaux distinguishes ensem- initiation and conclusion. Examples of bles from objects on this basis: Ensem- such processesinclude the orderingpro-

bles can have internalparallelism^ while^ cess for a manufacturer, daily account

objects cannot. That is, ensembles may reconciliation in a bank, and monthly consist of subordinate objects or en- invoice processing by a long-distance sembles that each exhibit behaviors in telecommunications carrier. Conven- parallel during system execution. Ob- tional methodologies provide well- jects, by contrast, are assumed to exhib- established tools such as dataflow dia- While the analysis of a toy example like it only sequential behaviors (for exam- grams (see the “Tools for structured thepopu’arcarcruisecontrolsystemyie’ds ple.asmodeledin afinite-state machine.) methodology” sidebar) and process- only a “flat” set of objects [classes], the analysis o f.. , an airline system or a bank De Champeaux distinguishes ensem- dependency diagrams (see the sidebar, will yield ‘‘objects” [classes] a t different bles from other clustering mechanisms “Tools for Martin information engineer- abstraction levels. (^) (such as, the Wirfs-Brock et al. sub- ing”) for modeling these sorts of pro-

narily be viewed as a composite object in the real world. Yet, in terms of how they behave, ensembles and composite objects ap- pear to be quite similar. De Champeaux notes that the constituents of an ensem- ble only interact directly with each oth- er or with the encompassing ensemble. An ensemble hides the details of con- stituents that are irrelevant outside of the ensemble, and acts as a gateway that forwards messages or triggers t o exter- nal objects and ensembles. Likewise, Booch recommends that when using composite objects, the encapsulating object should hide the details of the constituent objects and mediate between constituent objects andexternal objects.

Although De Champeaux’s use of en-

sembles seems promising on a concep- tual level, actual project experiences will tell whether or not ensembles pro- vide a practical basis for partitioning large projects. An interesting question for language designers is whether en- sembles, o r some similar construct, should be explicitly supported, for ex- ample, through mechanisms that limit the allowable patterns of interaction between ensembles, their constituents, and external objects to just those envi- sioned by de Champeaux.

The objects and classes, even at the highest level, are too fine-grained and defined too late in the development pro- cess t o provide a basis for partitioning large development projects. This limi- tation has apparently been recognized by several methodologists; they have responded by inventing high-level con- structs for clustering related object class- es. These constructs include subject ar-

systems) in that they are more than just conceptual entities; they exist during system execution and may have persis- tent attributes. It is less clear how en- sembles differ from the conventional notion of a compound or composite object,’ except that ensembles seem to be a more general concept than com- posite objects. That is, an ensemble might refer to a cluster of related entities, such as a fleet of ships that would not ordi-

cesses. None of the object-oriented method- ologies reviewed here provide a specific model for describing global processes end to end, although individual parts of the process are modeled piecemeal us- ing such concepts as operations,’4 ser- v i c e ~ , ~actions and processes,’h and re- sponsibilities.lx (Shlaer and Mellor describe a procedure for following threads of control. but this procedure

October 1992 37

spans several different diagrams and seems rather cumbersome. In any case, no distinct view of end-to-end process- ing -^ devoid of extraneous informa- tion - is provided.) Bailin supports the idea of using data- flow diagrams (and presumably, global process modeling as well) during analy- sis, but only t o help achieve a better understanding of objects. The resulting diagrams serve only as an intermediate representation and are not part of the object-oriented specification.I Booch’s timing diagram (see the side- bar, “Tools for Booch object-oriented design”) is the closest that any of the methodologies come to supporting a distinct view of end-to-end process modeling. Yet this diagram containsvery little expressive power compared with, for example, information engineering’s process-dependency diagram. A timing diagram only shows flow of control in- formation, whereas a process-dependen- cy diagram shows flow of control, flow of data, and conditional execution. Bailin also recognizes the need for end-to-end process modeling and has listed compo- sition graphs (similar to timing diagrams

in terms of expressive power) as a pos-

sible extension of his methodology. (Note that the most recent Bailin meth- odology refers to compositions graphs as “stimulus-response diagrams.”) This lack of support for global pro- cesses is not surprising since the con- cept of a global process, not subordinat- ed to any individual object, seems to be at odds with the spirit of object orienta- tion. In fact,BoochZand de Champeaux2: both warn against the use of even throw- away dataflow models, for fear that it will irrevocably bias subsequent object modeling towards a “function” orienta- tion. Still, there is no reason to believe that complicated business processes and the system components that automate them will no longer exist simply because one adopts object orientation. Nor is elimi- nation of end-to-end processes listed by

any methodologist as a precondition for

adopting object orientation. Thus, it would seem that a separate tool is need- ed t o arrange the mosaic of encapsulat-

ed services into a model that illustrates

sequencing, conditional execution, and related ideas for certain key global pro- cesses.

Harvesting reuse. One of the most persistently claimed advantages of ob-

ject orientation is that it enables perva- sive levels of software reuse. If properly applied, object-oriented mechanisms such as encapsulation, inheritance, poly- morphism, and dynamic binding cer- tainly obviate many technical barriers to reuse of program code. In addition, it has been claimed that object orienta- tion opens the way to reuse of design models, or frameworks,’ and even anal- ysis models from relevant problem do- mains.h At the level of analysis and de- sign, reuse can take two basic forms: reuse of components from previously developed analysis and design models, and reuse of abstractions of previously implemented program components. Even within an object-oriented im- plementation environment. achieving

high levels of reuse is by n o means auto-

matic; virtually all object-oriented meth- odologists emphasize that reuse must be designed into an application from the start. This emphasis on sowing re- use is not surprising; however, it is curi- ous how little attention object-oriented methodologists pay to harvesting reuse during analysis and design. Analysis and design consume more resources than programming, and perhaps more im- portantly, development budgets and management decisions- both of which should be strongly influenced by antic- ipated levels of reuse - are set early in the development process. Of the methodologies described here, only two address the issue of harvesting reuse from beyond the confines of the project at hand. Coad and Yourdon re- fer to the need to examine previous analysis models for reusable components

and also provide a procedure for merg-

ing existing design or program compo- nents with new applications.”’Like Coad and Yourdon, Booch emphasizes the importance of seeking reusable soft- ware components from existing class libraries during design. Yet, neither author provides specific guidance on how to find or evaluate existing compo- nents. D e Champeaux and Faure6 and Caldiera and Basili’”discuss the issue of harvesting reuse at the level of analysis and design. D e Champeaux and Faure recommend a repository-based ap- proach to managing reuse. They sug- gest that the software development pro-

cess can be seen as a process of creating

and modifying three cross-referenced repositories with analysis. design, and implementation components. In this

view, the analysis components serve as annotations to the design and imple- mentation components and may point to alternative realizations of the same requirements (for example, with differ- ent performance parameters). They fur- ther suggest that these annotations could

be the basis for a smart library transver-

sal mechanism. This mechanism could assist in identifying candidate reusable components.

Caldiera and Basili provide a much

more thorough examination of the issue of harvesting reuse, especially in the areas of identifying and qualifying soft-

ware components. They suggest a mod-

el for project organization where appli- cation developers are segregated from “reuse specialists.” Reuse specialists work in a “component factory” and are responsible for the development and

maintenance of a repository of reusable

components. The component factory is responsible for identifying, qualifying, and tailoring reusable components for subsequent integration - by applica- tion developers - into ongoing appli- cations development projects.

bject-oriented analysis and de- sign methodologies are rapidly evolving, but the field is by no means fully mature. None of the meth- odologies reviewed here (with the pos- sible exception of Booch O O D ) has - as of this writing - achieved the status of a widely recognized standard on the order of the conventional methodolo- gies of Yourdon and Constantine or DeMarco. Object-oriented methodolo- gies will continue to evolve, as did con- ventional methodologies before them,

as subtler issues emerge from their use

in a wide array of problem domains and project environments. A s discussed above, three areas - system partition- ing, end-to-end process modeling, and harvesting reuse - appear to be espe- cially strong candidates for further de-

velopment work. In the meantime,

adopters of current object-oriented methodologies may need to develop their own extensions to contend with these issues, or alternatively, limit applica- tion of the methodologies to problem domains where these issues are of lesser importance. Compared with object-oriented meth- odologies, conventional methodologies fall at different places along the incre- mental-radical continuum. Developers

38 COMPUTER