From a7b59d67727b9f5e980dd162412b5a3fdd3101be Mon Sep 17 00:00:00 2001 From: NiharGharat Date: Wed, 10 May 2023 20:58:05 -0500 Subject: [PATCH] ServiceLater WIP --- src/Entities.py | 20 ++++++++++++++++++-- src/ServiceLayerRecommender.py | 4 +++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/Entities.py b/src/Entities.py index a15379e..8ee246f 100644 --- a/src/Entities.py +++ b/src/Entities.py @@ -81,5 +81,21 @@ def __init__(self, id, name, exercise_importance, exercise_cost, exercise_recurr class Workout_Derived: - def __init__(self) -> None: - pass \ No newline at end of file + def __init__(self, suggested_wo_completion_percentage, wo_imp, wo_cost, wo_muscles_targetted, wo_rpe, wo_overall_cals) -> None: + self.suggested_wo_completion_percentage: float = suggested_wo_completion_percentage + self.wo_imp: int = wo_imp + self.wo_cost: int = wo_cost + self.wo_muscles_targetted: str = wo_muscles_targetted + self.wo_rpe: int = wo_rpe + self.wo_overall_cals: float = wo_overall_cals + +class User: + + def __init__(self, id, name, gender, fitness_level, focused_muscle_group, age, goal) -> None: + self.id: id = id + self.name = name + self.gender = gender + self.fitness_level = fitness_level + self.focused_muscle_group = focused_muscle_group + self.age = age + self.goal = goal \ No newline at end of file diff --git a/src/ServiceLayerRecommender.py b/src/ServiceLayerRecommender.py index d2e16a9..bf2a418 100644 --- a/src/ServiceLayerRecommender.py +++ b/src/ServiceLayerRecommender.py @@ -14,7 +14,9 @@ def recompute_exercises_weights(self, todays_workout: Entities.Workout): 2. Read the workouts table 3. Read the exercise_derived table 4. Read the workout_derived table - 5. + 5. Read the user table + 6. Compute the + ''' def recommend_next_workout(self) -> None: