Package io.github.ai4ci.config.setup
Class PartialWattsStrogatzConfiguration
java.lang.Object
io.github.ai4ci.config.setup.PartialWattsStrogatzConfiguration
- All Implemented Interfaces:
Abstraction.Modification<WattsStrogatzConfiguration>
,Abstraction.Named
,Abstraction.Replica
,SetupConfiguration
,WattsStrogatzConfiguration
,WattsStrogatzConfiguration._PartialWattsStrogatzConfiguration
,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class PartialWattsStrogatzConfiguration
extends Object
implements WattsStrogatzConfiguration._PartialWattsStrogatzConfiguration
Immutable implementation of
WattsStrogatzConfiguration._PartialWattsStrogatzConfiguration
.
Use the builder to create immutable instances:
PartialWattsStrogatzConfiguration.builder()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typePartialWattsStrogatzConfiguration
.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 forPartialWattsStrogatzConfiguration
.Creates an immutable copy of aWattsStrogatzConfiguration._PartialWattsStrogatzConfiguration
value.boolean
This instance is equal to all instances ofPartialWattsStrogatzConfiguration
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
.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
Methods inherited from interface io.github.ai4ci.config.setup.WattsStrogatzConfiguration._PartialWattsStrogatzConfiguration
self
-
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 (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
-
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 (can benull
)- 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 (can benull
)- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofPartialWattsStrogatzConfiguration
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
public static PartialWattsStrogatzConfiguration copyOf(WattsStrogatzConfiguration._PartialWattsStrogatzConfiguration instance) Creates an immutable copy of aWattsStrogatzConfiguration._PartialWattsStrogatzConfiguration
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
-
builder
Creates a builder forPartialWattsStrogatzConfiguration
.PartialWattsStrogatzConfiguration.builder() .setName(String | null) // nullable
name
.setReplicate(Integer) // optionalreplicate
.setNetworkSize(Integer | null) // nullablenetworkSize
.setInitialImports(Integer | null) // nullableinitialImports
.setNetworkRandomness(Double | null) // nullablenetworkRandomness
.setNetworkConnectedness(Integer | null) // nullablenetworkConnectedness
.build();- Returns:
- A new PartialWattsStrogatzConfiguration builder
-