An Intensity is a specific intensity of a TrainingType.
More...
#include <Intensity.h>
An Intensity is a specific intensity of a TrainingType.
Each TrainingType contains a number of different intensities. Each intensity contains a number of sections, e.g. warm up, foundation and cool down.
- See also
- Section TrainingType
◆ Intensity()
Intensity::Intensity |
( |
int |
intensity | ) |
|
Constructor.
- Parameters
-
intensity | Intensity number. Higher numbers are more intensive. |
◆ ~Intensity()
virtual Intensity::~Intensity |
( |
| ) |
|
|
virtual |
◆ GetDistance()
void Intensity::GetDistance |
( |
double & |
minDist, |
|
|
double & |
maxDist, |
|
|
double & |
avgDist, |
|
|
PTUnit const & |
unit |
|
) |
| |
Get min, max and average distances for this intensity.
For all training types except long runs, this requires that pace is registered.
- Parameters
-
minDist | Min distance |
maxDist | Max distance |
avgDist | Average distance |
unit | Unit of output distance |
◆ GetTime()
void Intensity::GetTime |
( |
wxTimeSpan & |
minTime, |
|
|
wxTimeSpan & |
maxTime, |
|
|
wxTimeSpan & |
avgSpan |
|
) |
| |
Get min, max and average total times for this intensity.
For long runs, this requires that pace is registered.
- Parameters
-
minTime | Min time |
maxTime | Max time |
avgSpan | Average time |
◆ ToString()
virtual wxString Intensity::ToString |
( |
PTUnit const & |
outUnit | ) |
|
|
virtual |
Returns string with human readable intenisty information.
- Parameters
-
outUnit | Unit of output string |
- Returns
- string with human readable intenisty information
◆ intensity
◆ section
The documentation for this struct was generated from the following file: