Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Note

This is not a data model. The relationship between the domain model and the data model will be close but the domain model does not directly define the properties of the data model. It is the responsibility of the developer to translate it.

Language Terms

TermDefinition
Workout Definition (WD)A static entity that is a template for a workout (e.g. a running, gym training, etc).
Workout Activity (WA)An entity representing a performed workout - an actual instance of a workout that the user performed on a specific date.
Exercise Definition (ED)A static entity that represents a single template exercise (e.g. push-ups).
Exercise Activity (EA)An entity representing an exercise that was performed as part of a Workout Activity.

Workout Definition (WD)

An entity that defines a 'workout template' that consists of one or more exercises that are completed in order by the user. A new Workout Activity (WA) can only be created based on a WD.

Requirements

  1. In future there will be multiple types of workout (and therefore WD). For version 1.0, we will only support Countdown Sequence but the domain (and data) model must support the addition of other types in future.
  2. A Countdown Sequence consists of a series of Exercise Definitions with specified time durations that are presented in order, each one starting after the previous one (with a small break countdown in between). Each ED can present a fullscreen video but this is not compulsory. This is the only WD type we have in v1.0.
  3. Future WD types will include running, cycling and others. These types will consist of single or multiple Exercise Definitions, will require different UI (maps, GPS, etc), will not necessarily use a countdown timer.

Properties

NameNotes
TypeThe type of workout (Countdown Sequence, Running, Cycling, Mixed, etc). This may not be a property in the data model. Maybe subclassing would be more appropriate.
TitleThe title of the workout.
DescriptionThe user-facing description of the workout.
ExercisesThe list of Exercise Definitions that are included in the workout, plus their duration.
Break DurationThe duration of the break countdown between exercises.

Workout Activity (WA)

An entity that represents a single workout performed by the user at a specific point in time. It captures all data about that activity and can be used to calculate Post-exercise Calorie Burn (PCB) in the 24 hour period after completion.

Properties

NameNotes
Workout Definition ReferenceA reference to the WD that this activity was created from.
CreatedThe date/time the WA was created.
CompletedThe date/time the WA was completed.
ExercisesThe list of Exercise Activities that were performed in the workout, including their duration.
Active Calories BurnedThe total calories burned during the workout.
Completion Heart RateThe user's HR on completion of the activity.
Perceived ExertionThe user's perceived exertion level on completion of the activity.


  • No labels