Package io.github.ai4ci.output
Class ImmutableOutbreakConfigurationJson
java.lang.Object
io.github.ai4ci.output.ImmutableOutbreakConfigurationJson
- All Implemented Interfaces:
CSVWriter.Writeable
,CommonCSV.Execution
,CommonCSV.Model
,OutbreakConfigurationJson
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableOutbreakConfigurationJson
extends Object
implements OutbreakConfigurationJson
Immutable implementation of
OutbreakConfigurationJson
.
Use the builder to create immutable instances:
ImmutableOutbreakConfigurationJson.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableOutbreakConfigurationJson
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableOutbreakConfigurationJson
.copyOf
(OutbreakConfigurationJson instance) Creates an immutable copy of aOutbreakConfigurationJson
value.boolean
This instance is equal to all instances ofImmutableOutbreakConfigurationJson
that have equal attribute values.int
int
int
hashCode()
Computes a hash code from attributes:modelName
,experimentName
,modelReplica
,experimentReplica
,setupConfiguration
,executionConfiguration
.Creates a builder forImmutableOutbreakConfigurationJson
.prefilled with attibute values ofthis
instance to easily create modified copies.toString()
Prints the immutable valueOutbreakConfigurationJson
with attribute values.Copy the current immutable object by setting a value for theexecutionConfiguration
attribute.withExperimentName
(String value) Copy the current immutable object by setting a value for theexperimentName
attribute.withExperimentReplica
(int value) Copy the current immutable object by setting a value for theexperimentReplica
attribute.withModelName
(String value) Copy the current immutable object by setting a value for themodelName
attribute.withModelReplica
(int value) Copy the current immutable object by setting a value for themodelReplica
attribute.Copy the current immutable object by setting a value for thesetupConfiguration
attribute.
-
Method Details
-
getModelName
- Specified by:
getModelName
in interfaceCommonCSV.Model
- Returns:
- The value of the
modelName
attribute
-
getExperimentName
- Specified by:
getExperimentName
in interfaceCommonCSV.Model
- Returns:
- The value of the
experimentName
attribute
-
getModelReplica
public int getModelReplica()- Specified by:
getModelReplica
in interfaceCommonCSV.Execution
- Returns:
- The value of the
modelReplica
attribute
-
getExperimentReplica
public int getExperimentReplica()- Specified by:
getExperimentReplica
in interfaceCommonCSV.Execution
- Returns:
- The value of the
experimentReplica
attribute
-
getSetupConfiguration
- Specified by:
getSetupConfiguration
in interfaceOutbreakConfigurationJson
- Returns:
- The value of the
setupConfiguration
attribute
-
getExecutionConfiguration
- Specified by:
getExecutionConfiguration
in interfaceOutbreakConfigurationJson
- Returns:
- The value of the
executionConfiguration
attribute
-
withModelName
Copy the current immutable object by setting a value for themodelName
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for modelName- Returns:
- A modified copy of the
this
object
-
withExperimentName
Copy the current immutable object by setting a value for theexperimentName
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for experimentName- Returns:
- A modified copy of the
this
object
-
withModelReplica
Copy the current immutable object by setting a value for themodelReplica
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for modelReplica- Returns:
- A modified copy of the
this
object
-
withExperimentReplica
Copy the current immutable object by setting a value for theexperimentReplica
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for experimentReplica- Returns:
- A modified copy of the
this
object
-
withSetupConfiguration
Copy the current immutable object by setting a value for thesetupConfiguration
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for setupConfiguration- Returns:
- A modified copy of the
this
object
-
withExecutionConfiguration
public final ImmutableOutbreakConfigurationJson withExecutionConfiguration(ExecutionConfiguration value) Copy the current immutable object by setting a value for theexecutionConfiguration
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for executionConfiguration- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableOutbreakConfigurationJson
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:modelName
,experimentName
,modelReplica
,experimentReplica
,setupConfiguration
,executionConfiguration
. -
toString
Prints the immutable valueOutbreakConfigurationJson
with attribute values. -
copyOf
Creates an immutable copy of aOutbreakConfigurationJson
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 OutbreakConfigurationJson instance
-
toBuilder
Creates a builder forImmutableOutbreakConfigurationJson
.prefilled with attibute values ofthis
instance to easily create modified copies.- Returns:
- A new ImmutableOutbreakConfigurationJson builder with attributes of
this
instance
-
builder
Creates a builder forImmutableOutbreakConfigurationJson
.ImmutableOutbreakConfigurationJson.builder() .setModelName(String) // required
modelName
.setExperimentName(String) // requiredexperimentName
.setModelReplica(int) // requiredmodelReplica
.setExperimentReplica(int) // requiredexperimentReplica
.setSetupConfiguration(io.github.ai4ci.config.setup.SetupConfiguration) // requiredsetupConfiguration
.setExecutionConfiguration(io.github.ai4ci.config.ExecutionConfiguration) // requiredexecutionConfiguration
.build();- Returns:
- A new ImmutableOutbreakConfigurationJson builder
-