Package io.github.ai4ci.output
Class ImmutableInfectivityProfileCSV.Builder
java.lang.Object
io.github.ai4ci.output.ImmutableInfectivityProfileCSV.Builder
- Enclosing class:
- ImmutableInfectivityProfileCSV
Builds instances of type
ImmutableInfectivityProfileCSV
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newImmutableInfectivityProfileCSV
.from
(CommonCSV.Model instance) Fill a builder with attribute values from the providedio.github.ai4ci.output.CommonCSV.Model
instance.from
(InfectivityProfileCSV instance) Fill a builder with attribute values from the providedio.github.ai4ci.output.InfectivityProfileCSV
instance.setExperimentName
(String experimentName) Initializes the value for theexperimentName
attribute.setModelName
(String modelName) Initializes the value for themodelName
attribute.setProbability
(double probability) Initializes the value for theprobability
attribute.setTau
(int tau) Initializes the value for thetau
attribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableInfectivityProfileCSV.Builder from(InfectivityProfileCSV instance) Fill a builder with attribute values from the providedio.github.ai4ci.output.InfectivityProfileCSV
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableInfectivityProfileCSV.Builder from(CommonCSV.Model instance) Fill a builder with attribute values from the providedio.github.ai4ci.output.CommonCSV.Model
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setModelName
@CanIgnoreReturnValue public final ImmutableInfectivityProfileCSV.Builder setModelName(String modelName) Initializes the value for themodelName
attribute.- Parameters:
modelName
- The value for modelName- Returns:
this
builder for use in a chained invocation
-
setExperimentName
@CanIgnoreReturnValue public final ImmutableInfectivityProfileCSV.Builder setExperimentName(String experimentName) Initializes the value for theexperimentName
attribute.- Parameters:
experimentName
- The value for experimentName- Returns:
this
builder for use in a chained invocation
-
setTau
Initializes the value for thetau
attribute.- Parameters:
tau
- The value for tau- Returns:
this
builder for use in a chained invocation
-
setProbability
@CanIgnoreReturnValue public final ImmutableInfectivityProfileCSV.Builder setProbability(double probability) Initializes the value for theprobability
attribute.- Parameters:
probability
- The value for probability- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutableInfectivityProfileCSV
.- Returns:
- An immutable instance of InfectivityProfileCSV
- Throws:
IllegalStateException
- if any required attributes are missing
-