UML (Diagram and methods)

Today we are starting on UML (Unified Modeling Language) different implementation methods.

This topic is about UML with class oriented explanation.

Since UML can be used as Object Oriented, the paradigm is able to be part of the UML envioronment.

Class Diagram:

The next diagram shows the Oriented Object with classes application of the UML:

diagrama-de-clases6
Original at: https://onlineshop09.files.wordpress.com

This diagram is used during the analysis and design of Systems, were the complete information of the concept of the system is involved.

Is important to show the atributes, classes and methods of the entire topology in this diagram, so it can be understood what is the structure of the sytem.

Object Diagram:

http://2.bp.blogspot.com/-sVQ1mcWlbPU/T6HmmdGD1nI/AAAAAAAAAyc/ToyCrK_CTxo/s640/D+de+objetos.gif
Original at: http://2.bp.blogspot.com

This is part of the static view of the system, this is the relation between the methods of the classes, making more suitable to know whom is related with others and what way.

Design Pattern:

Design patterns provide a standard terminology and are specific to particular scenario.

As per the design pattern reference book Design Patterns – Elements of Reusable Object-Oriented Software , there are 23 design patterns. These patterns can be classified in three categories: Creational, Structural and behavioral patterns. We’ll also discuss another category of design patterns: J2EE design patterns.

S.N. Pattern & Description
1 Creational Patterns
These design patterns provides way to create objects while hiding the creation logic, rather than instantiating objects directly using new opreator. This gives program more flexibility in deciding which objects need to be created for a given use case.
2 Structural Patterns
These design patterns concern class and object composition. Concept of inheritance is used to compose interfaces and define ways to compose objects to obtain new functionalities.
3 Behavioral Patterns
These design patterns are specifically concerned with communication between objects.
4 J2EE Patterns
These design patterns are specifically concerned with the presentation tier. These patterns are identified by Sun Java Center.
http://www.tutorialspoint.com/design_pattern/images/factory_pattern_uml_diagram.jpg
Original at: http://www.tutorialspoint.com/design_pattern/images/factory_pattern_uml_diagram.jpg

State Machine Diagram:

State machine diagrams specify state machines. This clause outlines the graphic elements that may be shown in state machine diagrams, and provides cross references where detailed information about the semantics and concrete notation for each element can be found. It also furnishes examples that illustrate how the graphic elements can be assembled into diagrams.

https://www.visual-paradigm.com/VPGallery/img/diagrams/State/State-Diagram-Sample.png
Original at: https://www.visual-paradigm.com/VPGallery/img/diagrams/

 

Feel free to check the following video to get more info about UML:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s