Package io.github.ai4ci.config.setup
Class ImmutableWattsStrogatzConfiguration
java.lang.Object
io.github.ai4ci.config.setup.ImmutableWattsStrogatzConfiguration
- All Implemented Interfaces:
Abstraction.Named
,Abstraction.Replica
,SetupConfiguration
,WattsStrogatzConfiguration
,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableWattsStrogatzConfiguration
extends Object
implements WattsStrogatzConfiguration
Immutable implementation of
WattsStrogatzConfiguration
.
Use the builder to create immutable instances:
ImmutableWattsStrogatzConfiguration.builder()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableWattsStrogatzConfiguration
.Nested classes/interfaces inherited from interface io.github.ai4ci.config.setup.WattsStrogatzConfiguration
WattsStrogatzConfiguration._PartialWattsStrogatzConfiguration
-
Field Summary
Fields inherited from interface io.github.ai4ci.config.setup.WattsStrogatzConfiguration
DEFAULT
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableWattsStrogatzConfiguration
.copyOf
(WattsStrogatzConfiguration instance) Creates an immutable copy of aWattsStrogatzConfiguration
value.boolean
This instance is equal to all instances ofImmutableWattsStrogatzConfiguration
that have equal attribute values.getName()
A measure of the randomness of the small world social network.int
hashCode()
Computes a hash code from attributes:name
,replicate
,networkSize
,initialImports
,networkRandomness
,networkConnectedness
.Creates a builder forImmutableWattsStrogatzConfiguration
.prefilled with attibute values ofthis
instance to easily create modified copies.toString()
Prints the immutable valueWattsStrogatzConfiguration
with attribute values.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
(Integer 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.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.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
-
getNetworkRandomness
A measure of the randomness of the small world social network. This is a range from 0 to 1 where 0 is ordered and 1 is totally random.- Specified by:
getNetworkRandomness
in interfaceWattsStrogatzConfiguration
-
getNetworkConnectedness
- Specified by:
getNetworkConnectedness
in interfaceWattsStrogatzConfiguration
- Returns:
- The value of the
networkConnectedness
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- 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- 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- Returns:
- A modified copy of the
this
object
-
withNetworkRandomness
Copy the current immutable object by setting a value for thenetworkRandomness
attribute. An equals check 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
-
withNetworkConnectedness
Copy the current immutable object by setting a value for thenetworkConnectedness
attribute. An equals check 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
-
equals
This instance is equal to all instances ofImmutableWattsStrogatzConfiguration
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:name
,replicate
,networkSize
,initialImports
,networkRandomness
,networkConnectedness
. -
toString
Prints the immutable valueWattsStrogatzConfiguration
with attribute values. -
copyOf
Creates an immutable copy of aWattsStrogatzConfiguration
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 WattsStrogatzConfiguration instance
-
toBuilder
Creates a builder forImmutableWattsStrogatzConfiguration
.prefilled with attibute values ofthis
instance to easily create modified copies.- Returns:
- A new ImmutableWattsStrogatzConfiguration builder with attributes of
this
instance
-
builder
Creates a builder forImmutableWattsStrogatzConfiguration
.ImmutableWattsStrogatzConfiguration.builder() .setName(String) // required
name
.setReplicate(Integer) // optionalreplicate
.setNetworkSize(Integer) // requirednetworkSize
.setInitialImports(Integer) // requiredinitialImports
.setNetworkRandomness(Double) // requirednetworkRandomness
.setNetworkConnectedness(Integer) // requirednetworkConnectedness
.build();- Returns:
- A new ImmutableWattsStrogatzConfiguration builder
-