Você está na página 1de 3

University of Petroleum & Energy Studies, P. O.

Bidholi, via Premnagar, Dehradun, Pin: 248 006

M. Tech (PLE), Semester ICourse: GIS & Image Processing in Pipeline Industry Code: MPTI 802
Assignment 1, Time: 30 Minutes Total Marks: 15
Thursday, August23 2016
R 1 5 0 2 1 6 0 0 6

DEEPAKRAJAN.S

SAP ID: 500051297

What do you understand by, i) Encapsulation, ii) Inheritance and iii) Polymorphism?

Apply the same in Pipeline industry and assess in detail!

Encapsulation:

Encapsulation is the ability to store an objects data and program to access it


together in the database. This allows the developer to create objects that are able to
be used outside the program that created them, aiding portability of objects. This
feature speeds up application development, the writing of programs to work on the
data. Because you can then treat the object like a black box the developer does not
need to know how to access it just that it exists, as well as that the object can only
be acted upon by the processes held with it in the database, thus an object can be
modified in the database without the program that uses the object being modified
accidentally, therefore the application programs are protected from implementation
changes in the lower layers of the system.

For example in the pipeline industry encapsulation collar which is an article which
can be used in the repair of leaks, faults and/or damage to existing pipelines so as
to allow the damage which has been caused to be contained within the collar and
thereby allow the existing pipeline to remain in service. This therefore overcomes
the need for removal of the existing pipeline in the area in which there is damage
and, importantly, allows the repair of the pipeline to be achieved in situ and, in
certain circumstances, to allow the supply of fluid through the pipeline to continue
in an uninterrupted manner.

In further aspect of the invention, there is a method of encapsulating a portion of a


pipeline, said method comprising the steps of placing first and second sealing

Page 1 of 3
University of Petroleum & Energy Studies, P. O. Bidholi, via Premnagar, Dehradun, Pin: 248 006

M. Tech (PLE), Semester ICourse: GIS & Image Processing in Pipeline Industry Code: MPTI 802
Assignment 1, Time: 30 Minutes Total Marks: 15
Thursday, August23 2016
R 1 5 0 2 1 6 0 0 6

members around the pipeline, said sealing members spaced apart such that the first
sealing member is placed towards a first end of the portion of the pipeline and the
second sealing member is located towards the opposing end of the portion of the
pipeline, bringing a first body part into location on one side of the pipeline portion
and causing the sealing members to be located in respective location portions in the
part, moving a second body part of the apparatus into position on the opposing side
of the pipeline and in line with said first part, applying engagement means to
engage and clamp the first and second body parts together along the longitudinal
axis of the said pipeline portion and causing the said first and second sealing
members to exert a sealing action between the apparatus and their respective
pipeline locations and hence form a cavity in the apparatus in which the portion of
the pipeline sealing is encapsulated.

Inheritance:

Inheritance allows the building a hierarchy of types or classes that best describes
the real world situation in the application field. Each class can take all or part of
the structural or behavioral features from other classes, which are its parents. In
turn, the newly defined class is a child of the classes from which it has inherited its
features. Inheritance helps in deriving application-oriented classes without starting
every definition from scratch. Also, it makes it easier to create logically complex
classes from simpler classes.

For example in the pipeline industry a Mendelian inheritance pipeline is used to


generate a second dataset to identify phasing variants of interest and correcting the
first and second datasets using experimental data.

A Mendelian inheritance pipeline is applied to identify phasing of novel and rare


variants (not found in the public databases). These datasets are merged, followed
by correction by any experimental data .This allows for full clinical interpretation
of the role of a group of variants in a gene, whether inherited or de novo variants.

Page 2 of 3
University of Petroleum & Energy Studies, P. O. Bidholi, via Premnagar, Dehradun, Pin: 248 006

M. Tech (PLE), Semester ICourse: GIS & Image Processing in Pipeline Industry Code: MPTI 802
Assignment 1, Time: 30 Minutes Total Marks: 15
Thursday, August23 2016
R 1 5 0 2 1 6 0 0 6

Polymorphism:

Polymorphism is a mechanism to define the different actions of the same named


function on different classes. It is implemented by inheriting some functions from
parent classes and overriding or modifying part of them. Usually, the newly
created class has similar but not the same behavior as its parents for that functional
aspect. Polymorphism provides great flexibility in class derivation, for example,
perimeter operation may have different implementations for different classes such
class area, class triangle, class polygon, etc. Each class performs the
perimeter operation differently although it has the same function name.

Page 3 of 3

Você também pode gostar