Record Class DiurnalWeatherCalculator.DiurnalValues
java.lang.Object
java.lang.Record
net.simplace.sim.components.util.helper.diurnal.DiurnalWeatherCalculator.DiurnalValues
- Enclosing class:
- DiurnalWeatherCalculator
-
Constructor Summary
ConstructorsConstructorDescriptionDiurnalValues(Double[] dtime, Double[] dtemp, Double[] dradiationintensity, Double[] dradiation, int doy, double daylength, double radiation) Creates an instance of aDiurnalValuesrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thedaylengthrecord component.intdoy()Returns the value of thedoyrecord component.Double[]Returns the value of thedradiationrecord component.Double[]Returns the value of thedradiationintensityrecord component.Double[]dtemp()Returns the value of thedtemprecord component.Double[]dtime()Returns the value of thedtimerecord 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 theradiationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DiurnalValues
public DiurnalValues(Double[] dtime, Double[] dtemp, Double[] dradiationintensity, Double[] dradiation, int doy, double daylength, double radiation) Creates an instance of aDiurnalValuesrecord class.- Parameters:
dtime- the value for thedtimerecord componentdtemp- the value for thedtemprecord componentdradiationintensity- the value for thedradiationintensityrecord componentdradiation- the value for thedradiationrecord componentdoy- the value for thedoyrecord componentdaylength- the value for thedaylengthrecord componentradiation- the value for theradiationrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
dtime
Returns the value of thedtimerecord component.- Returns:
- the value of the
dtimerecord component
-
dtemp
Returns the value of thedtemprecord component.- Returns:
- the value of the
dtemprecord component
-
dradiationintensity
Returns the value of thedradiationintensityrecord component.- Returns:
- the value of the
dradiationintensityrecord component
-
dradiation
Returns the value of thedradiationrecord component.- Returns:
- the value of the
dradiationrecord component
-
doy
public int doy()Returns the value of thedoyrecord component.- Returns:
- the value of the
doyrecord component
-
daylength
public double daylength()Returns the value of thedaylengthrecord component.- Returns:
- the value of the
daylengthrecord component
-
radiation
public double radiation()Returns the value of theradiationrecord component.- Returns:
- the value of the
radiationrecord component
-