Record Class ArchitecturalModel.VectorField
java.lang.Object
java.lang.Record
org.episteme.social.architecture.ArchitecturalModel.VectorField
- All Implemented Interfaces:
Serializable
- Enclosing class:
ArchitecturalModel
public static record ArchitecturalModel.VectorField(Real x, Real y, Real dx, Real dy, Real magnitude)
extends Record
implements Serializable
Represents a point in a vector field (e.g., structural force, wind velocity).
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondx()Returns the value of thedxrecord component.dy()Returns the value of thedyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themagnituderecord component.final StringtoString()Returns a string representation of this record class.x()Returns the value of thexrecord component.y()Returns the value of theyrecord component.
-
Constructor Details
-
VectorField
Creates an instance of aVectorFieldrecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentdx- the value for thedxrecord componentdy- the value for thedyrecord componentmagnitude- the value for themagnituderecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
x
Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
dx
Returns the value of thedxrecord component.- Returns:
- the value of the
dxrecord component
-
dy
Returns the value of thedyrecord component.- Returns:
- the value of the
dyrecord component
-
magnitude
Returns the value of themagnituderecord component.- Returns:
- the value of the
magnituderecord component
-