A set is a collection of rounds. After all rounds in a set are completed, there can be a rest period (optional) before moving to the next set. If all sets are completed, the workout ends.
Each set has:
- A defined number of rounds.
- A collection of intervals that define the structure of each round.
A round is a collection of intervals. Each round is a repeat of the intervals in the order they were defined. After completing all intervals in a round, the next round starts. After all rounds (as defined in the set) are completed, the set ends and either moves to the next set or initiates a rest period (if defined).
An interval is the smallest unit in this hierarchy. It has:
- A name (e.g., "Work", "Rest", "High Intensity", "Low Intensity").
- A duration (e.g., 30 seconds, 1 minute).
- A color (optional) for visual indication on the canvas.
Let's take a simple configuration to help visualize the hierarchy:
- 2 Sets
- Set 1:
- 3 Rounds
- Intervals:
- "Work" for 20 seconds
- "Rest" for 10 seconds
- Set 2:
- 2 Rounds
- Intervals:
- "High Intensity" for 30 seconds
- "Low Intensity" for 15 seconds
- "Rest" for 15 seconds
- Set 1:
The flow would be:
- Start Set 1
- Round 1:
- "Work" for 20 seconds
- "Rest" for 10 seconds
- Round 2:
- "Work" for 20 seconds
- "Rest" for 10 seconds
- Round 3:
- "Work" for 20 seconds
- "Rest" for 10 seconds
- End Set 1
- (Optional rest period between sets)
- Start Set 2
- Round 1:
- "High Intensity" for 30 seconds
- "Low Intensity" for 15 seconds
- "Rest" for 15 seconds
- Round 2:
- "High Intensity" for 30 seconds
- "Low Intensity" for 15 seconds
- "Rest" for 15 seconds
- End Set 2
- Workout ends
This hierarchy allows for highly customizable workouts where users can define multiple sets, each with a different number of rounds and interval structures.