Class PartialWattsStrogatzConfiguration.Builder

java.lang.Object
io.github.ai4ci.config.setup.PartialWattsStrogatzConfiguration.Builder
Enclosing class:
PartialWattsStrogatzConfiguration

@NotThreadSafe public static final class PartialWattsStrogatzConfiguration.Builder extends Object
Builds instances of type PartialWattsStrogatzConfiguration. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      Fill a builder with attribute values from the provided io.github.ai4ci.config.setup.WattsStrogatzConfiguration._PartialWattsStrogatzConfiguration instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      @CanIgnoreReturnValue public final PartialWattsStrogatzConfiguration.Builder from(SetupConfiguration instance)
      Fill a builder with attribute values from the provided io.github.ai4ci.config.setup.SetupConfiguration instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      @CanIgnoreReturnValue public final PartialWattsStrogatzConfiguration.Builder from(WattsStrogatzConfiguration instance)
      Fill a builder with attribute values from the provided io.github.ai4ci.config.setup.WattsStrogatzConfiguration instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      @CanIgnoreReturnValue public final PartialWattsStrogatzConfiguration.Builder from(Abstraction.Named instance)
      Fill a builder with attribute values from the provided io.github.ai4ci.abm.mechanics.Abstraction.Named instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      @CanIgnoreReturnValue public final PartialWattsStrogatzConfiguration.Builder from(Abstraction.Replica instance)
      Fill a builder with attribute values from the provided io.github.ai4ci.abm.mechanics.Abstraction.Replica instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setName

      @CanIgnoreReturnValue public final PartialWattsStrogatzConfiguration.Builder setName(String name)
      Initializes the value for the name attribute.
      Parameters:
      name - The value for name (can be null)
      Returns:
      this builder for use in a chained invocation
    • setReplicate

      @CanIgnoreReturnValue public final PartialWattsStrogatzConfiguration.Builder setReplicate(Integer replicate)
      Initializes the value for the replicate attribute.

      If not set, this attribute will have a default value as returned by the initializer of replicate.

      Parameters:
      replicate - The value for replicate
      Returns:
      this builder for use in a chained invocation
    • setNetworkSize

      @CanIgnoreReturnValue public final PartialWattsStrogatzConfiguration.Builder setNetworkSize(Integer networkSize)
      Initializes the value for the networkSize attribute.
      Parameters:
      networkSize - The value for networkSize (can be null)
      Returns:
      this builder for use in a chained invocation
    • setInitialImports

      @CanIgnoreReturnValue public final PartialWattsStrogatzConfiguration.Builder setInitialImports(Integer initialImports)
      Initializes the value for the initialImports attribute.
      Parameters:
      initialImports - The value for initialImports (can be null)
      Returns:
      this builder for use in a chained invocation
    • setNetworkRandomness

      @CanIgnoreReturnValue public final PartialWattsStrogatzConfiguration.Builder setNetworkRandomness(Double networkRandomness)
      Initializes the value for the networkRandomness attribute.
      Parameters:
      networkRandomness - The value for networkRandomness (can be null)
      Returns:
      this builder for use in a chained invocation
    • setNetworkConnectedness

      @CanIgnoreReturnValue public final PartialWattsStrogatzConfiguration.Builder setNetworkConnectedness(Integer networkConnectedness)
      Initializes the value for the networkConnectedness attribute.
      Parameters:
      networkConnectedness - The value for networkConnectedness (can be null)
      Returns:
      this builder for use in a chained invocation
    • build

      Returns:
      An immutable instance of WattsStrogatzConfiguration
      Throws:
      IllegalStateException - if any required attributes are missing