0% found this document useful (0 votes)
0 views

AUser Dashboard |Click Workout Tracker Button| Bactivity Workout

The document outlines the workflow of a workout tracker feature within a user dashboard application. It describes how users navigate from the dashboard to the workout tracker screen, the role of the WorkoutDashboardActivity in managing user interactions, and the implementation of the Workout interface by LoggedWorkout and CustomRoutine classes. Additionally, it details the business logic handled by the WorkoutTracker, including services for logged workouts and custom routines, which interact with a persistence layer for data management.

Uploaded by

bihal61989
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

AUser Dashboard |Click Workout Tracker Button| Bactivity Workout

The document outlines the workflow of a workout tracker feature within a user dashboard application. It describes how users navigate from the dashboard to the workout tracker screen, the role of the WorkoutDashboardActivity in managing user interactions, and the implementation of the Workout interface by LoggedWorkout and CustomRoutine classes. Additionally, it details the business logic handled by the WorkoutTracker, including services for logged workouts and custom routines, which interact with a persistence layer for data management.

Uploaded by

bihal61989
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

A[User Dashboard] -->|Click Workout Tracker Button|

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.

. Workout Tracker Screen (B):


○ This action brings the user to the activity_workout_dashboard.xml
3
page, which is the layout where the workout tracker interface is
displayed.
. Workout Dashboard Activity (C):
○ The WDashbrdActivity.java is the activity that controls the logic for
2
this screen. It handles user interactions like logging workouts and
creating custom workout routines.
○ It imports the Workout interface from the objects package.
1
. Workout Interface (D):
○ The Workout interface defines the common structure for workout-

related objects.
○ It is implemented by both LoggedWorkout and CustomRoutine

objects, allowing them to share common functionality and structure.


. LoggedWorkout (E):
○ The LoggedWorkout class represents individual logged workouts,

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

users can create. It holds a list of exercises and their corresponding


schedule.
7
○ This is another implementation of the Workout interface.
. WorkoutTracker (G):
○ The WorkoutTracker handles the business logic for the workout

tracker feature.
○ It interacts with services that handle both logged workouts and

custom workout routines.


. LoggedWorkoutService (H):
○ The LoggedWorkoutService handles operations related to logged

workouts, such as logging a new workout or retrieving previously


logged workouts.
. CustomRoutineService (I):
○ The CustomRoutineService handles operations related to custom

workout routines, such as creating a new custom routine.


. Persistence (J):
○ Both LoggedWorkoutService and CustomRoutineService connect to

the persistence layer.


○ This file manages the data storage (e.g., databases or file systems)

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

workout data (e.g., saving workout logs).


○ It also includes the CustomRoutineService (I), which handles

custom routines created by users.


● Both LoggedWorkoutService and CustomRoutineService interact with the
Persistence Layer (J), ensuring that workout data is persisted in the
app's storage system.

You might also like