Package io.github.ai4ci.abm.inhost
Class ImmutableBiPhasicLogistic
java.lang.Object
io.github.ai4ci.abm.inhost.ImmutableBiPhasicLogistic
- All Implemented Interfaces:
ExposureModel.BiPhasicLogistic
,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableBiPhasicLogistic
extends Object
implements ExposureModel.BiPhasicLogistic
Immutable implementation of
ExposureModel.BiPhasicLogistic
.
Use the builder to create immutable instances:
ImmutableBiPhasicLogistic.builder()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableBiPhasicLogistic
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableBiPhasicLogistic
.static ImmutableBiPhasicLogistic
copyOf
(ExposureModel.BiPhasicLogistic instance) Creates an immutable copy of aExposureModel.BiPhasicLogistic
value.boolean
This instance is equal to all instances ofImmutableBiPhasicLogistic
that have equal attribute values.double
double
double
double
double
getUnit()
int
hashCode()
Computes a hash code from attributes:growthRate
,growthTime
,decayRate
,decayTime
,unit
.Creates a builder forImmutableBiPhasicLogistic
.prefilled with attibute values ofthis
instance to easily create modified copies.toString()
Prints the immutable valueBiPhasicLogistic
with attribute values.withDecayRate
(double value) Copy the current immutable object by setting a value for thedecayRate
attribute.withDecayTime
(double value) Copy the current immutable object by setting a value for thedecayTime
attribute.withGrowthRate
(double value) Copy the current immutable object by setting a value for thegrowthRate
attribute.withGrowthTime
(double value) Copy the current immutable object by setting a value for thegrowthTime
attribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.ai4ci.abm.inhost.ExposureModel.BiPhasicLogistic
adjusted, unadjusted
-
Method Details
-
getGrowthRate
public double getGrowthRate()- Specified by:
getGrowthRate
in interfaceExposureModel.BiPhasicLogistic
- Returns:
- The value of the
growthRate
attribute
-
getGrowthTime
public double getGrowthTime()- Specified by:
getGrowthTime
in interfaceExposureModel.BiPhasicLogistic
- Returns:
- The value of the
growthTime
attribute
-
getDecayRate
public double getDecayRate()- Specified by:
getDecayRate
in interfaceExposureModel.BiPhasicLogistic
- Returns:
- The value of the
decayRate
attribute
-
getDecayTime
public double getDecayTime()- Specified by:
getDecayTime
in interfaceExposureModel.BiPhasicLogistic
- Returns:
- The value of the
decayTime
attribute
-
getUnit
public double getUnit()- Specified by:
getUnit
in interfaceExposureModel.BiPhasicLogistic
- Returns:
- The computed-at-construction value of the
unit
attribute
-
withGrowthRate
Copy the current immutable object by setting a value for thegrowthRate
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for growthRate- Returns:
- A modified copy of the
this
object
-
withGrowthTime
Copy the current immutable object by setting a value for thegrowthTime
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for growthTime- Returns:
- A modified copy of the
this
object
-
withDecayRate
Copy the current immutable object by setting a value for thedecayRate
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for decayRate- Returns:
- A modified copy of the
this
object
-
withDecayTime
Copy the current immutable object by setting a value for thedecayTime
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for decayTime- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableBiPhasicLogistic
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:growthRate
,growthTime
,decayRate
,decayTime
,unit
. -
toString
Prints the immutable valueBiPhasicLogistic
with attribute values. -
copyOf
Creates an immutable copy of aExposureModel.BiPhasicLogistic
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable BiPhasicLogistic instance
-
toBuilder
Creates a builder forImmutableBiPhasicLogistic
.prefilled with attibute values ofthis
instance to easily create modified copies.- Returns:
- A new ImmutableBiPhasicLogistic builder with attributes of
this
instance
-
builder
Creates a builder forImmutableBiPhasicLogistic
.ImmutableBiPhasicLogistic.builder() .setGrowthRate(double) // required
growthRate
.setGrowthTime(double) // requiredgrowthTime
.setDecayRate(double) // requireddecayRate
.setDecayTime(double) // requireddecayTime
.build();- Returns:
- A new ImmutableBiPhasicLogistic builder
-