Record Class ThermalSimulator.ThermalMaterial
java.lang.Object
java.lang.Record
org.episteme.social.architecture.ThermalSimulator.ThermalMaterial
- All Implemented Interfaces:
Serializable
- Enclosing class:
ThermalSimulator
public static record ThermalSimulator.ThermalMaterial(String name, double thermalConductivity, double density, double specificHeat)
extends Record
implements Serializable
Intrinsic thermal properties of a construction material.
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThermalMaterial(String name, double thermalConductivity, double density, double specificHeat) Creates an instance of aThermalMaterialrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubledensity()Returns the value of thedensityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.doubleReturns the value of thespecificHeatrecord component.doubleReturns the value of thethermalConductivityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ThermalMaterial
public ThermalMaterial(String name, double thermalConductivity, double density, double specificHeat) Creates an instance of aThermalMaterialrecord class.- Parameters:
name- the value for thenamerecord componentthermalConductivity- the value for thethermalConductivityrecord componentdensity- the value for thedensityrecord componentspecificHeat- the value for thespecificHeatrecord 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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
thermalConductivity
public double thermalConductivity()Returns the value of thethermalConductivityrecord component.- Returns:
- the value of the
thermalConductivityrecord component
-
density
public double density()Returns the value of thedensityrecord component.- Returns:
- the value of the
densityrecord component
-
specificHeat
public double specificHeat()Returns the value of thespecificHeatrecord component.- Returns:
- the value of the
specificHeatrecord component
-