SlideShare une entreprise Scribd logo
1  sur  30
Structural View


Objectives
In this lesson, you will learn to:
 Identify the behavior of a class
 Identify the attributes of a class
 Create a Class diagram
 Create an Object diagram




©NIIT                                  UML /Lesson 2/Slide 1 of 30
Structural View


The Structural View
 Represents the static aspect of a system
 Comprises:
     Class Diagrams
        ® Depict   various classes and their associations
        ® Describesthe classes that are declared within
         the system
     Object Diagrams
        ® Depict   various objects and their links with each
         other

©NIIT                                     UML /Lesson 2/Slide 2 of 30
Structural View


Classes
 Are used for modeling the real-world entities that have
  common characteristics
 Are of different types
     Entity classes - are the one that are examined by
      use case for the entities that interact with the
      system
     Control classes - are the one that control the
      working of the use case
     Boundary classes – mapping of information to
      relevant classes during the in flow and out flow of
      information

©NIIT                                  UML /Lesson 2/Slide 3 of 30
Structural View

Classes(Contd.)
 Consider the following example, the use cases in the
  billing system of the department store are
     Enter Bill Details
     Calculate Total Amount
     Print Bill
 The use case Enter Bill Details is mapped to class
  called BillDetailAcceptor
 The table given below shows the classes identified for
  the above example




©NIIT                                 UML /Lesson 2/Slide 4 of 30
Structural View


Classes(Contd.)
         Use Case                                   Class


                                 Control            Entity             Boundary



  Enter Bill Details       BillDetailAcceptor   Clerk               Product, Bill




  Calculate Total Amount   TotalAmountCalcul                        Bill
                           ator



  Print Bill               BillPrinter          Clerk               Bill




©NIIT                                                   UML /Lesson 2/Slide 5 of 30
Structural View


Identify Behaviors
 The behavior is the action performed by a class
 The table given below shows the behavior identified
  for the billing system example




©NIIT                                UML /Lesson 2/Slide 6 of 30
Structural View


Identify Behaviors(Contd.)
                     Class                       Behavior

BillDetailAcceptor           ValidateBillDetail()



Clerk                        EnterBillDetail()



Product                       




TotalAmountCalculator        calculateTotalAmount()



BillPrinter                  printBill()



Bill                         addProductDetail(), editProductDetail(),
                             deleteProductDetail().




©NIIT                                       UML /Lesson 2/Slide 7 of 30
Structural View


Identify Attribute
Attributes are the characteristics of the class
The table given below shows the attributes identified
  for the billing system example




©NIIT                                  UML /Lesson 2/Slide 8 of 30
Structural View


Identify Attribute(Contd.)
                      Class                 Attribute

 BillDetailAcceptor            




 Clerk                        clerkCode and clerkName


 Product                      ProductCode, productName, and unitPrice


 TotalAmountCalculator         




 BillPrinter                   




 Bill                         billNo, product and quantityBought




©NIIT                                      UML /Lesson 2/Slide 9 of 30
Structural View


Diagrammatic conventions for Drawing Class
Diagrams
Multiplicity indicators are used to represent the
 relationship between different classes
        Representation                     Multiplicity

              1               represents exactly one


             0..*             represents zero or more


             1..*             represents one or more


             0..1             represents zero or one


             1..5             represents specified
                              range


©NIIT                                      UML /Lesson 2/Slide 10 of 30
Structural View


Relationship Between Classes
 There can be different kind of relationship between
  different classes
 Given below are the kind of relationship that exist
  between different classes in the billing system
  example
     One-to-One relationship exists between the class
      clerk and the class BillDetailAcceptor
     One-to-One relationship exists between the class
      BillDetailAcceptor and the class Bill
     One-to-Many kind of relationship exists between
      the class Bill and the class Product

©NIIT                                 UML /Lesson 2/Slide 11 of 30
Structural View


Class Diagram
 Given below is the representation of the class diagram



                        Class Name



                   Class Attributes



                   Class Behavior




©NIIT                                   UML /Lesson 2/Slide 12 of 30
Structural View


Class Diagram(Contd.)

          Clerk                   BillDetailAcceptor                                    Bill
                                                                            billNo
                    1      1                                1           1   product
clerkCode                                                                   quantityBought
clerkName
                               validateBillDetail()                         addProductDetail()
enterBillDetail()                                                           editProductDetail()
                                                                            deleteProductDetail()


                                                                                               1

                                                                                               1..*

                                                                                      Product

                                                                               productCode
                                                                               productName
                                                                               unitPrice




 ©NIIT                                                           UML /Lesson 2/Slide 13 of 30
Structural View


Problem Statement 2.D.1
  In the internal job postings process, the HR head of
  the region where the vacancy exists informs the
  employees of that region and other regional HR heads
  about the vacancy. The other regional HR heads
  inform employees by putting up a notice with the
  vacancy information.
  Identify the classes, their attributes and behaviors,
  and draw the class diagram.




©NIIT                                 UML /Lesson 2/Slide 14 of 30
Structural View


Identify Classes
                                          Classes



             Control                  Entity                  Boundary


        Distribution Manager   Regional HR Head (V)   Position Vacant




                               Regional HR Head (O)    




                               Employee




©NIIT                                                 UML /Lesson 2/Slide 15 of 30
Structural View


Identify Behaviors
                          Class                Behavior


                                  - informRegions()
        Distribution Manager
                                  - notifyEmployees()



        Position Vacant            




        Regional HR Head (V)      - enterVacancyDetails()



        Regional HR Head (O)       




        Employee                   




©NIIT                                      UML /Lesson 2/Slide 16 of 30
Structural View


Identify Attributes
                          Class                  Attribute

        Distribution Manager



        Position Vacant           - regionName
                                  - noOfVacancy
                                  - skillsRequired


        Regional HR Head (V)      - regionName



        Regional HR Head (O)      - regionName



        Employee                  - empCode
                                  - empName
                                  - qualification
                                  - dateOfJoining
                                  - yearsOfExperience



©NIIT                                        UML /Lesson 2/Slide 17 of 30
Structural View


    Solution
  Position Vacant                Regional HR                    Distribution Manager                 Regional HR
                                  Head (V)
                                                                                                      Head (O)
                    1..*   1                   1      1                                1   1..*  
regionName                                                  informRegions()
                               regionName 
noOfVacancy                                                 notifyEmployees()
skillRequired                                                                                       regionName
                               enterVacancy
                               Details()



                                                                         1




                      Employee

                      empCode
                      empName                     1..*       
                      qualification
                      dateOfJoining
                      yearsOfExperience 




      ©NIIT                                                                  UML /Lesson 2/Slide 18 of 30
Structural View


Problem Statement 2.P.1
  In response to the vacancy information, employees
  from various regions send their applications to the HR
  head of the region where the vacancy exists.
  Identify the classes, their attributes and behaviors, and
  draw the class diagram.




©NIIT                                 UML /Lesson 2/Slide 19 of 30
Structural View


Object Diagrams
 Describe the static structure of a system at a
  particular instance in time
 Describe the instantiation of a class diagram
 Contain objects and links
 Cover instances of the classes found in the class
  diagram




©NIIT                                 UML /Lesson 2/Slide 20 of 30
Structural View


Object Diagrams(Contd.)
  In the billing system example, a customer Michael
  White wants to buy Ashton Television. He selects the
  television and comes to the billing counter. The clerk
  Robert Clark enters the item details. The system then
  calculates the total amount and prints the bill.




©NIIT                                UML /Lesson 2/Slide 21 of 30
Structural View


Identify Object
 An object is an instance of a class and demonstrates
  attributes and behaviors of the class
 The table given below shows the object identified for
  the billing system example




©NIIT                                UML /Lesson 2/Slide 22 of 30
Structural View


Identify Object(Contd.)
                       Class                   Object

        BillDetailAcceptor       




        Clerk                   Robert Clark


        Product                 Ashton Television


        TotalAmountCalculator    




        BillPrinter              




        Bill                     




©NIIT                                      UML /Lesson 2/Slide 23 of 30
Structural View


Identify Object(Contd.)
 Given below is the representation of the object
  diagram



                      Class Name :
                      Object Name


                    Object Attributes


                    Object Behavior




©NIIT                                     UML /Lesson 2/Slide 24 of 30
Structural View


Identify Object(Contd.)
      Clerk:         BillDetailAcceptor                       Bill
    Robert Clark                                   billNo
                                                   product: Ashton Television
clerkCode                                          quantityBought: 1
clerkName: Robert
Clark               validateBillDetail()
                                                   addProductDetail()
enterBillDetail()                                  editProductDetail()
                                                   deleteProductDetail()




                                                           Product:
                                                       Ashton Television

                                                      productCode
                                                      productName: Ashton
                                                      Television
                                                      unitPrice




 ©NIIT                                     UML /Lesson 2/Slide 25 of 30
Structural View


Problem Statement 2.D.2
  In the internal job postings process, the HR head of
  the Springfield region where the vacancy exists
  informs the employees of that region and other
  regional HR heads. According to him, a vacancy for
  the post of Store incharge exists in the company. The
  qualification required is atleast 2 years of experience
  for managing the stores. The other regional HR heads
  inform their employees by putting up a notice with the
  vacancy information.
  Draw the object diagram.




©NIIT                                UML /Lesson 2/Slide 26 of 30
Structural View


  Solution
Position Vacant           Regional HR         Distribution             Regional HR
                           Head (V)            Manager
                                                                         Head (O)
RegionName:
Springfield                                                            regionName
                        RegionName:Spri   informRegions()
NoOfVacancy: 1          ngfield           notifyEmployees()
SkillRequired:
2years Exp              enterVacancy
                        Details()




                  Employee

                  empCode
                  empName
                  Qualification
                  DateOfJoining
                  YearsOfExperience




   ©NIIT                                             UML /Lesson 2/Slide 27 of 30
Structural View


Problem Statement 2.P.2
  In response to the vacancy information as discussed
  above. Employees from various regions send their
  applications to the HR head of the region where the
  vacancy exists.
  Jerry who has the required qualifications is interested
  in the post. He provides the following details to the HR
  department:




©NIIT                                 UML /Lesson 2/Slide 28 of 30
Structural View


Problem Statement 2.P.2(Contd.)

   EmpCode             E00112




   EmpName             Jerry Black




   DateOfJoining       11/10/1999




   YearsOfExperience   2




©NIIT                                UML /Lesson 2/Slide 29 of 30
Structural View


Summary
In this lesson you learned:
 The structural view represents the static aspect of a
  system, and comprises class and object diagrams.
 Class diagrams depict various classes and their
  associations.
 An object diagram describes the static structure of a
  system at a certain point in time.
 An object diagram describes the instantiation of a
  class diagram.



©NIIT                                 UML /Lesson 2/Slide 30 of 30

Contenu connexe

Similaire à Class Diagram for Job Vacancy Process

03 ooad uml-03
03 ooad uml-0303 ooad uml-03
03 ooad uml-03Niit Care
 
CS8592 Object Oriented Analysis & Design - UNIT II
CS8592 Object Oriented Analysis & Design - UNIT IICS8592 Object Oriented Analysis & Design - UNIT II
CS8592 Object Oriented Analysis & Design - UNIT IIpkaviya
 
Strategy design pattern
Strategy design pattern Strategy design pattern
Strategy design pattern aswapnal
 
Assignment 4- Implementing a Banking Application Due See course shel.pdf
 Assignment 4- Implementing a Banking Application Due See course shel.pdf Assignment 4- Implementing a Banking Application Due See course shel.pdf
Assignment 4- Implementing a Banking Application Due See course shel.pdfamarhandi
 
Adam boczek 2015 agile architecture in 10 steps v1.0
Adam boczek 2015 agile architecture in 10 steps v1.0Adam boczek 2015 agile architecture in 10 steps v1.0
Adam boczek 2015 agile architecture in 10 steps v1.0iasaglobal
 
Adam boczek 2015 agile architecture in 10 steps v1.0
Adam boczek 2015 agile architecture in 10 steps v1.0Adam boczek 2015 agile architecture in 10 steps v1.0
Adam boczek 2015 agile architecture in 10 steps v1.0iasaglobal
 
UML Foundation for C Self Trimming
UML Foundation for C Self TrimmingUML Foundation for C Self Trimming
UML Foundation for C Self TrimmingPathfinder Solutions
 
Lecture 19...unit 3.....se
Lecture 19...unit 3.....seLecture 19...unit 3.....se
Lecture 19...unit 3.....sePraveen Nelapati
 
Aae oop xp_01
Aae oop xp_01Aae oop xp_01
Aae oop xp_01Niit Care
 
PhD Core Paper Unit 5 _Part 1 Software Design and UML Use Case Modeling.pdf
PhD Core Paper Unit 5 _Part 1 Software Design and UML Use Case Modeling.pdfPhD Core Paper Unit 5 _Part 1 Software Design and UML Use Case Modeling.pdf
PhD Core Paper Unit 5 _Part 1 Software Design and UML Use Case Modeling.pdfJAYANTHIKANNAN8
 
Step by step abap_input help or lov
Step by step abap_input help or lovStep by step abap_input help or lov
Step by step abap_input help or lovMilind Patil
 
Strategy Design Pattern
Strategy Design PatternStrategy Design Pattern
Strategy Design PatternGanesh Kolhe
 

Similaire à Class Diagram for Job Vacancy Process (20)

UML 2.0 Changes
UML 2.0 ChangesUML 2.0 Changes
UML 2.0 Changes
 
03 ooad uml-03
03 ooad uml-0303 ooad uml-03
03 ooad uml-03
 
Crj 3 1-a
Crj 3 1-aCrj 3 1-a
Crj 3 1-a
 
UML.pptx
UML.pptxUML.pptx
UML.pptx
 
CS8592 Object Oriented Analysis & Design - UNIT II
CS8592 Object Oriented Analysis & Design - UNIT IICS8592 Object Oriented Analysis & Design - UNIT II
CS8592 Object Oriented Analysis & Design - UNIT II
 
Notacion uml
Notacion umlNotacion uml
Notacion uml
 
Uml3
Uml3Uml3
Uml3
 
Strategy design pattern
Strategy design pattern Strategy design pattern
Strategy design pattern
 
Assignment 4- Implementing a Banking Application Due See course shel.pdf
 Assignment 4- Implementing a Banking Application Due See course shel.pdf Assignment 4- Implementing a Banking Application Due See course shel.pdf
Assignment 4- Implementing a Banking Application Due See course shel.pdf
 
Adam boczek 2015 agile architecture in 10 steps v1.0
Adam boczek 2015 agile architecture in 10 steps v1.0Adam boczek 2015 agile architecture in 10 steps v1.0
Adam boczek 2015 agile architecture in 10 steps v1.0
 
Adam boczek 2015 agile architecture in 10 steps v1.0
Adam boczek 2015 agile architecture in 10 steps v1.0Adam boczek 2015 agile architecture in 10 steps v1.0
Adam boczek 2015 agile architecture in 10 steps v1.0
 
4+1
4+14+1
4+1
 
UML Foundation for C Self Trimming
UML Foundation for C Self TrimmingUML Foundation for C Self Trimming
UML Foundation for C Self Trimming
 
Lecture 19...unit 3.....se
Lecture 19...unit 3.....seLecture 19...unit 3.....se
Lecture 19...unit 3.....se
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
Architecture Document Template
Architecture Document TemplateArchitecture Document Template
Architecture Document Template
 
Aae oop xp_01
Aae oop xp_01Aae oop xp_01
Aae oop xp_01
 
PhD Core Paper Unit 5 _Part 1 Software Design and UML Use Case Modeling.pdf
PhD Core Paper Unit 5 _Part 1 Software Design and UML Use Case Modeling.pdfPhD Core Paper Unit 5 _Part 1 Software Design and UML Use Case Modeling.pdf
PhD Core Paper Unit 5 _Part 1 Software Design and UML Use Case Modeling.pdf
 
Step by step abap_input help or lov
Step by step abap_input help or lovStep by step abap_input help or lov
Step by step abap_input help or lov
 
Strategy Design Pattern
Strategy Design PatternStrategy Design Pattern
Strategy Design Pattern
 

Plus de Niit Care (20)

Ajs 1 b
Ajs 1 bAjs 1 b
Ajs 1 b
 
Ajs 4 b
Ajs 4 bAjs 4 b
Ajs 4 b
 
Ajs 4 a
Ajs 4 aAjs 4 a
Ajs 4 a
 
Ajs 4 c
Ajs 4 cAjs 4 c
Ajs 4 c
 
Ajs 3 b
Ajs 3 bAjs 3 b
Ajs 3 b
 
Ajs 3 a
Ajs 3 aAjs 3 a
Ajs 3 a
 
Ajs 3 c
Ajs 3 cAjs 3 c
Ajs 3 c
 
Ajs 2 b
Ajs 2 bAjs 2 b
Ajs 2 b
 
Ajs 2 a
Ajs 2 aAjs 2 a
Ajs 2 a
 
Ajs 2 c
Ajs 2 cAjs 2 c
Ajs 2 c
 
Ajs 1 a
Ajs 1 aAjs 1 a
Ajs 1 a
 
Ajs 1 c
Ajs 1 cAjs 1 c
Ajs 1 c
 
Dacj 4 2-c
Dacj 4 2-cDacj 4 2-c
Dacj 4 2-c
 
Dacj 4 2-b
Dacj 4 2-bDacj 4 2-b
Dacj 4 2-b
 
Dacj 4 2-a
Dacj 4 2-aDacj 4 2-a
Dacj 4 2-a
 
Dacj 4 1-c
Dacj 4 1-cDacj 4 1-c
Dacj 4 1-c
 
Dacj 4 1-b
Dacj 4 1-bDacj 4 1-b
Dacj 4 1-b
 
Dacj 4 1-a
Dacj 4 1-aDacj 4 1-a
Dacj 4 1-a
 
Dacj 1-2 b
Dacj 1-2 bDacj 1-2 b
Dacj 1-2 b
 
Dacj 1-3 c
Dacj 1-3 cDacj 1-3 c
Dacj 1-3 c
 

Dernier

Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 

Dernier (20)

Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 

Class Diagram for Job Vacancy Process

  • 1. Structural View Objectives In this lesson, you will learn to: Identify the behavior of a class Identify the attributes of a class Create a Class diagram Create an Object diagram ©NIIT UML /Lesson 2/Slide 1 of 30
  • 2. Structural View The Structural View Represents the static aspect of a system Comprises: Class Diagrams ® Depict various classes and their associations ® Describesthe classes that are declared within the system Object Diagrams ® Depict various objects and their links with each other ©NIIT UML /Lesson 2/Slide 2 of 30
  • 3. Structural View Classes Are used for modeling the real-world entities that have common characteristics Are of different types Entity classes - are the one that are examined by use case for the entities that interact with the system Control classes - are the one that control the working of the use case Boundary classes – mapping of information to relevant classes during the in flow and out flow of information ©NIIT UML /Lesson 2/Slide 3 of 30
  • 4. Structural View Classes(Contd.) Consider the following example, the use cases in the billing system of the department store are Enter Bill Details Calculate Total Amount Print Bill The use case Enter Bill Details is mapped to class called BillDetailAcceptor The table given below shows the classes identified for the above example ©NIIT UML /Lesson 2/Slide 4 of 30
  • 5. Structural View Classes(Contd.) Use Case Class   Control Entity Boundary Enter Bill Details BillDetailAcceptor Clerk Product, Bill Calculate Total Amount TotalAmountCalcul   Bill ator Print Bill BillPrinter Clerk Bill ©NIIT UML /Lesson 2/Slide 5 of 30
  • 6. Structural View Identify Behaviors The behavior is the action performed by a class The table given below shows the behavior identified for the billing system example ©NIIT UML /Lesson 2/Slide 6 of 30
  • 7. Structural View Identify Behaviors(Contd.) Class Behavior BillDetailAcceptor ValidateBillDetail() Clerk EnterBillDetail() Product   TotalAmountCalculator calculateTotalAmount() BillPrinter printBill() Bill addProductDetail(), editProductDetail(), deleteProductDetail(). ©NIIT UML /Lesson 2/Slide 7 of 30
  • 8. Structural View Identify Attribute Attributes are the characteristics of the class The table given below shows the attributes identified for the billing system example ©NIIT UML /Lesson 2/Slide 8 of 30
  • 9. Structural View Identify Attribute(Contd.) Class Attribute BillDetailAcceptor   Clerk clerkCode and clerkName Product ProductCode, productName, and unitPrice TotalAmountCalculator   BillPrinter   Bill billNo, product and quantityBought ©NIIT UML /Lesson 2/Slide 9 of 30
  • 10. Structural View Diagrammatic conventions for Drawing Class Diagrams Multiplicity indicators are used to represent the relationship between different classes Representation Multiplicity 1 represents exactly one 0..* represents zero or more 1..* represents one or more 0..1 represents zero or one 1..5 represents specified range ©NIIT UML /Lesson 2/Slide 10 of 30
  • 11. Structural View Relationship Between Classes There can be different kind of relationship between different classes Given below are the kind of relationship that exist between different classes in the billing system example One-to-One relationship exists between the class clerk and the class BillDetailAcceptor One-to-One relationship exists between the class BillDetailAcceptor and the class Bill One-to-Many kind of relationship exists between the class Bill and the class Product ©NIIT UML /Lesson 2/Slide 11 of 30
  • 12. Structural View Class Diagram Given below is the representation of the class diagram Class Name Class Attributes Class Behavior ©NIIT UML /Lesson 2/Slide 12 of 30
  • 13. Structural View Class Diagram(Contd.) Clerk BillDetailAcceptor Bill billNo 1      1      1           1 product clerkCode quantityBought clerkName validateBillDetail() addProductDetail() enterBillDetail() editProductDetail() deleteProductDetail() 1 1..* Product productCode productName unitPrice ©NIIT UML /Lesson 2/Slide 13 of 30
  • 14. Structural View Problem Statement 2.D.1 In the internal job postings process, the HR head of the region where the vacancy exists informs the employees of that region and other regional HR heads about the vacancy. The other regional HR heads inform employees by putting up a notice with the vacancy information. Identify the classes, their attributes and behaviors, and draw the class diagram. ©NIIT UML /Lesson 2/Slide 14 of 30
  • 15. Structural View Identify Classes Classes Control Entity Boundary Distribution Manager Regional HR Head (V) Position Vacant   Regional HR Head (O)     Employee ©NIIT UML /Lesson 2/Slide 15 of 30
  • 16. Structural View Identify Behaviors Class Behavior - informRegions() Distribution Manager - notifyEmployees() Position Vacant   Regional HR Head (V) - enterVacancyDetails() Regional HR Head (O)   Employee   ©NIIT UML /Lesson 2/Slide 16 of 30
  • 17. Structural View Identify Attributes Class Attribute Distribution Manager Position Vacant - regionName - noOfVacancy - skillsRequired Regional HR Head (V) - regionName Regional HR Head (O) - regionName Employee - empCode - empName - qualification - dateOfJoining - yearsOfExperience ©NIIT UML /Lesson 2/Slide 17 of 30
  • 18. Structural View Solution Position Vacant Regional HR Distribution Manager Regional HR Head (V) Head (O) 1..*   1 1      1 1   1..*   regionName informRegions() regionName  noOfVacancy notifyEmployees() skillRequired regionName enterVacancy Details()  1 Employee empCode empName  1..*        qualification dateOfJoining yearsOfExperience  ©NIIT UML /Lesson 2/Slide 18 of 30
  • 19. Structural View Problem Statement 2.P.1 In response to the vacancy information, employees from various regions send their applications to the HR head of the region where the vacancy exists. Identify the classes, their attributes and behaviors, and draw the class diagram. ©NIIT UML /Lesson 2/Slide 19 of 30
  • 20. Structural View Object Diagrams Describe the static structure of a system at a particular instance in time Describe the instantiation of a class diagram Contain objects and links Cover instances of the classes found in the class diagram ©NIIT UML /Lesson 2/Slide 20 of 30
  • 21. Structural View Object Diagrams(Contd.) In the billing system example, a customer Michael White wants to buy Ashton Television. He selects the television and comes to the billing counter. The clerk Robert Clark enters the item details. The system then calculates the total amount and prints the bill. ©NIIT UML /Lesson 2/Slide 21 of 30
  • 22. Structural View Identify Object An object is an instance of a class and demonstrates attributes and behaviors of the class The table given below shows the object identified for the billing system example ©NIIT UML /Lesson 2/Slide 22 of 30
  • 23. Structural View Identify Object(Contd.) Class Object BillDetailAcceptor   Clerk Robert Clark Product Ashton Television TotalAmountCalculator   BillPrinter   Bill   ©NIIT UML /Lesson 2/Slide 23 of 30
  • 24. Structural View Identify Object(Contd.) Given below is the representation of the object diagram Class Name : Object Name Object Attributes Object Behavior ©NIIT UML /Lesson 2/Slide 24 of 30
  • 25. Structural View Identify Object(Contd.) Clerk: BillDetailAcceptor Bill Robert Clark billNo product: Ashton Television clerkCode quantityBought: 1 clerkName: Robert Clark validateBillDetail() addProductDetail() enterBillDetail() editProductDetail() deleteProductDetail() Product: Ashton Television productCode productName: Ashton Television unitPrice ©NIIT UML /Lesson 2/Slide 25 of 30
  • 26. Structural View Problem Statement 2.D.2 In the internal job postings process, the HR head of the Springfield region where the vacancy exists informs the employees of that region and other regional HR heads. According to him, a vacancy for the post of Store incharge exists in the company. The qualification required is atleast 2 years of experience for managing the stores. The other regional HR heads inform their employees by putting up a notice with the vacancy information. Draw the object diagram. ©NIIT UML /Lesson 2/Slide 26 of 30
  • 27. Structural View Solution Position Vacant Regional HR Distribution Regional HR Head (V) Manager       Head (O) RegionName: Springfield regionName RegionName:Spri informRegions() NoOfVacancy: 1 ngfield notifyEmployees() SkillRequired: 2years Exp enterVacancy Details() Employee empCode empName Qualification DateOfJoining YearsOfExperience ©NIIT UML /Lesson 2/Slide 27 of 30
  • 28. Structural View Problem Statement 2.P.2 In response to the vacancy information as discussed above. Employees from various regions send their applications to the HR head of the region where the vacancy exists. Jerry who has the required qualifications is interested in the post. He provides the following details to the HR department: ©NIIT UML /Lesson 2/Slide 28 of 30
  • 29. Structural View Problem Statement 2.P.2(Contd.) EmpCode E00112 EmpName Jerry Black DateOfJoining 11/10/1999 YearsOfExperience 2 ©NIIT UML /Lesson 2/Slide 29 of 30
  • 30. Structural View Summary In this lesson you learned: The structural view represents the static aspect of a system, and comprises class and object diagrams. Class diagrams depict various classes and their associations. An object diagram describes the static structure of a system at a certain point in time. An object diagram describes the instantiation of a class diagram. ©NIIT UML /Lesson 2/Slide 30 of 30