Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
We've covered the most common UML diagrams. We've seen Class Diagrams, Use Case Diagrams, Conceptual Object model Diagrams, and Sequence Diagrams. While I'm not going to cover all 14 in this course, here is a couple more that you may come across. First is the State Machine Diagram, also known as a State Chart. I have a very simple example here. This time we would switch our focus to just a single object and not detailing its attributes and its behaviors, but just the way that it changes state over its lifetime.
State Machine Diagrams contain rectangles with rounded corners these are the different states that the object can live in, and we can detail the transition between one to the other and what causes it. These are useful when you have objects that exist in very different states, very different configurations during the lifetime of the application. I want to show exactly how they get from one state to another. Now if you come from a procedural language background, you'll be used to flowcharts. Well, Activity Diagrams are the closest things to classic flowcharts in UML and they detail the stamps the transitions and the decisions that can occur as you flow through part of a system.
It's a slightly different view than say a Sequence Diagram. You can also add partitions--what are often referred to as swim lanes--to an Activity Diagram. What these can represent is either the different classes or even the different business units that take care of different parts of the activity. Some of these later diagrams like Deployment Diagrams and Package Diagrams can be very useful, but are quite specific to the language and the environment you're developing in. So the first four are the most common diagrams you'll see and use.
Now if you're interested in more details in UML I'll cover some additional resources at the end of the course. It's always about selecting the right diagram for the right need, and it should be driven from a business problem. You shouldn't be asking the question where I can write some sequence diagrams, but simply realizing that one would come in useful when thinking about or discussing a situation that isn't clear.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 98508 Viewers
61 Video lessons · 85800 Viewers
71 Video lessons · 69704 Viewers
56 Video lessons · 102010 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.