Skip to content
Dominik-Bujna edited this page Oct 29, 2018 · 3 revisions

Sports Activity Tracker

Introduction

The sports activity tracker provides a way to track sport activities for individual users and see the amount of calories burned in the process. Our tracker also stores the time when the activity was performed, its duration and the distance traveled.

Class diagram

class diagram The above diagram shows the relations between classes. The User class stores information about the user, such as their weight, age, name, email and password hash. The ActivityRecord class holds information about a particular activity performed by a user. For each activity record there is BurnedCalories record, which contains the users weight at the time and the amount of calories burned by the activity. The need to store the weight comes from the fact that the weight of the user may change, though it does not affect the amount of calories they had burned in the past. The information used to calculate the number of burnt calories for a particular type of activity is contained in SportActivity class.

Use case diagram

use case diagram

The user once registered and logged into the system manages and displays their activities and their personal data. Nevertheless, there is also a need for an administrator to maintain the list of the activity types and their calorie values, as well as deleting user accounts which no longer should be used.

Clone this wiki locally