Record Class AizawaSnapshot
java.lang.Object
java.lang.Record
edu.cnu.mdi.mdi3D.view3D.aizawaDemo.AizawaSnapshot
- Record Components:
coords- the packed trajectory coordinates; never modified by the receivertime- the current simulation timex- the current x coordinatey- the current y coordinatez- the current z coordinate
Immutable snapshot of the Aizawa attractor state for rendering and diagnostics.
The simulation thread produces snapshots, and the EDT consumes them. The packed coordinate array contains the currently visible trajectory in the form:
[x1, y1, z1, x2, y2, z2, ..., xn, yn, zn]where each consecutive triple is one point on the trajectory.
-
Constructor Summary
ConstructorsConstructorDescriptionAizawaSnapshot(float[] coords, float time, float x, float y, float z) Creates an instance of aAizawaSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloat[]coords()Returns the value of thecoordsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floattime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.floatx()Returns the value of thexrecord component.floaty()Returns the value of theyrecord component.floatz()Returns the value of thezrecord component.
-
Constructor Details
-
AizawaSnapshot
public AizawaSnapshot(float[] coords, float time, float x, float y, float z) Creates an instance of aAizawaSnapshotrecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
coords
public float[] coords()Returns the value of thecoordsrecord component.- Returns:
- the value of the
coordsrecord component
-
time
public float time()Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
x
public float x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public float y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public float z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-