Record Class AstronomicParametersCalculator.AstroParameters
java.lang.Object
java.lang.Record
net.simplace.sim.components.util.helper.AstronomicParametersCalculator.AstroParameters
- Enclosing class:
- AstronomicParametersCalculator
public static record AstronomicParametersCalculator.AstroParameters(double Daylength, double PhotoperiodicDaylength, double SolarConstant, double a, double b, double DSINB, double DSINBE, double SinBetaArea)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAstroParameters(double Daylength, double PhotoperiodicDaylength, double SolarConstant, double a, double b, double DSINB, double DSINBE, double SinBetaArea) Creates an instance of aAstroParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublea()Returns the value of thearecord component.doubleb()Returns the value of thebrecord component.doubleReturns the value of theDaylengthrecord component.doubleDSINB()Returns the value of theDSINBrecord component.doubleDSINBE()Returns the value of theDSINBErecord 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 thePhotoperiodicDaylengthrecord component.doubleReturns the value of theSinBetaArearecord component.doubleReturns the value of theSolarConstantrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AstroParameters
public AstroParameters(double Daylength, double PhotoperiodicDaylength, double SolarConstant, double a, double b, double DSINB, double DSINBE, double SinBetaArea) Creates an instance of aAstroParametersrecord class.- Parameters:
Daylength- the value for theDaylengthrecord componentPhotoperiodicDaylength- the value for thePhotoperiodicDaylengthrecord componentSolarConstant- the value for theSolarConstantrecord componenta- the value for thearecord componentb- the value for thebrecord componentDSINB- the value for theDSINBrecord componentDSINBE- the value for theDSINBErecord componentSinBetaArea- the value for theSinBetaArearecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
Daylength
public double Daylength()Returns the value of theDaylengthrecord component.- Returns:
- the value of the
Daylengthrecord component
-
PhotoperiodicDaylength
public double PhotoperiodicDaylength()Returns the value of thePhotoperiodicDaylengthrecord component.- Returns:
- the value of the
PhotoperiodicDaylengthrecord component
-
SolarConstant
public double SolarConstant()Returns the value of theSolarConstantrecord component.- Returns:
- the value of the
SolarConstantrecord component
-
a
public double a()Returns the value of thearecord component.- Returns:
- the value of the
arecord component
-
b
public double b()Returns the value of thebrecord component.- Returns:
- the value of the
brecord component
-
DSINB
public double DSINB()Returns the value of theDSINBrecord component.- Returns:
- the value of the
DSINBrecord component
-
DSINBE
public double DSINBE()Returns the value of theDSINBErecord component.- Returns:
- the value of the
DSINBErecord component
-
SinBetaArea
public double SinBetaArea()Returns the value of theSinBetaArearecord component.- Returns:
- the value of the
SinBetaArearecord component
-