Modelling object-oriented software – an introduction
Modelling object-oriented software – an introduction

Start this free course now. Just create an account and sign in. Enrol and complete the course for a free statement of participation or digital badge if available.

Free course

Modelling object-oriented software – an introduction

3.3.3 Identifying attributes for the classes in the Hospital System

The next task is to identify the attributes of the conceptual classes listed above. We have already identified some of these as a by-product of the process of identifying the classes.

Activity 4

By referring to the System domain and Use cases sections of the requirements document, suggest attributes for each of the classes in the Hospital System.

Discussion

For each of our chosen classes, here are our lists of attributes, together with references to the relevant parts of the requirements document.

  • : , , , (System domain, use cases A, D, F)

  • : , , , (System domain, use cases A, F)

  • : (System domain, use case G)

  • : (System domain, use case G)

  • : , (use case G)

  • : (use case G)

Having identified a complete set of classes and attributes, they should be described formally, accompanied by short comments, as follows. Such class descriptions form an important part of the conceptual model.

Class A ward in the hospital
Attributes
The unique name of the ward
Whether the ward is for male or female (M or F) patients
The maximum number of patients that can be on the ward at any one time
The number of free beds on the ward
ClassA patient in the hospital
Attributes
The name of the patient
The sex (M or F) of the patient
The date of birth of the patient
The age of the patient in years
ClassA team of doctors
Attributes
The unique code of the team
ClassA doctor at the hospital
Attributes
The name of the doctor
ClassA junior doctor at the hospital
Attributes
The name of the junior doctor
The grade (1, 2 or 3) of the junior doctor
Class A consultant doctor at the hospital
Attributes
The name of the consultant doctor
M256_1

Take your learning further

Making the decision to study can be a big step, which is why you'll want a trusted University. The Open University has 50 years’ experience delivering flexible learning and 170,000 students are studying with us right now. Take a look at all Open University courses.

If you are new to University-level study, we offer two introductory routes to our qualifications. You could either choose to start with an Access module, or a module which allows you to count your previous learning towards an Open University qualification. Read our guide on Where to take your learning next for more information.

Not ready for formal University study? Then browse over 1000 free courses on OpenLearn and sign up to our newsletter to hear about new free courses as they are released.

Every year, thousands of students decide to study with The Open University. With over 120 qualifications, we’ve got the right course for you.

Request an Open University prospectus371