Package io.github.ai4ci.config.setup
Class PartialAgeStratifiedNetworkConfiguration
java.lang.Object
io.github.ai4ci.config.setup.PartialAgeStratifiedNetworkConfiguration
- All Implemented Interfaces:
Abstraction.Modification<AgeStratifiedNetworkConfiguration>
,Abstraction.Named
,Abstraction.Replica
,AgeStratifiedNetworkConfiguration
,AgeStratifiedNetworkConfiguration._PartialAgeStratifiedNetworkConfiguration
,SetupConfiguration
,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class PartialAgeStratifiedNetworkConfiguration
extends Object
implements AgeStratifiedNetworkConfiguration._PartialAgeStratifiedNetworkConfiguration
Immutable implementation of
AgeStratifiedNetworkConfiguration._PartialAgeStratifiedNetworkConfiguration
.
Use the builder to create immutable instances:
PartialAgeStratifiedNetworkConfiguration.builder()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typePartialAgeStratifiedNetworkConfiguration
.Nested classes/interfaces inherited from interface io.github.ai4ci.config.setup.AgeStratifiedNetworkConfiguration
AgeStratifiedNetworkConfiguration._PartialAgeStratifiedNetworkConfiguration
-
Field Summary
Fields inherited from interface io.github.ai4ci.config.setup.AgeStratifiedNetworkConfiguration
DEFAULT
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forPartialAgeStratifiedNetworkConfiguration
.Creates an immutable copy of aAgeStratifiedNetworkConfiguration._PartialAgeStratifiedNetworkConfiguration
value.boolean
This instance is equal to all instances ofPartialAgeStratifiedNetworkConfiguration
that have equal attribute values.getName()
int
double
int
hashCode()
Computes a hash code from attributes:name
,replicate
,networkSize
,initialImports
,ageDistribution
,networkConnectedness
,networkRandomness
,oddsContactFromAgeDifference
,normalisedOddsContactFromAgeDifference
.toString()
Prints the immutable valueAgeStratifiedNetworkConfiguration
with attribute values.Copy the current immutable object by setting a value for theageDistribution
attribute.withInitialImports
(Integer value) Copy the current immutable object by setting a value for theinitialImports
attribute.Copy the current immutable object by setting a value for thename
attribute.withNetworkConnectedness
(int value) Copy the current immutable object by setting a value for thenetworkConnectedness
attribute.withNetworkRandomness
(double value) Copy the current immutable object by setting a value for thenetworkRandomness
attribute.withNetworkSize
(Integer value) Copy the current immutable object by setting a value for thenetworkSize
attribute.Copy the current immutable object by setting a value for thenormalisedOddsContactFromAgeDifference
attribute.Copy the current immutable object by setting a value for theoddsContactFromAgeDifference
attribute.withReplicate
(Integer value) Copy the current immutable object by setting a value for thereplicate
attribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.ai4ci.config.setup.AgeStratifiedNetworkConfiguration
adjustedProbabilityContact
Methods inherited from interface io.github.ai4ci.config.setup.AgeStratifiedNetworkConfiguration._PartialAgeStratifiedNetworkConfiguration
self
Methods inherited from interface io.github.ai4ci.config.setup.SetupConfiguration
getHilbertCoords
-
Method Details
-
getName
- Specified by:
getName
in interfaceAbstraction.Named
- Returns:
- The value of the
name
attribute
-
getReplicate
- Specified by:
getReplicate
in interfaceAbstraction.Replica
- Returns:
- The value of the
replicate
attribute
-
getNetworkSize
- Specified by:
getNetworkSize
in interfaceSetupConfiguration
- Returns:
- The value of the
networkSize
attribute
-
getInitialImports
- Specified by:
getInitialImports
in interfaceSetupConfiguration
- Returns:
- The value of the
initialImports
attribute
-
getAgeDistribution
- Specified by:
getAgeDistribution
in interfaceAgeStratifiedNetworkConfiguration
- Returns:
- The value of the
ageDistribution
attribute
-
getNetworkConnectedness
public int getNetworkConnectedness()- Specified by:
getNetworkConnectedness
in interfaceAgeStratifiedNetworkConfiguration
- Returns:
- The value of the
networkConnectedness
attribute
-
getNetworkRandomness
public double getNetworkRandomness()- Specified by:
getNetworkRandomness
in interfaceAgeStratifiedNetworkConfiguration
- Returns:
- The value of the
networkRandomness
attribute
-
getOddsContactFromAgeDifference
- Specified by:
getOddsContactFromAgeDifference
in interfaceAgeStratifiedNetworkConfiguration
- Returns:
- The value of the
oddsContactFromAgeDifference
attribute
-
getNormalisedOddsContactFromAgeDifference
- Specified by:
getNormalisedOddsContactFromAgeDifference
in interfaceAgeStratifiedNetworkConfiguration
- Returns:
- The value of the
normalisedOddsContactFromAgeDifference
attribute
-
withName
Copy the current immutable object by setting a value for thename
attribute. An equals check used to prevent copying of the same value by returningthis
.- Specified by:
withName
in interfaceSetupConfiguration
- Parameters:
value
- A new value for name (can benull
)- Returns:
- A modified copy of the
this
object
-
withReplicate
Copy the current immutable object by setting a value for thereplicate
attribute. An equals check used to prevent copying of the same value by returningthis
.- Specified by:
withReplicate
in interfaceSetupConfiguration
- Parameters:
value
- A new value for replicate- Returns:
- A modified copy of the
this
object
-
withNetworkSize
Copy the current immutable object by setting a value for thenetworkSize
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for networkSize (can benull
)- Returns:
- A modified copy of the
this
object
-
withInitialImports
Copy the current immutable object by setting a value for theinitialImports
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for initialImports (can benull
)- Returns:
- A modified copy of the
this
object
-
withAgeDistribution
public final PartialAgeStratifiedNetworkConfiguration withAgeDistribution(EmpiricalDistribution value) Copy the current immutable object by setting a value for theageDistribution
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for ageDistribution (can benull
)- Returns:
- A modified copy of the
this
object
-
withNetworkConnectedness
Copy the current immutable object by setting a value for thenetworkConnectedness
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for networkConnectedness- Returns:
- A modified copy of the
this
object
-
withNetworkRandomness
Copy the current immutable object by setting a value for thenetworkRandomness
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for networkRandomness- Returns:
- A modified copy of the
this
object
-
withOddsContactFromAgeDifference
public final PartialAgeStratifiedNetworkConfiguration withOddsContactFromAgeDifference(Abstraction.SimpleFunction value) Copy the current immutable object by setting a value for theoddsContactFromAgeDifference
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for oddsContactFromAgeDifference (can benull
)- Returns:
- A modified copy of the
this
object
-
withNormalisedOddsContactFromAgeDifference
public final PartialAgeStratifiedNetworkConfiguration withNormalisedOddsContactFromAgeDifference(Abstraction.SimpleFunction value) Copy the current immutable object by setting a value for thenormalisedOddsContactFromAgeDifference
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for normalisedOddsContactFromAgeDifference- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofPartialAgeStratifiedNetworkConfiguration
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:name
,replicate
,networkSize
,initialImports
,ageDistribution
,networkConnectedness
,networkRandomness
,oddsContactFromAgeDifference
,normalisedOddsContactFromAgeDifference
. -
toString
Prints the immutable valueAgeStratifiedNetworkConfiguration
with attribute values. -
copyOf
public static PartialAgeStratifiedNetworkConfiguration copyOf(AgeStratifiedNetworkConfiguration._PartialAgeStratifiedNetworkConfiguration instance) Creates an immutable copy of aAgeStratifiedNetworkConfiguration._PartialAgeStratifiedNetworkConfiguration
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 AgeStratifiedNetworkConfiguration instance
-
builder
Creates a builder forPartialAgeStratifiedNetworkConfiguration
.PartialAgeStratifiedNetworkConfiguration.builder() .setName(String | null) // nullable
name
.setReplicate(Integer) // optionalreplicate
.setNetworkSize(Integer | null) // nullablenetworkSize
.setInitialImports(Integer | null) // nullableinitialImports
.setAgeDistribution(io.github.ai4ci.util.EmpiricalDistribution | null) // nullableageDistribution
.setNetworkConnectedness(int) // optionalnetworkConnectedness
.setNetworkRandomness(double) // optionalnetworkRandomness
.setOddsContactFromAgeDifference(io.github.ai4ci.abm.mechanics.Abstraction.SimpleFunction | null) // nullableoddsContactFromAgeDifference
.setNormalisedOddsContactFromAgeDifference(io.github.ai4ci.abm.mechanics.Abstraction.SimpleFunction) // optionalnormalisedOddsContactFromAgeDifference
.build();- Returns:
- A new PartialAgeStratifiedNetworkConfiguration builder
-