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
ConstructorDescriptionAstroParameters
(double Daylength, double PhotoperiodicDaylength, double SolarConstant, double a, double b, double DSINB, double DSINBE, double SinBetaArea) Creates an instance of aAstroParameters
record class. -
Method Summary
Modifier and TypeMethodDescriptiondouble
a()
Returns the value of thea
record component.double
b()
Returns the value of theb
record component.double
Returns the value of theDaylength
record component.double
DSINB()
Returns the value of theDSINB
record component.double
DSINBE()
Returns the value of theDSINBE
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.double
Returns the value of thePhotoperiodicDaylength
record component.double
Returns the value of theSinBetaArea
record component.double
Returns the value of theSolarConstant
record component.final String
toString()
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 aAstroParameters
record class.- Parameters:
Daylength
- the value for theDaylength
record componentPhotoperiodicDaylength
- the value for thePhotoperiodicDaylength
record componentSolarConstant
- the value for theSolarConstant
record componenta
- the value for thea
record componentb
- the value for theb
record componentDSINB
- the value for theDSINB
record componentDSINBE
- the value for theDSINBE
record componentSinBetaArea
- the value for theSinBetaArea
record 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 theDaylength
record component.- Returns:
- the value of the
Daylength
record component
-
PhotoperiodicDaylength
public double PhotoperiodicDaylength()Returns the value of thePhotoperiodicDaylength
record component.- Returns:
- the value of the
PhotoperiodicDaylength
record component
-
SolarConstant
public double SolarConstant()Returns the value of theSolarConstant
record component.- Returns:
- the value of the
SolarConstant
record component
-
a
public double a()Returns the value of thea
record component.- Returns:
- the value of the
a
record component
-
b
public double b()Returns the value of theb
record component.- Returns:
- the value of the
b
record component
-
DSINB
public double DSINB()Returns the value of theDSINB
record component.- Returns:
- the value of the
DSINB
record component
-
DSINBE
public double DSINBE()Returns the value of theDSINBE
record component.- Returns:
- the value of the
DSINBE
record component
-
SinBetaArea
public double SinBetaArea()Returns the value of theSinBetaArea
record component.- Returns:
- the value of the
SinBetaArea
record component
-