Why UML Modeling
Why UML Modeling
Building Small
o architect a dog house can be done by one person. It involves a simple process,
performed with basic tools such as nails, hammer, saw, tape etc.
In few hours you end with a house for dog and can do with no one else's help. Modeling
effort is minimal or sometimes unnecessary.
Building Large Scale
If you want to build a house for your family with same things, is it possible? It requires
detailed planning, some sketches etc.
Of Course, architecting a house is best achieved by a team. It requires detailed
modelling, well-defined processes and powerful tools.
Small vs Large Scale
What about a high rise building? Modeling is no doubt a critical part of any construction
project?
What the UML Guru Said?
"Modeling is a central part of all the activities that lead up to the deployment of good
software. We build models to communicate the desired structure and behavior of our system.
We build models to visualize and control the system's architecture. We build models to better
understand the system we are building, often exposing opportunities for simplification and
reuse. And we build models to manage risk.
- Grady Booch, The Unified Modeling Language User Guide (2nd Edition)
Importance of Modeling
We can build model so that we can better understand the system we are developing.
A model may encompass:
an overview of the system under consideration,
as well as a detailed planning:
for system design,
Implementation;
and testing.
Principles of UML Modeling
For Example:
We can use different types of diagrams for different
phases in software development, or different
viewpoint for a different stakeholder
Principles - Every model may be expressed at different levels of precision
For Example,
If you are building a high rise, sometimes you need a 30,000-foot view for instance, to help
your investors visualize its look and feel.
Other times, you need to get down to the level of the studs for instance, when there's a
tricky pipe run or an unusual structural element.
Principles - The best models are connected to reality
All models simplify reality and a good model reflects important key characteristics.
Principles - No single model is sufficient
Every non-trivial system is best approached through a small set of nearly independent
models. Create models that can be built and studied separately, but are still interrelated. 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.
Related Links