PlannedExerciseStep
public final class PlannedExerciseStep
A single step within an PlannedExerciseBlock e.g. 8x 60kg barbell squats.
Summary
Constants |
|
|---|---|
static final int |
Active exercise. |
static final int |
Cooldown exercise, typically at the end of a workout. |
static final int |
Lower intensity, active exercise. |
static final int |
A rest. |
static final int |
An unknown phase of exercise. |
static final int |
A warmup. |
Public constructors |
|---|
PlannedExerciseStep( |
Public methods |
|
|---|---|
boolean |
|
final @NonNull ExerciseCompletionGoal |
The goal that must be completed to finish this step. |
final String |
The description of this step. |
final int |
The phase e.g. 'warmup' that this step belongs to. |
final int |
The type of exercise that this step involves. |
final @NonNull List<@NonNull ExercisePerformanceTarget> |
Performance related targets that should be met during this step. |
int |
hashCode() |
@NonNull String |
toString() |
Constants
EXERCISE_PHASE_COOLDOWN
public static final int EXERCISE_PHASE_COOLDOWN = 4
Cooldown exercise, typically at the end of a workout.
EXERCISE_PHASE_RECOVERY
public static final int EXERCISE_PHASE_RECOVERY = 5
Lower intensity, active exercise.
EXERCISE_PHASE_UNKNOWN
public static final int EXERCISE_PHASE_UNKNOWN = 0
An unknown phase of exercise.
Public constructors
PlannedExerciseStep
public PlannedExerciseStep(
int exerciseType,
int exercisePhase,
@NonNull ExerciseCompletionGoal completionGoal,
@NonNull List<@NonNull ExercisePerformanceTarget> performanceTargets,
String description
)
| Parameters | |
|---|---|
int exerciseType |
The type of exercise that this step involves. |
int exercisePhase |
The phase e.g. 'warmup' that this step belongs to. |
@NonNull ExerciseCompletionGoal completionGoal |
The goal that must be completed to finish this step. |
@NonNull List<@NonNull ExercisePerformanceTarget> performanceTargets |
Performance related targets that should be met during this step. |
String description |
The description of this step. |
Public methods
getCompletionGoal
public final @NonNull ExerciseCompletionGoal getCompletionGoal()
The goal that must be completed to finish this step.
getExercisePhase
public final int getExercisePhase()
The phase e.g. 'warmup' that this step belongs to.
getExerciseType
public final int getExerciseType()
The type of exercise that this step involves.
getPerformanceTargets
public final @NonNull List<@NonNull ExercisePerformanceTarget> getPerformanceTargets()
Performance related targets that should be met during this step.