Saturday, April 11, 2015

CHAPTER - 2 [ UML Building blocks ]







This chapter will discuss about UML Building blocks. Basically it consists of 3 components namely,



1.Things.

2.Relationship.

2.Diagrams.


1.Things

This is the most important part in UML building blocks. Things can be classified as,


  • Structural
  • Behavior
  • Grouping
  • Annotation



Structural.


Structural things define the stable (static) part of the model. Structural things are class, Interface, collaboration,use-case,component and node.

*Classes are set of objectives which gave similar responsibilities.


*Interfaces are set of operations which specify set of classes.



*Collaborations defines connections between elements.

*Use-case describes set of actions performed in a system.



*Components describes the physical parts of the system.



*Nodes describes a physical element which has a run time.



Behavior.

Consists of all the dynamic parts of the system.

*Interaction.

Behavior that consists of a group of messages exchanged among elements.


*State machine.

State machine can show the different states of an entity also how an entity responds to various events by changing from one state to another.

Grouping.

It is a mechanism to group the elements of UML model.

*Package.

Package is the only one grouping thing available for gathering structural and behavioral things.








Annotation.

Annotations are used to capture remarks, descriptions and comments of UML model elements.




2.Relationship

Relationships will show how elements are connected and associated with each other. There are four (4) types of relationships available.

  • Dependency.
  • Association.
  • Generalization.
  • Realization.
Dependency

Relationship between 2 things and change in one element affects the other.




Association

Set of links that connect elements of UML. It describes how many objects are participating in a particular relationship.



Generalization

Connects a specialized element with a generalized element.








Realization

One element describes some responsibility which is not implemented yet.



3.UML Diagrams

This is the core of UML modelling. The various types of UML diagrams are,

  • Class diagram.
  • Object diagram.
  • Use-case diagram.
  • Sequence diagram.
  • Component diagram.
  • Activity diagram.
  • State-chart diagram.
  • Collaboration diagram.
  • Deployment diagram

No comments:

Post a Comment