Record Class AcousticRayTracer.Reflection
java.lang.Object
java.lang.Record
org.episteme.social.architecture.AcousticRayTracer.Reflection
- All Implemented Interfaces:
Serializable
- Enclosing class:
AcousticRayTracer
public static record AcousticRayTracer.Reflection(double[] position, double absorptionCoeff)
extends Record
implements Serializable
Detail of a sound reflection off a surface.
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReflection(double[] position, double absorptionCoeff) Creates an instance of aReflectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theabsorptionCoeffrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.double[]position()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Reflection
public Reflection(double[] position, double absorptionCoeff) Creates an instance of aReflectionrecord class.- Parameters:
position- the value for thepositionrecord componentabsorptionCoeff- the value for theabsorptionCoeffrecord 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. -
position
public double[] position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
absorptionCoeff
public double absorptionCoeff()Returns the value of theabsorptionCoeffrecord component.- Returns:
- the value of the
absorptionCoeffrecord component
-