Record Class SolarPathAnalyzer.InsolationResult
java.lang.Object
java.lang.Record
org.episteme.social.architecture.SolarPathAnalyzer.InsolationResult
- All Implemented Interfaces:
Serializable
- Enclosing class:
SolarPathAnalyzer
public static record SolarPathAnalyzer.InsolationResult(double dailyTotal, double[] hourlyValues, double peakHour, double peakValue)
extends Record
implements Serializable
Results of a 24-hour solar insulation simulation.
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInsolationResult(double dailyTotal, double[] hourlyValues, double peakHour, double peakValue) Creates an instance of aInsolationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thedailyTotalrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.double[]Returns the value of thehourlyValuesrecord component.doublepeakHour()Returns the value of thepeakHourrecord component.doubleReturns the value of thepeakValuerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InsolationResult
public InsolationResult(double dailyTotal, double[] hourlyValues, double peakHour, double peakValue) Creates an instance of aInsolationResultrecord class.- Parameters:
dailyTotal- the value for thedailyTotalrecord componenthourlyValues- the value for thehourlyValuesrecord componentpeakHour- the value for thepeakHourrecord componentpeakValue- the value for thepeakValuerecord 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. -
dailyTotal
public double dailyTotal()Returns the value of thedailyTotalrecord component.- Returns:
- the value of the
dailyTotalrecord component
-
hourlyValues
public double[] hourlyValues()Returns the value of thehourlyValuesrecord component.- Returns:
- the value of the
hourlyValuesrecord component
-
peakHour
public double peakHour()Returns the value of thepeakHourrecord component.- Returns:
- the value of the
peakHourrecord component
-
peakValue
public double peakValue()Returns the value of thepeakValuerecord component.- Returns:
- the value of the
peakValuerecord component
-