Record Class BiomechanicsSimulator.KinematicAnalysis
java.lang.Object
java.lang.Record
org.episteme.social.sports.BiomechanicsSimulator.KinematicAnalysis
- All Implemented Interfaces:
Serializable
- Enclosing class:
BiomechanicsSimulator
public static record BiomechanicsSimulator.KinematicAnalysis(double peakVelocity, double peakAcceleration, double rangeOfMotion, Map<String,double[]> jointVelocities, Map<String,double[]> jointAccelerations)
extends Record
implements Serializable
Result of kinematic movement analysis.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionKinematicAnalysis(double peakVelocity, double peakAcceleration, double rangeOfMotion, Map<String, double[]> jointVelocities, Map<String, double[]> jointAccelerations) Creates an instance of aKinematicAnalysisrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thejointAccelerationsrecord component.Returns the value of thejointVelocitiesrecord component.doubleReturns the value of thepeakAccelerationrecord component.doubleReturns the value of thepeakVelocityrecord component.doubleReturns the value of therangeOfMotionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KinematicAnalysis
public KinematicAnalysis(double peakVelocity, double peakAcceleration, double rangeOfMotion, Map<String, double[]> jointVelocities, Map<String, double[]> jointAccelerations) Creates an instance of aKinematicAnalysisrecord class.- Parameters:
peakVelocity- the value for thepeakVelocityrecord componentpeakAcceleration- the value for thepeakAccelerationrecord componentrangeOfMotion- the value for therangeOfMotionrecord componentjointVelocities- the value for thejointVelocitiesrecord componentjointAccelerations- the value for thejointAccelerationsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
peakVelocity
public double peakVelocity()Returns the value of thepeakVelocityrecord component.- Returns:
- the value of the
peakVelocityrecord component
-
peakAcceleration
public double peakAcceleration()Returns the value of thepeakAccelerationrecord component.- Returns:
- the value of the
peakAccelerationrecord component
-
rangeOfMotion
public double rangeOfMotion()Returns the value of therangeOfMotionrecord component.- Returns:
- the value of the
rangeOfMotionrecord component
-
jointVelocities
-
jointAccelerations
-