ISOM221+Lecture+15+-+Class+Diagram+Solutions

ISOM221+Lecture+15+-+Class+Diagram+Solutions - Exercise...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Exercise ISOM221 Information Systems Analysis and Design Lecture 15: Class Diagram (Solutions of in-class exercises) 1 2 • Consider the following use cases and do the following: – Identify classes, attributes, and methods – Draw a class diagram Use Case Diagram Campus Housing System UC-100 Search Apartments UC-200 Add Apartments UC-300 Delete Apartments Service Staff What are the Classes Identified from Each Use Case? • UC-100 Search for Apartments – – – – Student Apartment Owner Shortlisting_Record Student • UC-200 Add Apartments – Owner – Apartment Owner • UC-300 Delete Apartments – Owner – Apartment – Shortlisting_Record 3 4 What are the Attributes for Each Class? • Student – – – – – – – – StudentID LastName FirstName Username Password Address Phone Email What are the Methods for Each Class? • Student – Insert() or Register() – Login() • Apartment – – – – – – ApartmentID Address Size Bedroom Rent PostingDate • Shortlisting_Record – Insert() or Add() – Delete() – Update_status() • Owner – Insert() – Read_Contact() • Shortlisting_Record – ShortlistingID – ShortlistingDate – Status • Owner – – – – – – OwnerID LastName FirstName Address Phone Email • Apartment – – – – 5 Insert() Delete() Match_Search_Criteria() Show_Matched_Results() 6 Class Diagram STUDENT - STU_StudentID - STU_LastName - STU_FirstName - STU_Username - STU_Password - STU_Address - STU_Phone - STU_Email + Register() Register() + Login() has 1 0..10 SHORTLISTING_RECORD - SR_ShortlistingID - SR_ShortlistingDate - SR_Status + Add () + Delete() + Update_Status() 0..* is included in OWNER - OWN_OwnerID - OWN_LastName - OWN_FirstName - OWN_Username - OWN_Password - OWN_Address - OWN_Phone - OWN_Email + Insert() + Read_Contact() Access to contact information in the OWNER class must be allowed in order to generate the search results by “Show_Matched_Results()” in the APARTMENT class has 1 0..* 1 APARTMENT - APT_ApartmentID - APT_Address - APT_Size - APT_Bedroom - APT_Rent - APT_PostingDate + Insert() + Delete() + Match_Search_Criteria() + Show_Matched_Results() 7 ...
View Full Document

This note was uploaded on 12/22/2010 for the course ISOM ISOM221 taught by Professor Sheunhhee during the Spring '09 term at HKUST.

Ask a homework question - tutors are online