public class WorkoutStep extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WorkoutStep.ExtentType
Extent of the workout step.
|
static class |
WorkoutStep.HrZone
Heart rate zone
|
static class |
WorkoutStep.IntensityType
Type or goal of the workout step intensity
|
static class |
WorkoutStep.StepType
Type of the workout step
|
Constructor and Description |
---|
WorkoutStep(int no,
String name,
String description,
WorkoutStep.StepType type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Get the description of the step
|
int |
getExtentDistance()
Get the extent in terms of distance to cover
|
WorkoutStep.HrZone |
getExtentReachHrZone()
Get the extent in terms of HR Zone to reach
|
int |
getExtentTime()
Get the extent in terms of duration
|
WorkoutStep.IntensityType |
getIntensity()
Returns the intensity goal of the workout step
|
int |
getIntensityCadence()
Get the step intensity cadence
|
WorkoutStep.HrZone |
getIntensityHrZone()
Get the step intensity HR Zone
|
int |
getIntensityPace()
Get the step intensity pace
|
int |
getIntensitySpeed()
Get the step intensity speed
|
String |
getName()
Get the title of the step
|
WorkoutStep.ExtentType |
getStepExtent()
Returns the extent of the workout step.
|
WorkoutStep.StepType |
getType()
Get the type of the step
|
void |
setExtentDistance(int distance)
Set the workout step extent to distance
|
void |
setExtentDuration(int duration)
Set the workout step extent to duration
|
void |
setExtentManual()
Set the workout step extent to manual
|
void |
setExtentReachHrZone(WorkoutStep.HrZone zone)
Set the workout step extent to reach HR Zone
|
void |
setIntensityCadence(int cadence)
Sets the intensity of the step to cadence
|
void |
setIntensityHrZone(WorkoutStep.HrZone zone)
Sets the intensity of the step to HR Zone at which the step must be
performed
|
void |
setIntensityPace(int pace)
Sets the intensity of the step to pace
|
void |
setIntensitySpeed(int speed)
Sets the intensity of the step to speed
|
String |
toString() |
public WorkoutStep(int no, String name, String description, WorkoutStep.StepType type)
no
- Step numbername
- Name of the workout stepdescription
- Description of the workout steptype
- Type of the workoutpublic String getName()
public String getDescription()
public WorkoutStep.StepType getType()
public void setExtentDistance(int distance)
distance
- Distance in mmpublic void setExtentDuration(int duration)
duration
- Duration in secondspublic void setExtentReachHrZone(WorkoutStep.HrZone zone)
zone
- HR Zone to reachpublic void setExtentManual()
public WorkoutStep.ExtentType getStepExtent()
public WorkoutStep.HrZone getExtentReachHrZone()
public int getExtentDistance()
public int getExtentTime()
public void setIntensityCadence(int cadence)
cadence
- Cadence in RPMpublic void setIntensityPace(int pace)
pace
- Pace in milliseconds per kmpublic void setIntensitySpeed(int speed)
speed
- Pace in millimeters per per secondpublic void setIntensityHrZone(WorkoutStep.HrZone zone)
zone
- HR Zonepublic int getIntensityCadence()
public int getIntensityPace()
public int getIntensitySpeed()
public WorkoutStep.HrZone getIntensityHrZone()
public WorkoutStep.IntensityType getIntensity()
Copyright © 2023. All rights reserved.