Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Object-Oriented Analysis & Design question Please show all solution & answer as soon as possible E QUESTION 5 (State Chart Diagrams) Create a State Chart
Object-Oriented Analysis & Design question
Please show all solution & answer as soon as possible
E QUESTION 5 (State Chart Diagrams) Create a State Chart (State Machine) Diagram for the class Trip in the Lynch Coaches System, described below. Ensure that all diagram elements are given appropriate labels, Lynch Coaches is a coach company, based near Dublin. They specialise in organising day trips to various destinations in the Irish countryside. Customers of Lynch Coaches include institutions, such as schools, nursing homes, etc. They hire coaches with drivers for trips, which are organised/arranged especially for them. Customers will typically request that a day Trip be arranged for them on a specific date (the number of coaches allocated to a trip depends on the number of seats required). In response to this request Lynch Coaches will check if the required coaches can be made available on that date. If the coaches are available, Lynch Coaches will allocate one or more coaches with drivers and arrange the Trip for the Customer Customer should pay a deposit within 7 days of the arranged booking for the Trip, only then the Trip is confirmed. Customers are allowed to cancel a Trip before a deposit is paid (once Trip is arranged for them). They may cancel a trip even after the deposit is paid (once Trip is confirmed), however in this case, Lynch Coaches will retain the deposit. Either way, the trip cancellation step is recorded and must be deleted from the system 6 months after the cancellation took place. Customer should provide Full Payment to Lynch Coaches in the week before it takes place. Then the Trip is ready to start, and once completed the Trip record should be deleted from the system 12 months after it was completed Hint: . Consider trips starting from an unarranged state, where the company needs to check available coaches & drivers for the requested Trip. Once the Trip is arranged, it will go through several states until it is finally deleted by the system. Ensure that all diagram elements are given appropriate labels Identify mutation events relevant for the object-What affects the object? Group relevant events chronologically-How does a normal life look? . Model states and transitions-Which states are there? Add actions to the state chart diagram-What do objects do? Verify the state chart diagram-Is everything correct? (25 marks) E QUESTION 5 (State Chart Diagrams) Create a State Chart (State Machine) Diagram for the class Trip in the Lynch Coaches System, described below. Ensure that all diagram elements are given appropriate labels, Lynch Coaches is a coach company, based near Dublin. They specialise in organising day trips to various destinations in the Irish countryside. Customers of Lynch Coaches include institutions, such as schools, nursing homes, etc. They hire coaches with drivers for trips, which are organised/arranged especially for them. Customers will typically request that a day Trip be arranged for them on a specific date (the number of coaches allocated to a trip depends on the number of seats required). In response to this request Lynch Coaches will check if the required coaches can be made available on that date. If the coaches are available, Lynch Coaches will allocate one or more coaches with drivers and arrange the Trip for the Customer Customer should pay a deposit within 7 days of the arranged booking for the Trip, only then the Trip is confirmed. Customers are allowed to cancel a Trip before a deposit is paid (once Trip is arranged for them). They may cancel a trip even after the deposit is paid (once Trip is confirmed), however in this case, Lynch Coaches will retain the deposit. Either way, the trip cancellation step is recorded and must be deleted from the system 6 months after the cancellation took place. Customer should provide Full Payment to Lynch Coaches in the week before it takes place. Then the Trip is ready to start, and once completed the Trip record should be deleted from the system 12 months after it was completed Hint: . Consider trips starting from an unarranged state, where the company needs to check available coaches & drivers for the requested Trip. Once the Trip is arranged, it will go through several states until it is finally deleted by the system. Ensure that all diagram elements are given appropriate labels Identify mutation events relevant for the object-What affects the object? Group relevant events chronologically-How does a normal life look? . Model states and transitions-Which states are there? Add actions to the state chart diagram-What do objects do? Verify the state chart diagram-Is everything correct? (25 marks)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started