SlideShare uma empresa Scribd logo
1 de 20
Ch 5 PresentationOrganizing an Object Model David Morales
How to Organize an Object Model Complete each task in the proper order Include proper amount of detail in each step Revise and edit  Ensure data is correct and all necessary info is included Add additional information where needed Ensure all subsequent steps reflect update Example: if an additional class is needed, then all following steps need to show the new class
Steps for Creating an Object Model Tasks in order Identify and define objects Define Relationships between objects	 Create a Relationship diagram Indentify the actors and use cases Create a Use Case Diagram
Steps for Creating an Object Model Tasks in order (continued) Identify cardinality and UML Notation Create a Class Diagram Create a Sequence Diagram Create a Sate Transition Diagram Create an Activity Diagram
Steps for Creating an Object Model All tasks are sequential Each step depends on data generated from previous steps Additional information can be added to a previous task regardless of what step of the process you are on Updates must be reflected in all the tasks that follow the task that was updated
Identify and Define Objects Objects represent a real person, place, event, or transaction Each object contains attributes, methods, and messages Attributes describe the class Methods are tasks and functions the object can perform when it receives a message A message is a command
Identify and Define Objects Steps: 1. Add new student instance 2. Record employee number 3. Record employee name 4. Record address 5. Record telephone number 6. Record date of birth 7. Record sex 8. Record title, rate of pay 9. Record deductions 10. Record state 11. Save new employee data Method: ADD EMPLOYEE EMPLOYEE Attributes Employee number Employee name Address Telephone number Date of birth Sex Title, rate of pay Deductions State Methods Add new Change name Change address Change Telephone Change deductions Change state Characteristics that describe the EMPLOYEE object Tasks that the EMPLOYEE object can perform Objects and methods are represented visually Object Method Message: ADD NEW Tells the EMPLOYEE class to perform all the steps needed to add an EMPLOYEE
Identify and Define Objects EMPLOYEE Attributes Employee number Employee name Address Telephone number Date of birth Sex Title, rate of pay Deductions State Methods Add new Change name Change address Change Telephone Change deductions Change state Characteristics that describe the EMPLOYEE object Tasks that the EMPLOYEE object can perform Each object can have different instances There are many employees, each employee has his/her own record Instances of EMPLOYEE Object 0392 David Morales 9408 Worman Dr, Stafford 555-555-5555 29Mar1983 Male Help Desk Tech, 35k 0 VA 0023 Melissa Barnes 1020 Fleet St, Stafford 555-555-1254 03Aug1971 Female Accounting Manager, 75k 3 VA
Define Relationships between Objects Relationships enable objects to communicate and interact as the perform functions and transactions They describe  What objects need to know about each other How they respond to changes in other objects The effects of member ship in classes, superclasses and sub-classes
Define Relationships between Objects EMPLOYEE Attributes Employee number Address Telephone number Title, rate of pay Deductions State PERSON MANAGER Attributes Name Date of birth Attributes Methods Add new Change name Change address Change Telephone Change deductions Change state Methods Breath Eat Sleep Objects belong to classes, classes belong to superclasses, and classes can have sub-classes Class Class name Superclass Superclass name Uncommon attributes Sub-class Common attributes Sub-class name Belongs to Uncommon attributes Belongs to Common methods Uncommon methods Uncommon methods
Create Object Relationship Diagram EMPLOYEE DIRECTOR OFFICE STAFF MANAGER Provides a visual overview of the system and the relationships between the various objects within Below is a partial diagram Is a Supervises Supervises
Identify the Actors and Use Case An actor is an external entity An actor initiates a use case by requesting information  A use case represents the steps in a specific business function or process Issues Generate Paycheck Employee
Use Case Diagram Visual summary of several related use cases Initiates Create Timesheet Entry Notifies Department head Issues Notifies Generate Paycheck Initiates Calculate payroll Employee Payroll clerck
Identify cardinality Cardinality describes how instances of one class relate to instances of another class Example:  An employee can have no payroll deductions or many payroll deductions, thus it would be a zero or many relationship Example: An employee may have one spouse or no spouse, thus it would be a zero to one relationship
Identify Cardinality – UML Notation How cardinality is noted with UML 1 0..* 1 0..1 1 1 1 1..*
Class Diagram Represents a detailed view of a single use case Shows the classes the participate in the use case Documents the relationships among the classes Maintained for 1 0..* 1 Manages 0..* Notifies 1 0..* Submits Based on 1 1..* 1..* 1
Sequence Diagram Dynamic model of a use case Shows the interaction among classes during a specified time period Graphically documents the use case by showing the classes, messages and the timing of messages
Sequence Diagram EMPLOYEE STOCK TRANSFER PAYROLLACTION Sequence diagram for CHANGE CONTRIBUTIONS function  Change Contributions Change Contributions
State Transition Diagram Shows how an object changes from one state to another Depends on events that affect the object All possible states must be shown in the diagram Example for EMPLOYEE object Future Current Past Retires Prospective hire Quits Meets  Requirements Gets fired
Activity Diagram Resembles a horizontal flow chart Show the actions and events as the occur Show the order in which actions take place and identify outcomes Activity diagram for CHANCE CONTRIBUTIONS scenario Change stock purchase deduction Change employee deduction Employee changes contributions Start End

Mais conteúdo relacionado

Semelhante a Ch 5 Presentation

Please be advised that there are four (4) programs just like this on.docx
Please be advised that there are four (4) programs just like this on.docxPlease be advised that there are four (4) programs just like this on.docx
Please be advised that there are four (4) programs just like this on.docx
lorindajamieson
 
Database 3 Conceptual Modeling And Er
Database 3   Conceptual Modeling And ErDatabase 3   Conceptual Modeling And Er
Database 3 Conceptual Modeling And Er
Ashwani Kumar Ramani
 
Analysis and design of entreprise with uml
Analysis and design of entreprise with umlAnalysis and design of entreprise with uml
Analysis and design of entreprise with uml
zineb encgk
 
33.docxSTEP 1 Understand the UML Diagram Analyze and under.docx
33.docxSTEP 1 Understand the UML Diagram Analyze and under.docx33.docxSTEP 1 Understand the UML Diagram Analyze and under.docx
33.docxSTEP 1 Understand the UML Diagram Analyze and under.docx
gilbertkpeters11344
 
142500146 using-oracle-fast formula-for-payroll-calculations
142500146 using-oracle-fast formula-for-payroll-calculations142500146 using-oracle-fast formula-for-payroll-calculations
142500146 using-oracle-fast formula-for-payroll-calculations
uday reddy
 
10 01 containersbindings
10 01 containersbindings10 01 containersbindings
10 01 containersbindings
tflung
 

Semelhante a Ch 5 Presentation (20)

Software System Engineering - Chapter 13
Software System Engineering - Chapter 13Software System Engineering - Chapter 13
Software System Engineering - Chapter 13
 
Please be advised that there are four (4) programs just like this on.docx
Please be advised that there are four (4) programs just like this on.docxPlease be advised that there are four (4) programs just like this on.docx
Please be advised that there are four (4) programs just like this on.docx
 
Normalization
NormalizationNormalization
Normalization
 
Salary advanceworkflow
Salary advanceworkflowSalary advanceworkflow
Salary advanceworkflow
 
Programming Building Blocks for Admins
Programming Building Blocks for Admins Programming Building Blocks for Admins
Programming Building Blocks for Admins
 
Chapter-3 Data Modeling Using the Entity-Relationship Model
Chapter-3  Data Modeling Using the Entity-Relationship ModelChapter-3  Data Modeling Using the Entity-Relationship Model
Chapter-3 Data Modeling Using the Entity-Relationship Model
 
Database 3 Conceptual Modeling And Er
Database 3   Conceptual Modeling And ErDatabase 3   Conceptual Modeling And Er
Database 3 Conceptual Modeling And Er
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfolio
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfolio
 
Analysis and design of entreprise with uml
Analysis and design of entreprise with umlAnalysis and design of entreprise with uml
Analysis and design of entreprise with uml
 
33.docxSTEP 1 Understand the UML Diagram Analyze and under.docx
33.docxSTEP 1 Understand the UML Diagram Analyze and under.docx33.docxSTEP 1 Understand the UML Diagram Analyze and under.docx
33.docxSTEP 1 Understand the UML Diagram Analyze and under.docx
 
142500146 using-oracle-fast formula-for-payroll-calculations
142500146 using-oracle-fast formula-for-payroll-calculations142500146 using-oracle-fast formula-for-payroll-calculations
142500146 using-oracle-fast formula-for-payroll-calculations
 
BIS08 Application Development - II
BIS08 Application Development - IIBIS08 Application Development - II
BIS08 Application Development - II
 
10 01 containersbindings
10 01 containersbindings10 01 containersbindings
10 01 containersbindings
 
training and placement cell portal
training and placement cell portal training and placement cell portal
training and placement cell portal
 
Activity diagrams
Activity diagramsActivity diagrams
Activity diagrams
 
Chapter10 conceptual data modeling
Chapter10 conceptual data modelingChapter10 conceptual data modeling
Chapter10 conceptual data modeling
 
implementing oop_concept
 implementing oop_concept implementing oop_concept
implementing oop_concept
 
Modeling System Requirements
Modeling System RequirementsModeling System Requirements
Modeling System Requirements
 
SA Chapter 10
SA Chapter 10SA Chapter 10
SA Chapter 10
 

Mais de David Morales

Mais de David Morales (8)

Chapter 10 Presentation
Chapter 10 PresentationChapter 10 Presentation
Chapter 10 Presentation
 
Chapter 9 Presentation
Chapter 9 PresentationChapter 9 Presentation
Chapter 9 Presentation
 
Chapter 8
Chapter 8Chapter 8
Chapter 8
 
Chapter 6 Presentation
Chapter 6 PresentationChapter 6 Presentation
Chapter 6 Presentation
 
Ch 5 Presentation
Ch 5 PresentationCh 5 Presentation
Ch 5 Presentation
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
Itp 251 Self Presentation 3
Itp 251 Self Presentation 3Itp 251 Self Presentation 3
Itp 251 Self Presentation 3
 
Itp 251 Self Presentation
Itp 251 Self PresentationItp 251 Self Presentation
Itp 251 Self Presentation
 

Último

🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
Apsara Of India
 
Sample sample sample sample sample sample
Sample sample sample sample sample sampleSample sample sample sample sample sample
Sample sample sample sample sample sample
Casey Keith
 
IATA GEOGRAPHY AREAS in the world, HM111
IATA GEOGRAPHY AREAS in the world, HM111IATA GEOGRAPHY AREAS in the world, HM111
IATA GEOGRAPHY AREAS in the world, HM111
2022472524
 
Ahmedabad Escort Service Ahmedabad Call Girl 0000000000
Ahmedabad Escort Service Ahmedabad Call Girl 0000000000Ahmedabad Escort Service Ahmedabad Call Girl 0000000000
Ahmedabad Escort Service Ahmedabad Call Girl 0000000000
mountabuangels4u
 
💕📲09602870969💓Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati
💕📲09602870969💓Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati💕📲09602870969💓Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati
💕📲09602870969💓Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati
Apsara Of India
 

Último (20)

🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
 
Genuine 8250077686 Hot and Beautiful 💕 Amaravati Escorts call Girls
Genuine 8250077686 Hot and Beautiful 💕 Amaravati Escorts call GirlsGenuine 8250077686 Hot and Beautiful 💕 Amaravati Escorts call Girls
Genuine 8250077686 Hot and Beautiful 💕 Amaravati Escorts call Girls
 
Andheri Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Andheri Call Girls 🥰 8617370543 Service Offer VIP Hot ModelAndheri Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Andheri Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Ooty Call Girls 8250077686 Service Offer VIP Hot Model
Ooty Call Girls 8250077686 Service Offer VIP Hot ModelOoty Call Girls 8250077686 Service Offer VIP Hot Model
Ooty Call Girls 8250077686 Service Offer VIP Hot Model
 
Top travel agency in panchkula - Best travel agents in panchkula
Top  travel agency in panchkula - Best travel agents in panchkulaTop  travel agency in panchkula - Best travel agents in panchkula
Top travel agency in panchkula - Best travel agents in panchkula
 
WhatsApp Chat: 📞 8617697112 Suri Call Girls available for hotel room package
WhatsApp Chat: 📞 8617697112 Suri Call Girls available for hotel room packageWhatsApp Chat: 📞 8617697112 Suri Call Girls available for hotel room package
WhatsApp Chat: 📞 8617697112 Suri Call Girls available for hotel room package
 
WhatsApp Chat: 📞 8617697112 Hire Call Girls Cooch Behar For a Sensual Sex Exp...
WhatsApp Chat: 📞 8617697112 Hire Call Girls Cooch Behar For a Sensual Sex Exp...WhatsApp Chat: 📞 8617697112 Hire Call Girls Cooch Behar For a Sensual Sex Exp...
WhatsApp Chat: 📞 8617697112 Hire Call Girls Cooch Behar For a Sensual Sex Exp...
 
Hire 8617697112 Call Girls Udhampur For an Amazing Night
Hire 8617697112 Call Girls Udhampur For an Amazing NightHire 8617697112 Call Girls Udhampur For an Amazing Night
Hire 8617697112 Call Girls Udhampur For an Amazing Night
 
Darjeeling Call Girls 8250077686 Service Offer VIP Hot Model
Darjeeling Call Girls 8250077686 Service Offer VIP Hot ModelDarjeeling Call Girls 8250077686 Service Offer VIP Hot Model
Darjeeling Call Girls 8250077686 Service Offer VIP Hot Model
 
Genuine 8250077686 Hot and Beautiful 💕 Chennai Escorts call Girls
Genuine 8250077686 Hot and Beautiful 💕 Chennai Escorts call GirlsGenuine 8250077686 Hot and Beautiful 💕 Chennai Escorts call Girls
Genuine 8250077686 Hot and Beautiful 💕 Chennai Escorts call Girls
 
Sample sample sample sample sample sample
Sample sample sample sample sample sampleSample sample sample sample sample sample
Sample sample sample sample sample sample
 
IATA GEOGRAPHY AREAS in the world, HM111
IATA GEOGRAPHY AREAS in the world, HM111IATA GEOGRAPHY AREAS in the world, HM111
IATA GEOGRAPHY AREAS in the world, HM111
 
Ahmedabad Escort Service Ahmedabad Call Girl 0000000000
Ahmedabad Escort Service Ahmedabad Call Girl 0000000000Ahmedabad Escort Service Ahmedabad Call Girl 0000000000
Ahmedabad Escort Service Ahmedabad Call Girl 0000000000
 
High Profile 🔝 8250077686 📞 Call Girls Service in Siri Fort🍑
High Profile 🔝 8250077686 📞 Call Girls Service in Siri Fort🍑High Profile 🔝 8250077686 📞 Call Girls Service in Siri Fort🍑
High Profile 🔝 8250077686 📞 Call Girls Service in Siri Fort🍑
 
Top places to visit, top tourist destinations
Top places to visit, top tourist destinationsTop places to visit, top tourist destinations
Top places to visit, top tourist destinations
 
Hire 💕 8617697112 Surat Call Girls Service Call Girls Agency
Hire 💕 8617697112 Surat Call Girls Service Call Girls AgencyHire 💕 8617697112 Surat Call Girls Service Call Girls Agency
Hire 💕 8617697112 Surat Call Girls Service Call Girls Agency
 
Genuine 9332606886 Hot and Beautiful 💕 Pune Escorts call Girls
Genuine 9332606886 Hot and Beautiful 💕 Pune Escorts call GirlsGenuine 9332606886 Hot and Beautiful 💕 Pune Escorts call Girls
Genuine 9332606886 Hot and Beautiful 💕 Pune Escorts call Girls
 
💕📲09602870969💓Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati
💕📲09602870969💓Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati💕📲09602870969💓Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati
💕📲09602870969💓Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati
 
Andheri East Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Andheri East Call Girls 🥰 8617370543 Service Offer VIP Hot ModelAndheri East Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Andheri East Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Genuine 8250077686 Hot and Beautiful 💕 Visakhapatnam Escorts call Girls
Genuine 8250077686 Hot and Beautiful 💕 Visakhapatnam Escorts call GirlsGenuine 8250077686 Hot and Beautiful 💕 Visakhapatnam Escorts call Girls
Genuine 8250077686 Hot and Beautiful 💕 Visakhapatnam Escorts call Girls
 

Ch 5 Presentation

  • 1. Ch 5 PresentationOrganizing an Object Model David Morales
  • 2. How to Organize an Object Model Complete each task in the proper order Include proper amount of detail in each step Revise and edit Ensure data is correct and all necessary info is included Add additional information where needed Ensure all subsequent steps reflect update Example: if an additional class is needed, then all following steps need to show the new class
  • 3. Steps for Creating an Object Model Tasks in order Identify and define objects Define Relationships between objects Create a Relationship diagram Indentify the actors and use cases Create a Use Case Diagram
  • 4. Steps for Creating an Object Model Tasks in order (continued) Identify cardinality and UML Notation Create a Class Diagram Create a Sequence Diagram Create a Sate Transition Diagram Create an Activity Diagram
  • 5. Steps for Creating an Object Model All tasks are sequential Each step depends on data generated from previous steps Additional information can be added to a previous task regardless of what step of the process you are on Updates must be reflected in all the tasks that follow the task that was updated
  • 6. Identify and Define Objects Objects represent a real person, place, event, or transaction Each object contains attributes, methods, and messages Attributes describe the class Methods are tasks and functions the object can perform when it receives a message A message is a command
  • 7. Identify and Define Objects Steps: 1. Add new student instance 2. Record employee number 3. Record employee name 4. Record address 5. Record telephone number 6. Record date of birth 7. Record sex 8. Record title, rate of pay 9. Record deductions 10. Record state 11. Save new employee data Method: ADD EMPLOYEE EMPLOYEE Attributes Employee number Employee name Address Telephone number Date of birth Sex Title, rate of pay Deductions State Methods Add new Change name Change address Change Telephone Change deductions Change state Characteristics that describe the EMPLOYEE object Tasks that the EMPLOYEE object can perform Objects and methods are represented visually Object Method Message: ADD NEW Tells the EMPLOYEE class to perform all the steps needed to add an EMPLOYEE
  • 8. Identify and Define Objects EMPLOYEE Attributes Employee number Employee name Address Telephone number Date of birth Sex Title, rate of pay Deductions State Methods Add new Change name Change address Change Telephone Change deductions Change state Characteristics that describe the EMPLOYEE object Tasks that the EMPLOYEE object can perform Each object can have different instances There are many employees, each employee has his/her own record Instances of EMPLOYEE Object 0392 David Morales 9408 Worman Dr, Stafford 555-555-5555 29Mar1983 Male Help Desk Tech, 35k 0 VA 0023 Melissa Barnes 1020 Fleet St, Stafford 555-555-1254 03Aug1971 Female Accounting Manager, 75k 3 VA
  • 9. Define Relationships between Objects Relationships enable objects to communicate and interact as the perform functions and transactions They describe What objects need to know about each other How they respond to changes in other objects The effects of member ship in classes, superclasses and sub-classes
  • 10. Define Relationships between Objects EMPLOYEE Attributes Employee number Address Telephone number Title, rate of pay Deductions State PERSON MANAGER Attributes Name Date of birth Attributes Methods Add new Change name Change address Change Telephone Change deductions Change state Methods Breath Eat Sleep Objects belong to classes, classes belong to superclasses, and classes can have sub-classes Class Class name Superclass Superclass name Uncommon attributes Sub-class Common attributes Sub-class name Belongs to Uncommon attributes Belongs to Common methods Uncommon methods Uncommon methods
  • 11. Create Object Relationship Diagram EMPLOYEE DIRECTOR OFFICE STAFF MANAGER Provides a visual overview of the system and the relationships between the various objects within Below is a partial diagram Is a Supervises Supervises
  • 12. Identify the Actors and Use Case An actor is an external entity An actor initiates a use case by requesting information A use case represents the steps in a specific business function or process Issues Generate Paycheck Employee
  • 13. Use Case Diagram Visual summary of several related use cases Initiates Create Timesheet Entry Notifies Department head Issues Notifies Generate Paycheck Initiates Calculate payroll Employee Payroll clerck
  • 14. Identify cardinality Cardinality describes how instances of one class relate to instances of another class Example: An employee can have no payroll deductions or many payroll deductions, thus it would be a zero or many relationship Example: An employee may have one spouse or no spouse, thus it would be a zero to one relationship
  • 15. Identify Cardinality – UML Notation How cardinality is noted with UML 1 0..* 1 0..1 1 1 1 1..*
  • 16. Class Diagram Represents a detailed view of a single use case Shows the classes the participate in the use case Documents the relationships among the classes Maintained for 1 0..* 1 Manages 0..* Notifies 1 0..* Submits Based on 1 1..* 1..* 1
  • 17. Sequence Diagram Dynamic model of a use case Shows the interaction among classes during a specified time period Graphically documents the use case by showing the classes, messages and the timing of messages
  • 18. Sequence Diagram EMPLOYEE STOCK TRANSFER PAYROLLACTION Sequence diagram for CHANGE CONTRIBUTIONS function Change Contributions Change Contributions
  • 19. State Transition Diagram Shows how an object changes from one state to another Depends on events that affect the object All possible states must be shown in the diagram Example for EMPLOYEE object Future Current Past Retires Prospective hire Quits Meets Requirements Gets fired
  • 20. Activity Diagram Resembles a horizontal flow chart Show the actions and events as the occur Show the order in which actions take place and identify outcomes Activity diagram for CHANCE CONTRIBUTIONS scenario Change stock purchase deduction Change employee deduction Employee changes contributions Start End