Skip to main content

Generalization and Specialization

Generalisation is an abstraction for sharing similarities among classes while preserving their differences. For example, each piece of equipment has a manufacturer weight and cost . Pumps also have suction pressure and flow rate. Tank also have volume and pressure we would like to define equipment features just once and then add details for pump, tank and other equipment types.
Generalisation is a relationship between a class and one or more refined versions of it. The class being refined is called superclass and each refined version is called a subclass. For example equipment is the superclass of pump and tank. Attributes and operations common to a group of subclasses are attached to the superclass and shared by each subclass. Each subclass is set to inherit the feature of its superclass, for example, pump inherites attributes manufacturer, weight and cost from equipment. Generalisation is sometimes called the "is-a" relationship because each instance of a subclass is a instance of the superclass as well.

Each subclass not only inherits the features of its superclass but as its own specific attributes and operations as well , for example pump adds attributes flow rate, which is not shared by other kind of equipment.
Figure shows an equipment generalisation. Each piece of equipment is a pump, heat exchanger, tank or another type of equipment. There are several kinds of pumps: Centrifugal, diaphragm, and plunger. There are several kinds of tanks: floating roof, pressurized and spherical. Pump type and tank type both define second level generalisation class is down to the third level.

Specialization: Specialization is the process of defining a set of subclasses of an entity type; this entity type is called the superclass of the specialization. The set of classes that forms specialisation is defined on the basis of some distinguishing characteristic of the entities in the superclass. For example:the set of subclasses {SECRATARY, ENGINEER, TECHNICIAN} is a specialization of a superclass EMPLOYEE that distinguishes among employee entities based on the job type of each employee entity. We may have several specializations of the same entity type based on different distinguishing characteristics. For example, another specialization of the EMPLOYEE entity type the set of subclasses {SALARIED_EMPLOYEE, HOURLY EMPLOYEE} this specialization  distinguish among employees based on the method of pay.




The above figure shows few entity instances that belong to subclasses of {SECRETARY, ENGINEER,  TECHNICIAN} specialiZation. An entity that belongs to a subclass represents the same real-world entity as the entity connected to it in the EMPLOYEE superclass, even the same entity is shown twice, for example e1 is shown in both EMPLOYEE and SECRETARY, As figure suggest a superclass/subclass relationship such as EMPLOYEE/ SECRETARY somewhat resembles 1:1 relationship at instance-level. The main difference in is that 1:1 relationship two distinct entities are relative where as in superclass/subclass relationship the entity in the subclass in the same real-world entity as the entity in the superclass but is playing as a specialized role for example, and EMPLOYEE specialized in the role of SECRETARY, or an EMPLOYEE specialized in the role of TECHNICIAN.
In summary, the specialization process allow us to do the following:

  • Define a set of subclass of an entity type
  • Establish additional specific attributes with each subclass
  • Establish additional specific relationship types between each subclass and other entity types or other classes








Comments

  1. Did you know there's a 12 word phrase you can communicate to your man... that will trigger intense feelings of love and instinctual attraction for you buried within his chest?

    That's because hidden in these 12 words is a "secret signal" that triggers a man's impulse to love, adore and protect you with his entire heart...

    12 Words That Fuel A Man's Desire Instinct

    This impulse is so built-in to a man's mind that it will drive him to work harder than ever before to make your relationship as strong as it can be.

    In fact, fueling this all-powerful impulse is absolutely mandatory to having the best ever relationship with your man that as soon as you send your man one of the "Secret Signals"...

    ...You will soon notice him expose his heart and mind to you in such a way he's never expressed before and he'll distinguish you as the only woman in the galaxy who has ever truly interested him.

    ReplyDelete

Post a Comment

If you find something wrong about this post please let us know. No Abusive Messages please.

Popular posts from this blog

Hub, repeater, switch, router, gateway, bridge

HUB Hub is a controller that controls the traffic on the network.  The following important properties of hub are:  1) It amplify signals. 2) It propagates signals through the network. 3) It does not require filtering. 4) It does not require path determination for switching. 5) It is used as network concentration points. Hubs are basically two types: 1) Active hub 2) Passive hub Active hub: A ctive hub works as repeater which is a hardware device that regenerates the received bit pattern before sending them out . Passive hub : A passive hub is a simple hardware device which provide a simple physical connection between the attached devices. Advantages of hub: It cannot filter the traffic full stop feeling generally refers to a process or device that screens network traffic for certain characteristics such as source address and destination address and protocol. Disadvantages of hub: On a hub, more than one user may try to send data on the netwo...

DBMS: Normalization

Normalization : Normalization is the process of transformation of the conceptual schema of the database into a computer represent table form. Normalization is the process of removing the redundancies from incoming data.  Normalization is a technique to which helps the user to group the data and place the data in a table.  Normalization is a process which ensure the inconsistencies are not introduced into the database. Need of Normalization : we know with the time, most of databases grow time to time by adding new relations and relationships, the data may be used in different ways. Regularly the information may undergo series of updations in such situations, the performance of a database is entirely dependent upon its design.      A bad  database design  may lead to certain undesirable things: Repetition of information Inability to represent certain information  Loss of information Uses of Normalization: When data is large a...

Data Warehousing

  Data Warehouse is open to an almost limitless range of definitions. Simply put, data warehouses store and aggregation of a company's data. Data warehouses are an important asset for organisations to maintain efficiency, profitability and competitive advantages, organisations collect data through many sources- online, call centre, sales needs, inventory management. The data collected have degrees values and business relevance. Figure shown below shows the architecture of a typical data warehouse and illustrate the gathering of data, the storage of data, and the quaring and data analysis support. Different steps involved in getting data into a warehouse are called as extract, transform and lode or ELT tasks; extraction refers to getting data from the sources, while loaders reference to loading the data into data warehouse. Characteristics of data warehouse: Multidimensional conceptual view Generic dimensionality Unlimited dimensions and aggregation le...