AUser Dashboard |Click Workout Tracker Button| Bactivity Workout
AUser Dashboard |Click Workout Tracker Button| Bactivity Workout
B(activity_workout_dashboard.xml)
B --> C{WDashbrdActivity.java}
C -->|Import from objects| D[Workout Interface]
D -->|Implemented by| E[LoggedWorkout]
6
D -->|Implemented by| F[CustomRoutine]
C -->|Import from Business| G[WorkoutTracker]
G --> |Includes| H[LoggedWorkoutService]
G --> |Includes| I[CustomRoutineService]
5
H --> |Connects to| J[Persistence]
I --> |Connects to| J[WorkoutPersistence]
Explanation:
4
. User Dashboard (A):
○ The user starts on the User Dashboard screen.
○ They click the "Workout Tracker" button.
related objects.
○ It is implemented by both LoggedWorkout and CustomRoutine
such as a specific training session that has been completed, with data
like exercise, duration etc.
○ It is one of the implementations of the Workout interface.
. CustomRoutine (F):
○ The CustomRoutine class represents a custom workout routine that
tracker feature.
○ It interacts with services that handle both logged workouts and
and ensures that the workout data is saved and retrieved correctly.
Workflow Explanation:
● Clicking the Workout Tracker Button on the user dashboard brings the
user to the Workout Tracker Screen.
● The WorkoutDashboardActivity (C) is responsible for displaying the
workout tracker and handling user actions like logging workouts or
creating custom routines.
● The Workout interface (D) is implemented by LoggedWorkout (E) and
CustomRoutine (F), representing different types of workouts in the app.
● The WorkoutTrackerService (G) contains the logic for both logged
workouts and custom routines.
○ It includes the LoggedWorkoutService (H), which manages logged