0% found this document useful (0 votes)
16 views

SD Tutorial Classes (Students)

The document discusses a football information system including classes like Team, Player, Manager, and Match. It asks to identify actors and use cases, list relevant classes and their attributes, and draw a class diagram showing associations between classes like Team having Players and Managers selecting Teams for Matches.

Uploaded by

22070049
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

SD Tutorial Classes (Students)

The document discusses a football information system including classes like Team, Player, Manager, and Match. It asks to identify actors and use cases, list relevant classes and their attributes, and draw a class diagram showing associations between classes like Team having Players and Managers selecting Teams for Matches.

Uploaded by

22070049
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

COMP1845: Database System Development

Tutorial 6: Objects, classes and UML class diagrams

1. Categorise the following


Categorise the following into either Objects, Classes, States or Behaviours.

Team Club Player Manager


selectForTeam accelerate Lewis Hamilton score
injured moving Car goal
Arsenal League Premiership relegate
Match Result Fixture Old Trafford
draw shoot reschedule booked

2. A Football information system


A football club has a manager must select a team for a match based on player’s past
performance (how many goals they have scored) and their health (are they on form
and injured or need a rest) and their skills (striker, defender, goalkeeper etc.). A
match is played between two clubs in the same division of the football league.
Managers are very keen to choose the right team because their pay is dependant on
whether the team wins or loses and they may get sacked if their team drops down the
league tables or is relagated from one division to a lower division. Games are
organised by the Football Association who schedule the fixtures and maintain the
league tables. A club’s position in the table is dependant how many points they
have. They get 3 points if they win a game and 1 point if they draw. Fans like to see
what fixtures are on and view the league tables.
Your task
1. Identify the potential actors and use cases for this simple football information
system. This should include one to support a manager selecting a team.
2. Produce a list of the classes involved in this scenario (hint: classes are things and
things are nouns).
3. Depict each class in UML identify any attributes that might exist.
4. Draw a class diagram with associations.

Database System Development Page 1

Page 1
COMP1845: Database System Development
Tutorial 6: Objects, classes and UML class diagrams

5. List the behaviours that might exist in the system? (hint: talk about the system
and pay attention to any verbs that you use)
6. Assign the behaviours to classes (hint: think about who would own / have
responsibility for the behaviour).

Database System Development Page 2

Page 2
Tutorial helper sheet
Definitions of Objects v Classes

Definition of a state in UML


One of potentially many different states of an object during its lifetime.

Sample UML CLASS notation


Classes depicted as three compartment rectangle. Associations depicted as a joining
line. Multiplicity depicted as either [Min..Max] or exact number [number].

Insert name of class Name


Insert attributes, i.e.: Attributes
Attribute1: datatype [Min..max] [Min..max]
Attribute2: associated class
Attribute3 Methods
Attribute4
Etc..
Insert methods:
Method1()
Behaviour2()
Etc.

A B Aggregation – class A ‘is made of / has’ class B

A B Composition – class A ‘contains’ class B

A B Specialisation – class A ‘is a kind of / special type of’ B

Database System Development Page 3

Page 3

You might also like