Record Class BiomechanicsSimulator.MotionFrame
java.lang.Object
java.lang.Record
org.episteme.social.sports.BiomechanicsSimulator.MotionFrame
- All Implemented Interfaces:
Serializable
- Enclosing class:
BiomechanicsSimulator
public static record BiomechanicsSimulator.MotionFrame(double time, Map<String, BiomechanicsSimulator.JointAngle> jointAngles, Map<String,double[]> segmentPositions)
extends Record
implements Serializable
Snapshot of body orientation at a specific timestamp.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMotionFrame(double time, Map<String, BiomechanicsSimulator.JointAngle> jointAngles, Map<String, double[]> segmentPositions) Creates an instance of aMotionFramerecord 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 thejointAnglesrecord component.Returns the value of thesegmentPositionsrecord component.doubletime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MotionFrame
public MotionFrame(double time, Map<String, BiomechanicsSimulator.JointAngle> jointAngles, Map<String, double[]> segmentPositions) Creates an instance of aMotionFramerecord class.- Parameters:
time- the value for thetimerecord componentjointAngles- the value for thejointAnglesrecord componentsegmentPositions- the value for thesegmentPositionsrecord 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. -
time
public double time()Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
jointAngles
Returns the value of thejointAnglesrecord component.- Returns:
- the value of the
jointAnglesrecord component
-
segmentPositions
-