Chapter 6 Essential Elements for Designing IoT Architecture 151
CLASS DIAGRAM
A Class diagram is the most commonly used UML diagram for the documentation of software.
Today, the majority of the software is based on Object-Oriented Programming paradigm. They
utilize class diagrams to document the system. This takes place as OOP is based on classes and
the relationships among them.
In other words, Class diagrams consist of classes, along with their attributes and their
behaviors. Each class is composed of three fields: the name of the class at the top, the attributes
of the class right below the name, and the class behaviors are present at the bottom. The rela-
tion among various classes gets represented by a connecting line that makes up for the class
diagram.
+type
Client
+name
+PAN
+address
+employment
+owns()
+owner
+account number
+ifsc_ code
+MICR Code
+bic
Account
Current Account Savings Account
+balance
+withdrawal-limit
+debit()
+credit()
+withdraw()
+balance
+rate
+debit()
+credit()
The diagram given above is an example of a basic class diagram. The “Savings Account”
class and “Current Account” class, both of them could inherit from the more general class,
Account”. The blank-headed has been used to show the inheritance. The “Client” class is the
other class in the given diagram.
Internet_of_Things_CH06_pp141-170.indd 151 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.137.218.230