Class AthletePhysiology.PhysiologicalState
java.lang.Object
org.episteme.social.sports.AthletePhysiology.PhysiologicalState
- All Implemented Interfaces:
Serializable
- Enclosing class:
AthletePhysiology
Represents a snapshot of an athlete's physiological condition.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a state representing a healthy, resting athlete. -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubledoubledoubledoubleCalculates an aggregate physical condition score.doublebooleanChecks if the athlete is dehydrated.booleanChecks if the athlete is critically exhausted.
-
Constructor Details
-
PhysiologicalState
public PhysiologicalState()Initializes a state representing a healthy, resting athlete.
-
-
Method Details
-
getStamina
public double getStamina() -
getMuscularFatigue
public double getMuscularFatigue() -
getHydration
public double getHydration() -
getGlycogenStores
public double getGlycogenStores() -
getHeartRate
public double getHeartRate() -
getOverallCondition
public double getOverallCondition()Calculates an aggregate physical condition score.- Returns:
- average score (0-100)
-
isExhausted
public boolean isExhausted()Checks if the athlete is critically exhausted.- Returns:
- true if stamina or glycogen is critically low
-
isDehydrated
public boolean isDehydrated()Checks if the athlete is dehydrated.- Returns:
- true if hydration is below 20%
-