142 Internet of Things
diagrams can be utilized as a replacement for flowcharts. UML diagrams give us a more stand-
ardized way of modeling and a wide range of features to increase ecacy and readability.
Sketch
UML diagrams are used to connect various aspects and characteristics of a system. Although,
this remains only a top view of the system and might not include every necessary detail to
explore the projects until its end.
Forward Design
We can prepare the design of the sketch before coding the application. This naturally helps us
to get a better view of the workflow or system that we are trying to establish. In the end, you can
identify various issues and flaws that improve the health of the project.
Backward Design
Once you write the code, the UML diagrams can be drawn as a mean of documentation for the
various actors, activities, roles, and workflows.
Blueprint
Blueprints help us to provide a complete design that needs only the actual implementation of
software or system. This is usually done by utilizing Computer Aided Software Engineering
Tools. However, using these tools is not a cakewalk and may require a certain level of proficiency.
Pseudo Programming Language
Unlike stand-alone programming languages such as Java, C++, or Python, UML is not a
stand-alone programming language. However, by utilizing the right tools you can turn UML
into a pseudo-programming language. To do this, we need to document the entire system in
dierent UML diagrams by using the right software. Later, we can translate these diagrams into
code directly. UML was created for the modeling software system; however, it has been used in
businesses and non-software systems.
DIFFERENT TYPES OF UML DIAGRAMS
There are various diagrams in UML and each one has a specific purpose. We can divide the
diagrams into two major categories; Behavioral UML diagram and Structural UML diagram.
These diagrams are responsible for describing the structure of the system, process, behavior of
the system, etc. We can further break down the diagrams as follows:
Behavioral UML Diagram
• Activity diagram,
• Interaction overview diagram,
• Communication diagram,
• Use case diagram,
Internet_of_Things_CH06_pp141-170.indd 142 9/3/2019 10:14:17 AM
Get Internet of Things now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.