Record Class LivestockFunctions.PopulationRatesExtra
java.lang.Object
java.lang.Record
net.simplace.sim.components.experimental.livestock.LivestockFunctions.PopulationRatesExtra
- Enclosing class:
- LivestockFunctions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDouble[]Balance()Returns the value of theBalancerecord component.Double[]dBirth()Returns the value of thedBirthrecord component.Double[]dDeath()Returns the value of thedDeathrecord component.Double[]Returns the value of thedDeathNewBornrecord component.Double[]dIntake()Returns the value of thedIntakerecord component.Double[]dOfftake()Returns the value of thedOfftakerecord component.Double[]Returns the value of thedOfftakeNewBornrecord component.Double[]dRate()Returns the value of thedRaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PopulationRatesExtra
public PopulationRatesExtra(Double[] dRate, Double[] dBirth, Double[] dDeath, Double[] dIntake, Double[] dOfftake, Double[] dDeathNewBorn, Double[] dOfftakeNewBorn, Double[] Balance) Creates an instance of aPopulationRatesExtrarecord class.- Parameters:
dRate- the value for thedRaterecord componentdBirth- the value for thedBirthrecord componentdDeath- the value for thedDeathrecord componentdIntake- the value for thedIntakerecord componentdOfftake- the value for thedOfftakerecord componentdDeathNewBorn- the value for thedDeathNewBornrecord componentdOfftakeNewBorn- the value for thedOfftakeNewBornrecord componentBalance- the value for theBalancerecord 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 withObjects::equals(Object,Object). -
dRate
Returns the value of thedRaterecord component.- Returns:
- the value of the
dRaterecord component
-
dBirth
Returns the value of thedBirthrecord component.- Returns:
- the value of the
dBirthrecord component
-
dDeath
Returns the value of thedDeathrecord component.- Returns:
- the value of the
dDeathrecord component
-
dIntake
Returns the value of thedIntakerecord component.- Returns:
- the value of the
dIntakerecord component
-
dOfftake
Returns the value of thedOfftakerecord component.- Returns:
- the value of the
dOfftakerecord component
-
dDeathNewBorn
Returns the value of thedDeathNewBornrecord component.- Returns:
- the value of the
dDeathNewBornrecord component
-
dOfftakeNewBorn
Returns the value of thedOfftakeNewBornrecord component.- Returns:
- the value of the
dOfftakeNewBornrecord component
-
Balance
Returns the value of theBalancerecord component.- Returns:
- the value of the
Balancerecord component
-