Class AthletePhysiology
java.lang.Object
org.episteme.social.sports.AthletePhysiology
Simulates athlete physiology, modeling dynamic states such as fatigue, hydration, and recovery.
Provides methods to simulate exertion and recovery cycles based on intensity and environmental conditions.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a snapshot of an athlete's physiological condition. -
Method Summary
Modifier and TypeMethodDescriptionstatic RealestimateVO2Max(double restingHR, double maxHR) Estimates VO2max (maximum oxygen uptake) using the Uth-Sørensen-Overgaard-Pedersen formula.static RealCalculates a performance multiplier based on physiological state.simulateExertion(AthletePhysiology.PhysiologicalState state, double intensityPercent, double durationMinutes, double ambientTempCelsius) Simulates the physiological impact of a period of physical exertion.simulateRecovery(AthletePhysiology.PhysiologicalState state, double restMinutes, boolean hydrating, boolean eating) Simulates physiological recovery during a rest period.
-
Method Details
-
simulateExertion
public static AthletePhysiology.PhysiologicalState simulateExertion(AthletePhysiology.PhysiologicalState state, double intensityPercent, double durationMinutes, double ambientTempCelsius) Simulates the physiological impact of a period of physical exertion.- Parameters:
state- Current state of the athleteintensityPercent- Intensity of the activity (0-100%)durationMinutes- Duration of the activity in minutesambientTempCelsius- Environmental temperature in Celsius- Returns:
- A new PhysiologicalState reflecting the post-exertion condition
-
simulateRecovery
public static AthletePhysiology.PhysiologicalState simulateRecovery(AthletePhysiology.PhysiologicalState state, double restMinutes, boolean hydrating, boolean eating) Simulates physiological recovery during a rest period.- Parameters:
state- Current state (presumably fatigued)restMinutes- Duration of resthydrating- True if the athlete is consuming fluidseating- True if the athlete is consuming carbohydrates- Returns:
- A new PhysiologicalState reflecting recovery
-
estimateVO2Max
Estimates VO2max (maximum oxygen uptake) using the Uth-Sørensen-Overgaard-Pedersen formula. Formula: VO2max = 15.3 * (HRmax / HRrest)- Parameters:
restingHR- Resting Heart Rate (bpm)maxHR- Maximum Heart Rate (bpm)- Returns:
- Estimated VO2max in mL/(kg·min)
-
performanceMultiplier
Calculates a performance multiplier based on physiological state. Used to scale athletic performance in simulations (e.g., speed or accuracy reduction).- Parameters:
state- The athlete's current state- Returns:
- Multiplier (0.5 to 1.0), where 1.0 is peak performance
-