Skip to main content

UML 2.0 (Unified Modeling Language)



You must be wondering why is UML described in this blog (Advanced .Net concepts).Before you start feeling “IT’s time wastage”, let me re-assure you about its importance by restoring to a real life example.
Although “Kites”(Indian movie released in 2010) was a blunder at the box-office , however it gives us an opportunity to fit the UML discussion in the story line(although it never had any story).
 Let’s start by asking Why UML. The answer, the Hero of the movie did not understand Spanish and the lady didn’t know English (mess created), would have been avoided if both of them knew a common language (might be Hindi!!!).
 Any software is a global product involving Architects, designers, developers/Coders (situation is same as described above) .To develop, the pre-requisite is “understanding” and UML shortens the cycle involved in understanding.
 The UML is applicable to object-oriented problem solving.  Object oriented solutions begin with the construction of a model. A model is an abstraction of the underlying problem
Models consist of objects that interact by sending messages to each other.
Objects have things they know (attributes) and things they can do (behaviors or operations). And last but not the least, values of an object's attributes, its state.
Classes are the "blueprints" for objects. A class wraps attributes (data) and behaviors (methods or functions) into a single distinct entity. 
 There are three main Categories of UML diagrams, namely

  • Behavior diagrams  As the name suggests, these diagrams depict behavioral features of a system or business process.  This category includes activity, state machine, and use case diagrams and the four interaction diagrams.
  • Interaction diagrams  This is a subset of behavior diagrams and emphasizes object interactions.  This includes communication, interaction overview, sequence, and timing diagrams.
  • Structure diagrams.  Used for specifying the system structurally.  This includes class, composite structure, component, deployment, object, and package diagrams. 

The table below describes the Summary of the diagrams and detailed articles about each single diagram will be covered in the next article.

Diagram
Description

Activity Diagram
Depicts high-level business processes, including data flow, or to model the logic of complex logic within a system.
Class Diagram

Shows a collection of static model elements such as classes and types, their contents, and their relationships.
Communication Diagram

Shows instances of classes, their interrelationships, and the message flow between them. Communication diagrams typically focus on the structural organization of objects that send and receive messages.  Formerly called a Collaboration Diagram.
Component Diagram

Depicts the components that compose an application, system, or enterprise. The components, their interrelationships, interactions, and their public interfaces are depicted.
Composite Structure Diagram
Depicts the internal structure of a classifier (such as a class, component, or use case), including the interaction points of the classifier to other parts of the system.  
Deployment Diagram
Shows the execution architecture of systems.  This includes nodes, either hardware or software execution environments, as well as the middleware connecting them.
Interaction Overview Diagram
A variant of an activity diagram which overviews the control flow within a system or business process.   Each node/activity within the diagram can represent another interaction diagram. 
Object Diagram
Depicts objects and their relationships at a point in time, typically a special case of either a class diagram or a communication diagram. 
Package Diagram
Shows how model elements are organized into packages as well as the dependencies between packages.
Sequence Diagram
Models the sequential logic, in effect the time ordering of messages between classifiers. 
State Machine Diagram
Describes the states an object or interaction may be in, as well as the transitions between states. Formerly referred to as a state diagram, state chart diagram, or a state-transition diagram
Timing Diagram
Depicts the change in state or condition of a classifier instance or role over time.  Typically used to show the change in state of an object over time in response to external events. 
Use Case Diagram
Shows use cases, actors, and their interrelationships.
The table above has been excerpted from the book(The Object Primer 3rd Edition: Agile Modeling Driven Development with UML 2.)
I forgot to tell you something about UML in the beginning. We’ll it’s not too late yet.
UML current version is 2.0 and the article is applicable to this version only.
Version 1.0 had only 9 diagrams.
Hope this was Helpful.
Till next we connect Happy Reading….


Comments

Popular posts from this blog

Asp.Net 4.0: An Overview-Part-III

This is the last post in the series which will explore the following new features of ASP.Net 4.0  Performance Monitoring for Individual Applications in a Single Worker Process Web.config File Refactoring Permanently Redirecting a Page Expanding the Range of Allowable URLs Performance Monitoring for Individual Applications in a Single Worker Process It is a common practice to host multiple ASP.NET applications in a single worker process, In order to increase the number of Web sites that can be hosted on a single server. This practice results in difficulties for server administrators to identify an individual application that is experiencing problems. ASP.NET 4 introduces new resource-monitoring functionality introduced by the CLR. To enable this functionality, following XML configuration snippet is added to the aspnet.config configuration file.(This file is located in the directory where the .NET Framework is installed ) <?xml version="1.0" encoding="UTF-8...

Covariance and Contravariance-General Discussion

If you have just started the exploration of .Net Framework 4.0, two terms namely Covariance and Contravariance might have been heard. The concept that these terms encapsulate are used by most developer almost daily, however there has never been any botheration about the terminologies. Now, what actually these terms mean and how are these going to affect us as a developer, if we dive in to the details. The simple answer is it’s always good to know your tools before actually using them. Enough philosophy, let’s get to the business. Starting the discussion let me reiterate that in addition to Covariance and Contravariance, there is another terminology, Invariance. I’ll by start here by diving into the details of Invariance and then proceed further. Invariance: Invariance can be better understood by considering the types in .Net.>net has basically two type, value-types and reference-types. Value types (int, double etc) are invariant i.e. the types can’t be interchanged either ...

Advanced WCF

In this post, I am sharing the link of articles about  advanced topics in WCF. The List of articles is exhaustive and can serve as your repository for all WCF queries. Concurrency,Throttling & Callbacks  WCF Concurrency (Single, Multiple and Re entrant) and Throttling   WCF-Interop and BinarySecurityToken  WCF Callbacks  Creating Web Services From WSDL Link1 Link2 Link3 Link4 WCF-Security WCF over HTTPS   Transport Security(basic)/HTTPS UserNamePasswordValidator ServerCertificateValidationCallback 9 simple steps to enable X.509 certificates on WCF - CodeProject http://www.codeproject.com/KB/WCF/9StepsWCF.aspx?display=Print Message Security(Certificate)/PeerTrust Securing WCF Services with Certificates. - CodeProject http://www.codeproject.com/KB/WCF/wcf_certificates.aspx Message Security(Certificate)/ChainTrust How To Configure WCF Security Using Only X.509 Certificates - CodePr...