Showing posts with label UML. Show all posts
Showing posts with label UML. Show all posts

Thursday, November 25, 2010

Generalization & Realization

In UML modeling,

Generalization is inheritance.
Realization is implemeting interface.


In UML modeling, generalization relationship is a relationship in which one entity is based on another entity.

Realized - is a related to interface. Interface should implement in class, in UML terms it is called as realized. To realize an interface, a class should implement all its properites and methods

Reference:

1. Generalization:

http://publib.boulder.ibm.com/infocenter/rsmhelp/v7r0m0/index.jsp?topic=/com.ibm.xtools.modeler.doc/topics/creal.html

2. Realization:

http://publib.boulder.ibm.com/infocenter/rsmhelp/v7r0m0/index.jsp?topic=/com.ibm.xtools.modeler.doc/topics/creal.html

Friday, February 5, 2010

Association, Aggregation, Composition



I have a hand, I have a car.

I have a hand - life time of hand is same as my life time. hand dies with me :) it is tightly coupled. Its composition

I have a car - my car remains even if  I die. This is aggregation.

association: is a relationship between two classes. It is the basic way of relation between two classes.

aggregation and association are more specific way of relationship between classes.

aggregation: has a relationship. one class can exist without other class
composition: one class is tightly coupled with other class. Life time of the classes will be the same.





Example2:


university has a chancellor   (association)
university have faculties  (composition)


university can exist without chancellors
university cannot exist without faculties. if faculties dispose then university will not exist.

university composed of faculties










Thursday, September 6, 2007

UML - Part 1

UML Distilled : A book review
I know that I am deviating from my objective of the technical blog. I have created this blog for discussing about hardcore technical topics, not for just discussing about a book. But I could not stop myself from writing few lines about this fantastic book by Martin Fowler!!

You cannot call yourself a software designer or an architect
if you have not read this book.
~ nidhish ;)
I was a 9th standard student when this book got published for the first time and believe me, I have never seen a computer at that time!! Ten years from then,here I am, doing the review of that best seller :) Software industry is changing so drastically and ten years in a long period, but UML Distilled is still hot!! That made me to write about this special book.

How do you represent the design of a software system?

Well,we all know the answer, its UML (Unified Modelling Langauage). Have you ever thought about how UML emerged?

History:
People were using different methods for representing their design in late 80's and early 90's. There were no standard way to represent design. Different people were using different ways of representing their design, But basically all these methods were similar. Sadly there was no standardization on these methods and which was leading to confusion.

By 1997, Grady,Jim and Ivar worked together and combined all their works under one name : the Unified Modeling Langauge(UML). Now they are known as "three amigos".

Grady Booch - Rational software
Jim Rumbaugh - GE (OMT : Object modeling technique)
Ivar Jacobson - Ericsson (Use Cases)

UML is a modeling language, It is not a method(method contains both modeling language as well as a process). Modeling language uses notations to express design. ie, it helps you to discuss your design with someone.

We will discuss more about the UML Diagrams on the next part of the Blog.
(contd..)

And
There are thousands of UML books available in the market, and its really hard to find the best one out of it. Thanks to Aslam for suggesting me to go for this fantastic book. The beauty of the book is Martin Fowler worked very close with the "three amigos" for writing this book.