Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. (a) Software is required to keep a record of the passengers who have boarded an aircraft. An aircraft has a maximum capacity. Provide an

image text in transcribed

4. (a) Software is required to keep a record of the passengers who have boarded an aircraft. An aircraft has a maximum capacity. Provide an UML class diagram which specifies the state of the software system and which also shows two operations which modify the state. Describe briefly a class invariant which applies here but which a class diagram cannot show. Also using natural language or set notation, specify one of the operations more precisely by providing an appropriate contract for it. (7 marks) 7 ) 6) Give a UML-based Specification Environment (USE) specification for the class diagram from part (a) along with an OCL contract for one operation. Do not consider the implementation of the operation at this stage, just describe what is done rather than how. (10 marks) (c) Using SOIL provide an abstract implementation of the operation described in part (b). create some test objects which will allow you to test your specification in USE. Explain how you could then test your model using the USE command line interface. (8 marks)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

what file contains shared code used by several programs at once?

Answered: 1 week ago