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:
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Abstraction.Named
      Returns:
      The value of the name attribute
    • getReplicate

      public Integer getReplicate()
      Specified by:
      getReplicate in interface Abstraction.Replica
      Returns:
      The value of the replicate attribute
    • getNetworkSize

      public Integer getNetworkSize()
      Specified by:
      getNetworkSize in interface SetupConfiguration
      Returns:
      The value of the networkSize attribute
    • getInitialImports

      public Integer getInitialImports()
      Specified by:
      getInitialImports in interface SetupConfiguration
      Returns:
      The value of the initialImports attribute
    • getNetworkRandomness

      public Double 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 interface WattsStrogatzConfiguration
    • getNetworkConnectedness

      public Integer getNetworkConnectedness()
      Specified by:
      getNetworkConnectedness in interface WattsStrogatzConfiguration
      Returns:
      The value of the networkConnectedness attribute
    • withName

      public final PartialWattsStrogatzConfiguration withName(String value)
      Copy the current immutable object by setting a value for the name attribute. An equals check used to prevent copying of the same value by returning this.
      Specified by:
      withName in interface SetupConfiguration
      Parameters:
      value - A new value for name (can be null)
      Returns:
      A modified copy of the this object
    • withReplicate

      public final PartialWattsStrogatzConfiguration withReplicate(Integer value)
      Copy the current immutable object by setting a value for the replicate attribute. An equals check used to prevent copying of the same value by returning this.
      Specified by:
      withReplicate in interface SetupConfiguration
      Parameters:
      value - A new value for replicate
      Returns:
      A modified copy of the this object
    • withNetworkSize

      public final PartialWattsStrogatzConfiguration withNetworkSize(Integer value)
      Copy the current immutable object by setting a value for the networkSize attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for networkSize (can be null)
      Returns:
      A modified copy of the this object
    • withInitialImports

      public final PartialWattsStrogatzConfiguration withInitialImports(Integer value)
      Copy the current immutable object by setting a value for the initialImports attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for initialImports (can be null)
      Returns:
      A modified copy of the this object
    • withNetworkRandomness

      public final PartialWattsStrogatzConfiguration withNetworkRandomness(Double value)
      Copy the current immutable object by setting a value for the networkRandomness attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for networkRandomness (can be null)
      Returns:
      A modified copy of the this object
    • withNetworkConnectedness

      public final PartialWattsStrogatzConfiguration withNetworkConnectedness(Integer value)
      Copy the current immutable object by setting a value for the networkConnectedness attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for networkConnectedness (can be null)
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of PartialWattsStrogatzConfiguration that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: name, replicate, networkSize, initialImports, networkRandomness, networkConnectedness.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value WattsStrogatzConfiguration with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      Creates an immutable copy of a WattsStrogatzConfiguration._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 for PartialWattsStrogatzConfiguration.
       PartialWattsStrogatzConfiguration.builder()
          .setName(String | null) // nullable name
          .setReplicate(Integer) // optional replicate
          .setNetworkSize(Integer | null) // nullable networkSize
          .setInitialImports(Integer | null) // nullable initialImports
          .setNetworkRandomness(Double | null) // nullable networkRandomness
          .setNetworkConnectedness(Integer | null) // nullable networkConnectedness
          .build();
       
      Returns:
      A new PartialWattsStrogatzConfiguration builder