Title | Tutorial 6 - Classes & Class Diagrams |
---|---|
Author | Derick Tran |
Course | Object Oriented Analysis |
Institution | Western Sydney University |
Pages | 7 |
File Size | 259.6 KB |
File Type | |
Total Downloads | 184 |
Total Views | 549 |
18329328Tutorial 6 - Classes & ClassDiagrams List about EIGHT entity classes PER PACKAGE from the above analysis. Thus, for a team with four students and four packages, the total number of entity classes should be no less than 32. Note that the analysis of the first use case usually reveals ...
Derick Tran 18329328
Tutorial 6 - Classes & Class Diagrams 2. List about EIGHT entity classes PER PACKAGE from the above analysis. Thus, for a team with four students and four packages, the total number of entity classes should be no less than 32. Note that the analysis of the first use case usually reveals more entity classes and the subsequent use case will reveal less. After analysing all the use cases (and skimming the problem statement), you should be able to define the required number of classes.
Agent Buyer Seller Client Appointment Property Calendar Address Phone
Class Name
Agent
Description
This class represents Agent’s details in the GWREMS
Relationship
This class relates to Appointment, Sellers, Agency, Buyer
Attributes
AgentID, Type, FirstName, LastName AgentID – unique identified for class named “Agent” Type – Amount of experience with certain properties FirstName – Agents first name LastName – Agents Last Name
Responsibility
Maintains Details of the agents working and the current properties they are working on
Business Rules
Agents can be specialised in buying, selling or auctions. Each agent has their own level or work Agent details are held within agency databases as well as GWRE’s database.
Page 1 of 7
Derick Tran 18329328 Complexity
Medium
Class Name
Buyer
Description
This class represents Buyer details in the GWREMS
Relationship
This class relates to Client, Contracts, Appointment, Agent
Attributes
BuyerID, FirstName, LastName, Phone, FinancialStatus BuyerID – Unique identifier for class named “Buyer” FirstName – Buyers first name LastName – Buyers last name Phone – Buyers Phone number FinancialStatus – Buyers current financial status
Responsibility
Maintains details of all buyers looking to purchase properties
Business Rules
For buyers to register to buy, they must be a registered client
Complexity
Medium
Class Name Description Relationship Attributes
Responsibility
Seller This class represents Seller details in the GWREMS This class relates to Contract, Buyer, Agent, Property SellerID, Firstname, LastName, Phone, ExpectedPrice SellerID – Unique identifier for class named “Seller” FirstName – Sellers first name LastName – Sellers last name Phone – Sellers phone number ExpectedPrice – The expected price they are looking to sell the property for Maintains details of all sellers, and linking their respective properties on sale
Business Rules
For sellers to register a property, they must be a registered client
Complexity
Medium
Page 2 of 7
Derick Tran 18329328
Class Name Description
Client This class represents Client details in the GWREMS
Relationship
This class related to Buyer, Seller, Contact details
Attributes
ClientID, FirstName, LastName, Phone, Email, D.O.B, Password ClientID – is used to uniquely identify clients FirstName – Clients first name LastName – Clients last name Phone – Clients contact number Email – Clients email D.O.B – Clients date of birth Password – Clients unique password to enter account
Responsibility
To keep updated information on the client so when needed, can be cross referenced with this data to verify client’s identity
Business Rules
For a client to be able to login, they need to type in their ClientID and Password correctly.
Complexity
Medium
Class Name
Appointment
Description
This class represents appointment details in the GWREMS
Relationship
This class is related to Buyer, Agent, Seller
Attributes
Date, Time, Duration, AgentID Date – Date of the appointment Time – Time of the appointment Duration – Duration of the appointment AgentID – Unique Identifier for agent class
Responsibility
Maintains and updates details of appointments Notifies agents when new appointment requests are made by buyers or sellers
Page 3 of 7
Derick Tran 18329328 Business Rules
For a client to create an appointment, they must be registered as a client.
Complexity
Medium
Class Name
Property
Description
This class represents property details in the GWREMS
Relationship
This class is related to Agent, Seller
Attributes
propID, Address, Price, PropDetails, Description propID – Unique identifier for class named “Property” Address – Address details of property Price – Expected price of property PropDetails – Real estate details like size, bed, bath Description – Made by property seller
Responsibility
Maintains and keeps property details up to date via agent or seller
Business Rules
Property must be created by a seller or agent Agent or seller must be registered as a client.
Complexity
Medium
Class Name
Calendar
Description
This class represents Calendar details in the GWREMS
Relationship
This class relates to Seller, Agent, Buyer
Attributes
Date, TimeStatus
Responsibility
Business Rules
Date – Date of the appointment TimeStatus – Availability on certain day Maintains all calendar details and appointments, advises agents of appointment requests A calendar must be approved by the agent. An appointment can only be made by a registered client
Page 4 of 7
Derick Tran 18329328 Complexity
Medium
Class Name
Address
Description
This class contains all the details of clients and staff or anyone who has a relation in the GWREMS
Relationship
This class relates to staff and clients
Attributes
StrNo, StrName, City, Postcode, State StrNo - Number StrName – Street Name City State Postcode
Responsibility
Maintains all addresses for clients and staff
Business Rules
All addresses must be valid and checked
Complexity
Simple
Class Name
Phone
Description
This class contains all the details of clients and staff or anyone who has a relation in the GWREMS
Relationship
This class relates to staff and clients
Attributes
STDCode, PhoneNumber, PhoneType STDCode – Area code Phone Number Phone Type – Type of device
Responsibility
Maintains all phone numbers that links to addresses for clients and staff
Business Rules
All phone numbers must be valid and checked
Complexity
Simple
Page 5 of 7
Derick Tran 18329328
6. Place the classes you have identified into diagrams (approximately TWO class diagrams per package)
“Client” Class Diagram
Page 6 of 7
Derick Tran 18329328
“Consultation Details” Class Diagram
Page 7 of 7...