Record Class SolarPathAnalyzer.SolarPosition
java.lang.Object
java.lang.Record
org.episteme.social.architecture.SolarPathAnalyzer.SolarPosition
- All Implemented Interfaces:
Serializable
- Enclosing class:
SolarPathAnalyzer
public static record SolarPathAnalyzer.SolarPosition(double altitude, double azimuth, double julianDay, double hourAngle)
extends Record
implements Serializable
Represents the position of the sun in the sky at a specific moment.
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSolarPosition(double altitude, double azimuth, double julianDay, double hourAngle) Creates an instance of aSolarPositionrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublealtitude()Returns the value of thealtituderecord component.doubleazimuth()Returns the value of theazimuthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thehourAnglerecord component.doubleReturns the value of thejulianDayrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SolarPosition
public SolarPosition(double altitude, double azimuth, double julianDay, double hourAngle) Creates an instance of aSolarPositionrecord class.- Parameters:
altitude- the value for thealtituderecord componentazimuth- the value for theazimuthrecord componentjulianDay- the value for thejulianDayrecord componenthourAngle- the value for thehourAnglerecord 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 with thecomparemethod from their corresponding wrapper classes. -
altitude
public double altitude()Returns the value of thealtituderecord component.- Returns:
- the value of the
altituderecord component
-
azimuth
public double azimuth()Returns the value of theazimuthrecord component.- Returns:
- the value of the
azimuthrecord component
-
julianDay
public double julianDay()Returns the value of thejulianDayrecord component.- Returns:
- the value of the
julianDayrecord component
-
hourAngle
public double hourAngle()Returns the value of thehourAnglerecord component.- Returns:
- the value of the
hourAnglerecord component
-