Package io.github.ai4ci.output
Class ImmutablePersonDemographicsCSV.Builder
java.lang.Object
io.github.ai4ci.output.ImmutablePersonDemographicsCSV.Builder
- Enclosing class:
- ImmutablePersonDemographicsCSV
Builds instances of type
ImmutablePersonDemographicsCSV
.
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 newImmutablePersonDemographicsCSV
.from
(CommonCSV.Execution instance) Fill a builder with attribute values from the providedio.github.ai4ci.output.CommonCSV.Execution
instance.from
(CommonCSV.Model instance) Fill a builder with attribute values from the providedio.github.ai4ci.output.CommonCSV.Model
instance.from
(PersonDemographicsCSV instance) Fill a builder with attribute values from the providedio.github.ai4ci.output.PersonDemographicsCSV
instance.setAge
(double age) Initializes the value for theage
attribute.setAppUseProbability
(Double appUseProbability) Initializes the value for theappUseProbability
attribute.setComplianceBaseline
(Double complianceBaseline) Initializes the value for thecomplianceBaseline
attribute.setExperimentName
(String experimentName) Initializes the value for theexperimentName
attribute.setExperimentReplica
(int experimentReplica) Initializes the value for theexperimentReplica
attribute.setHilbertX
(long hilbertX) Initializes the value for thehilbertX
attribute.setHilbertY
(long hilbertY) Initializes the value for thehilbertY
attribute.setId
(int id) Initializes the value for theid
attribute.setMobilityBaseline
(Double mobilityBaseline) Initializes the value for themobilityBaseline
attribute.setModelName
(String modelName) Initializes the value for themodelName
attribute.setModelReplica
(int modelReplica) Initializes the value for themodelReplica
attribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder from(CommonCSV.Execution instance) Fill a builder with attribute values from the providedio.github.ai4ci.output.CommonCSV.Execution
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder from(PersonDemographicsCSV instance) Fill a builder with attribute values from the providedio.github.ai4ci.output.PersonDemographicsCSV
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.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 ImmutablePersonDemographicsCSV.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 ImmutablePersonDemographicsCSV.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
-
setModelReplica
@CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder setModelReplica(int modelReplica) Initializes the value for themodelReplica
attribute.- Parameters:
modelReplica
- The value for modelReplica- Returns:
this
builder for use in a chained invocation
-
setExperimentReplica
@CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder setExperimentReplica(int experimentReplica) Initializes the value for theexperimentReplica
attribute.- Parameters:
experimentReplica
- The value for experimentReplica- Returns:
this
builder for use in a chained invocation
-
setId
Initializes the value for theid
attribute.- Parameters:
id
- The value for id- Returns:
this
builder for use in a chained invocation
-
setAge
Initializes the value for theage
attribute.- Parameters:
age
- The value for age- Returns:
this
builder for use in a chained invocation
-
setMobilityBaseline
@CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder setMobilityBaseline(Double mobilityBaseline) Initializes the value for themobilityBaseline
attribute.- Parameters:
mobilityBaseline
- The value for mobilityBaseline- Returns:
this
builder for use in a chained invocation
-
setAppUseProbability
@CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder setAppUseProbability(Double appUseProbability) Initializes the value for theappUseProbability
attribute.- Parameters:
appUseProbability
- The value for appUseProbability- Returns:
this
builder for use in a chained invocation
-
setComplianceBaseline
@CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder setComplianceBaseline(Double complianceBaseline) Initializes the value for thecomplianceBaseline
attribute.- Parameters:
complianceBaseline
- The value for complianceBaseline- Returns:
this
builder for use in a chained invocation
-
setHilbertX
@CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder setHilbertX(long hilbertX) Initializes the value for thehilbertX
attribute.- Parameters:
hilbertX
- The value for hilbertX- Returns:
this
builder for use in a chained invocation
-
setHilbertY
@CanIgnoreReturnValue public final ImmutablePersonDemographicsCSV.Builder setHilbertY(long hilbertY) Initializes the value for thehilbertY
attribute.- Parameters:
hilbertY
- The value for hilbertY- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutablePersonDemographicsCSV
.- Returns:
- An immutable instance of PersonDemographicsCSV
- Throws:
IllegalStateException
- if any required attributes are missing
-