Importance of Modelling
Importance of Modelling
Importance of Modelling
Modelling
Importance of modelling
A model is an abstraction of something for the purpose of understanding it
before building it. Because a model omits nonessential details, it is easier to
manipulate than the original entity.
The following can be seen as the importance of modelling :
Principles of modelling
The first principle of modelling:
The choice of what models to create has a profound influence on how a
problem is attacked and how a solution is shaped.
Choose your models well The right models will highlight the most nasty
development problems. Wrong models will mislead you, causing you to focus
on irrelevant issues.
The second principle of modelling:
Every model may be expressed at different levels of precision.
Sometimes, a quick and simple executable model of the user interface is
exactly what you need. At other times, you have to get down to complex
details such as cross-system interfaces or networking issues etc.
In any case, the best kinds of models are those that let you choose your
degree of detail, depending on who is viewing it. An analyst or an end-user will
want to focus on issues of what and a developer will want to focus on issues
of how.
The third principle of modelling:
The best models are connected to reality
In software, the gap between the analysis model and the system’s design
model must be less. Failing to bridge this gap causes the system to diverge
over time. In object-oriented systems, it is possible to connect all the nearly
independent views of a system into one whole.
The fourth principle of modelling:
No single model is sufficient. Every non-trivial system is best approached
through a small set of nearly independent models.
In the case of a building, you can study electrical plans in isolation, but you
can also see their mapping to the floor plan and perhaps even their interaction
with the routing of pipes in the plumbing plan.
Conceptual model of the UML
1. Structural things
2. Behavioral things
3. Grouping things
4. Annotational things
These things are the basic object-oriented building blocks of the UML. You
use them to write well-formed models.
Relationships:
There are 4 kinds of relationships in the UML:
1. Dependency
2. Association
3. Generalization
4. Realization
These relationships are the basic relational building blocks of the UML.
Diagrams:
It is the graphical presentation of a set of elements. It is rendered as a
connected graph of vertices (things) and arcs (relationships)
1. Class diagram
2. Object diagram
3. Use case diagram
4. Sequence diagram
5. Collaboration diagram
6. Statechart diagram
7. Activity diagram
8. Component diagram
9. Deployment diagram
Rules:
The UML has a number of rules that specify what a well-formed model should
look like. A well-formed model is one that is semantically self-consistent and in
harmony with all its related models.
The UML has semantic rules for:
Names – What you can call things, relationships, and diagrams.
Scope – The context that gives specific meaning to a name.
Visibility – How those names can be seen and used by others.
Integrity – How things properly and consistently relate to one another.
Execution – What it means to run or simulate a dynamic model.
Common Mechanisms:
The UML is made simpler by the four common mechanisms. They are as
follows:
1. Specifications
2. Adornments
3. Common divisions
4. Extensibility mechanisms
Polymorphism:
The word polymorphism means having many forms. In simple words, we can
define polymorphism as the ability of a message to be displayed in more than
one form.
A person at the same time can have different characteristics. Like a man at
the same time is a father, a husband, an employee. So the same person
possesses different behaviour in different situations. This is called
polymorphism. An operation may exhibit different behaviours in different
instances. The behaviour depends upon the types of data used in the
operation.
Inheritance:
The capability of a class to derive properties and characteristics from another
class is called Inheritance. Inheritance is one of the most important features of
Object-Oriented Programming.
Sub Class: The class that inherits properties from another class is
called Sub-class or Derived Class.
Super Class:The class whose properties are inherited by sub-class is
called Base Class or Superclass.
Reusability: Inheritance supports the concept of “reusability”, i.e. when
we want to create a new class and there is already a class that includes
some of the code that we want, we can derive our new class from the
existing class. By doing this, we are reusing the fields and methods of
the existing class
Abstraction:
Data abstraction is one of the most essential and important features of
object-oriented programming in C++. Abstraction means displaying only
essential information and hiding the details. Data abstraction refers to
providing only essential information about the data to the outside world, hiding
the background details or implementation.
Introduction to UML
Diagrams in UML
Introduction:
Object identity
Object Identity means that data is quantized into discrete, distinguishable
entities called objects.
Object
Objects are instances of classes. They contain data and provide services.
The data forms the attributes of the object.
The services are known as methods (also known as operations or functions).
Typically, methods operate on private data (the attributes, or state of the
object), which is only visible to the methods of the object. Thus the attributes
of an object cannot be changed directly by the user, but only by the methods
of the object. This guarantees the internal consistency of the object.
The object can be of two types: concrete and conceptual.
Architecture
A system's architecture is perhaps the most important artefact that can be
used to manage
these different viewpoints and so control the iterative and incremental
development of a
system throughout its life cycle.
Architecture is the set of significant decisions about