Record Class DiurnalWeatherCalculator.DiurnalValues
java.lang.Object
java.lang.Record
net.simplace.sim.components.util.helper.diurnal.DiurnalWeatherCalculator.DiurnalValues
- Enclosing class:
- DiurnalWeatherCalculator
-
Constructor Summary
ConstructorDescriptionDiurnalValues
(Double[] dtime, Double[] dtemp, Double[] dradiationintensity, Double[] dradiation, int doy, double daylength, double radiation) Creates an instance of aDiurnalValues
record class. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the value of thedaylength
record component.int
doy()
Returns the value of thedoy
record component.Double[]
Returns the value of thedradiation
record component.Double[]
Returns the value of thedradiationintensity
record component.Double[]
dtemp()
Returns the value of thedtemp
record component.Double[]
dtime()
Returns the value of thedtime
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 theradiation
record component.final String
toString()
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 aDiurnalValues
record class.- Parameters:
dtime
- the value for thedtime
record componentdtemp
- the value for thedtemp
record componentdradiationintensity
- the value for thedradiationintensity
record componentdradiation
- the value for thedradiation
record componentdoy
- the value for thedoy
record componentdaylength
- the value for thedaylength
record componentradiation
- the value for theradiation
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
dtime
Returns the value of thedtime
record component.- Returns:
- the value of the
dtime
record component
-
dtemp
Returns the value of thedtemp
record component.- Returns:
- the value of the
dtemp
record component
-
dradiationintensity
Returns the value of thedradiationintensity
record component.- Returns:
- the value of the
dradiationintensity
record component
-
dradiation
Returns the value of thedradiation
record component.- Returns:
- the value of the
dradiation
record component
-
doy
public int doy()Returns the value of thedoy
record component.- Returns:
- the value of the
doy
record component
-
daylength
public double daylength()Returns the value of thedaylength
record component.- Returns:
- the value of the
daylength
record component
-
radiation
public double radiation()Returns the value of theradiation
record component.- Returns:
- the value of the
radiation
record component
-