150 Internet of Things
of interactions and messages that take place among actors and objects. These actors and objects
can only remain active when another object needs them and desires to communicate with them.
The structure diagrams are responsible for depicting the structure of a system. In software devel-
opment, we use them to portray the architecture of the system and how the various components
are interconnected to each other.
With the given diagram of a sequence diagram below, you will understand their usage. It
represents the course registration system.
COMMUNICATION UML DIAGRAM
Earlier these diagrams were known as collaborative diagrams. The primary focus of
Communication UML Diagrams is on communication among objects. The core components
that were exchanged between objects are the messages. A Communication Diagram can be
drawn the same way we make a Sequence Diagram. The dierence between these two diagrams
is that Communication Diagrams are portrayed with cooperative connections. In visualization,
Sequence Diagrams are well made vertically and their message flow chases a top-down
chronological method whereas the Communication UML Diagrams utilize pointing arrows and
number schemes to portray the message flow.
Cash Request Debit card
Cash Request Debit card
Server Request
Request Processed
Cash
Send
Confirm
Bank
Check Balance
Account
In most of the cases, the software engineers prefer sequence diagrams over communication
diagrams. This is due to their well-made structure and ability to provide more available annota-
tions within the UML documentation.
However, designing a communication diagram is much easier. This is due to their flexibility
as you can literally draw anywhere on the board to add new objects. In these diagrams, if
we want the objects to be connected, then they only need to be a member of the numbered
sequence. Thus, there’s no need to be physically close to each other.
Internet_of_Things_CH06_pp141-170.indd 150 9/3/2019 10:14:19 AM
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.77.71