Implement the structure (JAVA) based on the following Domain Class Model diagram and the Sequence Diagrams given for a Gym system designed for customers and trainers to register via a web portal. Keep it simple. This is aimed to help you understand your multiplicities in your Domain Class Model and what the Sequence Diagram means. It is only a partial implementation of the system on a very very high level of abstraction. Usually you would not implement it at this stage since it does not include all the data. This is just of you to see what the diagram means in code. All classes from your Domain Class Model (DMC) should be included, exactly as shown in the DMC (Of course, you will have to add types to your attributes). Only include the structure at this point (no methods are needed, only exactly what is in your diagram). For now, have all attributes public.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

Implement the structure (JAVA) based on the following Domain Class Model diagram and the Sequence Diagrams given for a Gym system designed for customers and trainers to register via a web portal.

Keep it simple. This is aimed to help you understand your multiplicities in your Domain Class Model and what the Sequence Diagram means. It is only a partial implementation of the system on a very very high level of abstraction.
Usually you would not implement it at this stage since it does not include all the data. This is just of you to see what the diagram means in code.

All classes from your Domain Class Model (DMC) should be included, exactly as shown in the DMC (Of course, you will have to add types to your attributes). Only include the structure at this point (no methods are needed, only exactly what is in your diagram). For now, have all attributes public.

sd Sequence Diagram
alt
[else]
alt
Lack of hours
Already signed
[elsel
alt
Class is fulll
[else]
alt
옷
: Trainer
I
ok
옷
: Customer
ok
1: Enter email (again) (
2: Enter Class ID()
3: Click on "Register" (
Website
Display "Lack of hours" message
1.3 Display "Already Signed" message
4: Display "Class is full" message()
.5: Display "success!" message()
Notify new registered customer
1.1: Validate registration()
Database
.1: Return "lack of hours" mesage()
4: Return "Class is full" message()
5: Successfully registered)
Transcribed Image Text:sd Sequence Diagram alt [else] alt Lack of hours Already signed [elsel alt Class is fulll [else] alt 옷 : Trainer I ok 옷 : Customer ok 1: Enter email (again) ( 2: Enter Class ID() 3: Click on "Register" ( Website Display "Lack of hours" message 1.3 Display "Already Signed" message 4: Display "Class is full" message() .5: Display "success!" message() Notify new registered customer 1.1: Validate registration() Database .1: Return "lack of hours" mesage() 4: Return "Class is full" message() 5: Successfully registered)
pkg
Trainers
- TrainerEmail: String
- Password: String
- First Name: String
- LastName: String
+ ClassCredits(): int
0..*
Manages
1
Classes
ClassID: String
- RoomID: String
- Topic/Category: String
- Day Hour DataTime
Manages
0..1
0..*
Owners
- OwnerEmail:
String
- Password:
String
- First Name:
String
- LastName:
ring
1..*
0..*
Registers_in
Customers
- Name : String
- Password: String
- CustomerEmail: String
+ ClassCredits() int
Transcribed Image Text:pkg Trainers - TrainerEmail: String - Password: String - First Name: String - LastName: String + ClassCredits(): int 0..* Manages 1 Classes ClassID: String - RoomID: String - Topic/Category: String - Day Hour DataTime Manages 0..1 0..* Owners - OwnerEmail: String - Password: String - First Name: String - LastName: ring 1..* 0..* Registers_in Customers - Name : String - Password: String - CustomerEmail: String + ClassCredits() int
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Enhanced ER Model
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education