Beruflich Dokumente
Kultur Dokumente
To define the CIM models and manage them well, understand the concept of Object Orientation is an
important work since the MOF is based on the object-oriented concept. In this chapter we will introduce the
concept of object-orientation, class modeling with object-oriented, the critical concept in object-oriented
programming and finally, we will introduce how to use Rational Rose to design the model.
3.1 Basic Concept
Object-orientation is so called because this method sees things that are part of the real world as objects. A
phone is an object in the same way as a bicycle, a human being, or an insurance policy are objects. In everyday
life, we simplify objects in our thinking ² we work with models. Software development does essentially the
same: objects occurring in reality are reduced to a few features that are relevant in the current situation. Instead
of real objects, we work with symbols. Properties and composition of objects correspond only roughly to
reality; the model selects only those aspects that are useful for carrying out a specific task. In figure 3.1, we use
model to describe a reality that a teacher owns a bicycle and he reads a book.
c
Figure 3.1 Complex realities are made more manageable by abstract models.
3.1.1 Data Abstraction
Abstraction is the presentation of simple concept (or object) to the external world. Abstraction concept is
to describe a set of similar concrete entities. It focuses on the essential, inherent aspects of an entity and
ignoring its accidental properties. The abstraction concept is usually used during analysis: deciding only with
application-domain concepts, not making design and implementation decisions.
Two popular abstractions: procedure abstraction and data abstraction. Procedure abstraction is to
decompose problem to many simple sub-works. Data abstraction is to collect essential elements composing to a
compound data. These two abstractions have the same objective: reusable and replaceable. Figure 3.2 shows an
example of data abstraction to abstract doors as a data structure with essential properties.
c c
cc c
c
c
Occurrence Alarm Fire alarm
Things Car Ferrari 360
External entities Door Fire door
Roles Teacher John, Nick
Organizational units IECS department FCU_IECS,
Aggregation is a special form of association. Aggregation is the composition of an object out of a set of
parts. A car, for example, is an aggregation of tires, engine, steering wheel, brakes and so on. These parts may in
turn be aggregations: a brake consists of disk, pads, hydraulic, etc. Aggregation represents a ´hasµ relationship:
a car an engine. Instead of aggregation, some people talk about ´ hierarchy. For example, in figure
3.7, where an Enterprise represents a ´wholeµ end and Department represents a ´partµ end.