Record Class ThermalSimulator.WallLayer
java.lang.Object
java.lang.Record
org.episteme.social.architecture.ThermalSimulator.WallLayer
- All Implemented Interfaces:
Serializable
- Enclosing class:
ThermalSimulator
public static record ThermalSimulator.WallLayer(ThermalSimulator.ThermalMaterial material, double thicknessMeters)
extends Record
implements Serializable
A single layer within a wall or roof assembly.
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWallLayer(ThermalSimulator.ThermalMaterial material, double thicknessMeters) Creates an instance of aWallLayerrecord 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.material()Returns the value of thematerialrecord component.doubleCalculates the thermal resistance (R-value) for this specific layer.doubleReturns the value of thethicknessMetersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WallLayer
Creates an instance of aWallLayerrecord class.- Parameters:
material- the value for thematerialrecord componentthicknessMeters- the value for thethicknessMetersrecord component
-
-
Method Details
-
thermalResistance
public double thermalResistance()Calculates the thermal resistance (R-value) for this specific layer. R = thickness / conductivity -
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. -
material
Returns the value of thematerialrecord component.- Returns:
- the value of the
materialrecord component
-
thicknessMeters
public double thicknessMeters()Returns the value of thethicknessMetersrecord component.- Returns:
- the value of the
thicknessMetersrecord component
-