Welcome!

Microsoft Cloud Authors: Janakiram MSV, Yeshim Deniz, David H Deans, Andreas Grabner, Stackify Blog

Related Topics: Microsoft Cloud

Microsoft Cloud: Article

Unified Modeling Language and Object-Oriented Design

Unified Modeling Language and Object-Oriented Design

When constructing enterprise-level object-oriented applications, it is imperative to incorporate a well-organized, systematic approach to the development of the system. Most software application failures can be traced back to the lack of a unified governing project design among the various participants and owners of the project. It is one thing to build small, self-contained applications working with a team of one, but quite another to build a multitiered, enterprise-level application with a team of many. A good analogy is to compare building a storage shed with constructing a house. You can probably get away with haphazardly constructing a functional shed in the back yard. You cannot, however, successfully construct a house or office building in a similar fashion.

Enterprise-level software projects utilize teams of developers. As a member of a team, you will be asked to convert the design documents into actual implementation code. Furthermore, since modern software design is an iterative process, you will be asked for input on the development and refinement of the design during the coding phase. Just as Detroit has found that it is critical to have empowered assembly line workers who actively contribute to the design and development process of building cars, enterprise architects are dependent on application programmers for input on the refinement and development of the application design. Therefore, a software developer needs to be familiar with the purpose and structure of the various design documents used to manage the development of the application. Furthermore, lead programmers are often asked to sit in on design sessions and develop some of the design documentation. As a result, lead programmers must be comfortable working with tools such as Visio to develop the design documents.

This article is the first in a series that will introduce you to the goals of software design, the Unified Modeling Language design documents commonly used to aid in the design of software applications, and the use of Visio to create the UML design documents introduced.

The Goals of Software Design
Recent analysis of the success of software application projects has painted a bleak picture. The Standish Group conducted a study of 30,000 application projects of various sizes and across various industries. The study revealed that less than 30% of the projects were considered successful. Success is defined as completed on time, on budget, and containing the original feature set commissioned. The study also revealed that historically 25% or more of projects were cancelled before completion. Analysis of the data from the study reveals that the underlying cause of failure is not the complexity of the technology or the skill sets of the programmers involved in the project. The major reason for failure stems from a lack of communication, accountability, and ownership. In other words, a major factor in the failure of application projects is a lack of a governing project management and design methodology.

While there are many viable design methodologies to choose from, successful design methodologies have some common characteristics. They use an empowered team approach to developing software applications and encourage small iterative development cycles. Communication among project participants is carefully monitored and facilitated through a combination of formal and informal documentation. Investing in a sound design methodology will greatly increase the likelihood the project will succeed and accomplish the following:

  • Provide an opportunity to review the current business process and fix any inefficiencies or flaws uncovered
  • Educate customers as to how the software development process occurs and incorporate them as partners in this process
  • Create realistic project scopes and timelines for completion
  • Provide a basis for determining the software testing requirements
  • Reduce the cost of and time required to implement the software solution

    The Unified Modeling Language
    At the root of any design, methodology is a series of formal or informal design documents (models). These documents are a valuable aid used to focus development efforts and to facilitate communication between the various team members. In the early '80s, several software-modeling languages were being developed in an effort to standardize the documents and notations used to model object-oriented software applications. In the mid '90s, the various versions were consolidated into the Unified Modeling Language specification. The specifications were submitted to the Object Management Group (OMG), a nonprofit consortium of leading software industry companies, for approval.

    Since the UML specifications are overseen and governed by the OMG, UML is a nonproprietary open specification. As such, it has been adopted and incorporated into many object-modeling tools on the market today. An added advantage is that UML is agnostic to the language implementation of the model. The same UML design can be converted into a variety of different object-oriented languages, such as Java, C#, VB.NET, or Smalltalk. As a matter of fact, many of the leading design tools also enable forward engineering from the UML model into the class structure of several popular object-oriented languages.

    UML consists of a series of textual/graphical models of the proposed solution. These models are used to define the system scope, components of the system, user interaction with the system, and how the components of the system interact with each other to implement the functionality of the system. Some common documents (models) used in UML are:

  • Use case: A textual/graphical description of how the system will behave from the user's perspective. Users can be humans or other systems.
  • Class diagram: A visual blueprint of the objects that will be used to construct the system.
  • Sequence diagram: A model of the sequence of object interaction as the program executes. Emphasis is placed on the order of the interactions and how they proceed over time.
  • Collaboration diagram: A view of how objects are organized to work together as the program executes. Emphasis is placed on the communications that occur between objects.
  • Activity diagram: A visual representation of the flow of execution of a process or operation.

    Defining System Scope
    The first step in modeling the application is to define the system scope. In order to define the scope of the system, an open dialog must take place between the clients (users of the system), the system designers, and the system programmers. The goal of the dialog is to clearly define and document the business processing the system must perform and establish realistic scope and expectations of the clients. In the past, most of the dialog between the clients of the system and the programmers was conducted indirectly through a system architect. This isolation of the clients from the programmers is ineffective. The role of the architect is not to act as a go-between, but rather as a facilitator in the design process. His or her job is to focus the discussions and ensure that the clients and programmers agree on the project scope. The architect must help to define the core requirements of the system and which requirements will be incorporated into future rollouts.

    The outcome of the scoping dialog is a set of clearly defined statements detailing the functional requirements of the system (collectively referred to as the system requirement specifications or SRS). These statements identify the functionality of the system in terms of how the uses will interact with the system. The technical requirements of the system will be defined later in the design process. The following statements are taken from the SRS of a class registration system being designed for a technical education center.

  • Nonregistered Web users can search the Web site for course information, including course outline, prerequisites, and schedule.
  • New students must complete an online registration form providing their name, address, phone number, e-mail address, and billing information.
  • Students are classified as public or corporate. Corporate students must be affiliated with a preregistered company and include company and contact information.
  • Registered students can reserve a seat in an upcoming class.

    The Use Case Document
    After the system requirements have been defined, the next step is to transform these statements into a series of use case models. A use case model is a visual diagram often accompanied by a textual description that defines how the external entities will interact with the system. The external entities can be either human or other software applications and are referred to as actors. A use case is depicted by an oval in the diagram and a communication line connects the use case with the actors involved. Figure 1 represents a use case for the class registration system introduced previously. Each use case can be mapped to a corresponding statement in the SRS document.

    The textual description of the use case should be succinct and focused on describing the interaction between the actor and the system. It should be emphasized that the internal processing of the system has yet to be developed and should not be included in the use case description. It is often helpful to include any pre and post conditions that need to be identified for the use case. The following textual description is associated with the use case depicted in Figure 1.

    A Web user views the course information lookup page. The Web user enters course search criteria. The search criteria can be course number, type, or keywords used in the course description. After submitting the search request, the user is presented with a list of matching courses and upcoming scheduled dates.

    Preconditions: None.

    Postconditions: Registered students can sign up for a class. Non- registered students can complete a registration form and sign up for a class. If we examine the postconditions of this use case, we can identify another use case. The Class Registration use case describes the process of registering for a class. A precondition for this use case is the View Course Information use case. This type of relationship between two use cases is often referred to as inclusion. The Class Registration use case must use the View Course Information use case. The View Course Information use case can be used independently of the Class Registration use case and is the reason we break these up into two distinct use cases. Figure 2 demonstrates how inclusion is represented in a use case diagram. An arrow points from the dependent use case to the independent use case and is marked with the "uses" keyword.

    Use cases can also be related through extension. A base generic use case is defined that is extended by other use cases. For example, we can define a base Register Student use case. This use case is then extended by more specific use cases such as a Register Public Student use case and a Register Corporate Student use case. The main difference between inclusion and extension is that the extended use case is not used alone. It defines common functionality that will be incorporated into several other use cases. Figure 3 shows a diagram depicting use case extension.

    Using Visio to Construct a Use Case Document
    To help in the process of developing the various UML models, many programmers and architects use a Computer Aided Software Engineering (CASE) tool. Although there are several excellent third-party CASE tools on the market, one of the most popular tools, Visio, is included in the Enterprise Architect version of Visual Studio .NET. Visio allows you to create professional-quality diagrams, generate customizable UML reports, publish UML models as Web pages, and synchronize the UML model with the programming code.

    Before demonstrating the use of Visio, a word of caution is in order. Although I find using a CASE such as Visio very beneficial in the generation of UML models, having a CASE tool is not a requirement for UML modeling. One of the best UML modeling tools available is a whiteboard and a marker. I cannot emphasize strongly enough that most of the value of UML modeling is not in the documents created. The value is in the process. Creating the various documents forces you to systematically think through the issues necessary to successfully design your application. The time you invest in this process will reap huge dividends when you start coding the application.

    Complete the following steps to create a use case diagram using Visio. If you do not have Visio installed, follow along and complete the diagram using paper and pencil.
    1.   Start up Visio. On the File menu, choose New­>Software­>UML Model Diagram.
    2.   Locate the Shapes window on the left side of the screen. This window includes a tab for the common UML diagrams. Select the UML Use Case tab (see Figure 4).
    3.   From the Shapes window click and drag the Actor shape onto the design surface. Right-click the Actor shape on the design surface and choose Properties. You are presented with a UML Actor Properties window. (see Figure 5). Change the name to "Student" and add a description of "registered student". After adding a name and description, click the OK button.
    4.   From the Shapes window click and drag the Use Case shape onto the design surface. Right-click the Use Case shape on the design surface and choose Properties. You are presented with a UML Use Case Properties window. Change the name to "View Course Information" and add the following description:

    A student views the course information lookup page.  The student enters course search criteria.  The search criteria can be course number, type, or keywords used in the course description.  After submitting the search request, the student is presented with a list of matching courses and upcoming scheduled dates.
    After adding a name and description, click the OK button.
    5.   From the Shapes window click and drag the Communicates shape onto the design surface. Attach one end of the Communicates shape to the Actor shape and the other end to the Use Case shape. The line will turn red if it is not attached properly. Right-click the Communicates shape on the design surface and choose Shape Display Options. You are presented with a UML Shape Display Options window. Click on the Suppress First end and Second end checkboxes. When finished, click OK.
    6.   Add another Use Case shape to the design surface. Name the use case "Class Registration" and add the following description:

    After looking up the course information and retrieving a class identification number, the student enters a username and password. The student submits the request and class confirmation information is displayed.

    7.   From the Shapes window click and drag the Uses shape onto the design surface. Attach the tip of the Uses shape arrow to the View Course Information use case and the tail end to the Class Regis- tration use case. The arrow will turn red if it is not attached properly. Figure 6 shows the completed diagram.

    Summary
    This article introduced the Unified Modeling Language and the goals of software design. You have seen how use case diagrams help define the processes necessary to meet the required system functionality and scope and how Visio can aid in the development of use case diagrams. Next time I will focus on developing a UML class diagram. Class diagrams help to model the classes needed to implement the functionality of the application.

  • More Stories By Dan Clark

    Dan is a Microsoft Certified Trainer, Microsoft Certified Solution Developer, and a Microsoft Certified Database Administrator. For the past seven years he has been developing applications and training others how to develop applications using Microsoft technologies. Dan has been developing and training Microsoft's .NET technologies since the early betas. He has recently authored the book "An Introduction to Object-Oriented Programming with Visual Basic .NET," published by Apress.

    Comments (0)

    Share your thoughts on this story.

    Add your comment
    You must be signed in to add a comment. Sign-in | Register

    In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


    @ThingsExpo Stories
    SYS-CON Events announced today that Synametrics Technologies will exhibit at SYS-CON's 22nd International Cloud Expo®, which will take place on June 5-7, 2018, at the Javits Center in New York, NY. Synametrics Technologies is a privately held company based in Plainsboro, New Jersey that has been providing solutions for the developer community since 1997. Based on the success of its initial product offerings such as WinSQL, Xeams, SynaMan and Syncrify, Synametrics continues to create and hone inn...
    To get the most out of their data, successful companies are not focusing on queries and data lakes, they are actively integrating analytics into their operations with a data-first application development approach. Real-time adjustments to improve revenues, reduce costs, or mitigate risk rely on applications that minimize latency on a variety of data sources. In his session at @BigDataExpo, Jack Norris, Senior Vice President, Data and Applications at MapR Technologies, reviewed best practices to ...
    With tough new regulations coming to Europe on data privacy in May 2018, Calligo will explain why in reality the effect is global and transforms how you consider critical data. EU GDPR fundamentally rewrites the rules for cloud, Big Data and IoT. In his session at 21st Cloud Expo, Adam Ryan, Vice President and General Manager EMEA at Calligo, examined the regulations and provided insight on how it affects technology, challenges the established rules and will usher in new levels of diligence arou...
    Recently, WebRTC has a lot of eyes from market. The use cases of WebRTC are expanding - video chat, online education, online health care etc. Not only for human-to-human communication, but also IoT use cases such as machine to human use cases can be seen recently. One of the typical use-case is remote camera monitoring. With WebRTC, people can have interoperability and flexibility for deploying monitoring service. However, the benefit of WebRTC for IoT is not only its convenience and interopera...
    The 22nd International Cloud Expo | 1st DXWorld Expo has announced that its Call for Papers is open. Cloud Expo | DXWorld Expo, to be held June 5-7, 2018, at the Javits Center in New York, NY, brings together Cloud Computing, Digital Transformation, Big Data, Internet of Things, DevOps, Machine Learning and WebRTC to one location. With cloud computing driving a higher percentage of enterprise IT budgets every year, it becomes increasingly important to plant your flag in this fast-expanding busin...
    Smart cities have the potential to change our lives at so many levels for citizens: less pollution, reduced parking obstacles, better health, education and more energy savings. Real-time data streaming and the Internet of Things (IoT) possess the power to turn this vision into a reality. However, most organizations today are building their data infrastructure to focus solely on addressing immediate business needs vs. a platform capable of quickly adapting emerging technologies to address future ...
    No hype cycles or predictions of a gazillion things here. IoT is here. You get it. You know your business and have great ideas for a business transformation strategy. What comes next? Time to make it happen. In his session at @ThingsExpo, Jay Mason, an Associate Partner of Analytics, IoT & Cybersecurity at M&S Consulting, presented a step-by-step plan to develop your technology implementation strategy. He also discussed the evaluation of communication standards and IoT messaging protocols, data...
    Product connectivity goes hand and hand these days with increased use of personal data. New IoT devices are becoming more personalized than ever before. In his session at 22nd Cloud Expo | DXWorld Expo, Nicolas Fierro, CEO of MIMIR Blockchain Solutions, will discuss how in order to protect your data and privacy, IoT applications need to embrace Blockchain technology for a new level of product security never before seen - or needed.
    In his session at 21st Cloud Expo, Raju Shreewastava, founder of Big Data Trunk, provided a fun and simple way to introduce Machine Leaning to anyone and everyone. He solved a machine learning problem and demonstrated an easy way to be able to do machine learning without even coding. Raju Shreewastava is the founder of Big Data Trunk (www.BigDataTrunk.com), a Big Data Training and consulting firm with offices in the United States. He previously led the data warehouse/business intelligence and B...
    A strange thing is happening along the way to the Internet of Things, namely far too many devices to work with and manage. It has become clear that we'll need much higher efficiency user experiences that can allow us to more easily and scalably work with the thousands of devices that will soon be in each of our lives. Enter the conversational interface revolution, combining bots we can literally talk with, gesture to, and even direct with our thoughts, with embedded artificial intelligence, whic...
    Cloud Expo | DXWorld Expo have announced the conference tracks for Cloud Expo 2018. Cloud Expo will be held June 5-7, 2018, at the Javits Center in New York City, and November 6-8, 2018, at the Santa Clara Convention Center, Santa Clara, CA. Digital Transformation (DX) is a major focus with the introduction of DX Expo within the program. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive ov...
    "Evatronix provides design services to companies that need to integrate the IoT technology in their products but they don't necessarily have the expertise, knowledge and design team to do so," explained Adam Morawiec, VP of Business Development at Evatronix, in this SYS-CON.tv interview at @ThingsExpo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
    Recently, REAN Cloud built a digital concierge for a North Carolina hospital that had observed that most patient call button questions were repetitive. In addition, the paper-based process used to measure patient health metrics was laborious, not in real-time and sometimes error-prone. In their session at 21st Cloud Expo, Sean Finnerty, Executive Director, Practice Lead, Health Care & Life Science at REAN Cloud, and Dr. S.P.T. Krishnan, Principal Architect at REAN Cloud, discussed how they built...
    Digital Transformation (DX) is not a "one-size-fits all" strategy. Each organization needs to develop its own unique, long-term DX plan. It must do so by realizing that we now live in a data-driven age, and that technologies such as Cloud Computing, Big Data, the IoT, Cognitive Computing, and Blockchain are only tools. In her general session at 21st Cloud Expo, Rebecca Wanta explained how the strategy must focus on DX and include a commitment from top management to create great IT jobs, monitor ...
    "Digital transformation - what we knew about it in the past has been redefined. Automation is going to play such a huge role in that because the culture, the technology, and the business operations are being shifted now," stated Brian Boeggeman, VP of Alliances & Partnerships at Ayehu, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
    In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, led attendees through the exciting evolution of the cloud. He looked at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering m...
    SYS-CON Events announced today that Evatronix will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Evatronix SA offers comprehensive solutions in the design and implementation of electronic systems, in CAD / CAM deployment, and also is a designer and manufacturer of advanced 3D scanners for professional applications.
    Nordstrom is transforming the way that they do business and the cloud is the key to enabling speed and hyper personalized customer experiences. In his session at 21st Cloud Expo, Ken Schow, VP of Engineering at Nordstrom, discussed some of the key learnings and common pitfalls of large enterprises moving to the cloud. This includes strategies around choosing a cloud provider(s), architecture, and lessons learned. In addition, he covered some of the best practices for structured team migration an...
    22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...
    22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...