Class AthletePhysiology

java.lang.Object
org.episteme.social.sports.AthletePhysiology

public final class AthletePhysiology extends Object
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)
  • 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 athlete
      intensityPercent - Intensity of the activity (0-100%)
      durationMinutes - Duration of the activity in minutes
      ambientTempCelsius - 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 rest
      hydrating - True if the athlete is consuming fluids
      eating - True if the athlete is consuming carbohydrates
      Returns:
      A new PhysiologicalState reflecting recovery
    • estimateVO2Max

      public static Real estimateVO2Max(double restingHR, double maxHR)
      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

      public static Real performanceMultiplier(AthletePhysiology.PhysiologicalState state)
      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