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.
Implement the structure (JAVA) based on the following Domain Class Model diagram and the Sequence Diagrams given for a Gym
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)](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fcede8746-e52f-4eaf-bfc2-0cf286297e7e%2F4aac57a8-5055-49fc-8fe5-acbe70401617%2Fcpe7qsc_processed.png&w=3840&q=75)


Trending now
This is a popular solution!
Step by step
Solved in 4 steps









