Class LatentNameAssigner.Config.Builder

java.lang.Object
edu.cmu.tetrad.search.blocks.LatentNameAssigner.Config.Builder
Enclosing class:
LatentNameAssigner.Config

public static final class LatentNameAssigner.Config.Builder extends Object
Builder class for constructing instances of the Config class with customizable properties. Provides methods to set specific properties and a build method to create a Config instance.
  • Method Details

    • maxOverlapParts

      public LatentNameAssigner.Config.Builder maxOverlapParts(int v)
      Sets the maximum number of overlapping parts allowed.
      Parameters:
      v - the maximum number of parts that can overlap
      Returns:
      the Builder instance with the updated configuration
    • showOverflowCount

      public LatentNameAssigner.Config.Builder showOverflowCount(boolean v)
      Sets whether the overflow count should be displayed in the resulting configuration.
      Parameters:
      v - a boolean value indicating whether to show the overflow count (true to enable, false to disable)
      Returns:
      the Builder instance with the updated configuration
    • overlapJoiner

      public LatentNameAssigner.Config.Builder overlapJoiner(String v)
      Sets the string that will be used as the joiner for overlapping parts.
      Parameters:
      v - the string value to be used for joining overlapping parts
      Returns:
      the Builder instance with the updated configuration
    • overflowPrefix

      public LatentNameAssigner.Config.Builder overflowPrefix(String v)
      Sets the string to be used as the prefix for overflow information in the resulting configuration.
      Parameters:
      v - the string value to be used as the overflow prefix
      Returns:
      the Builder instance with the updated configuration
    • defaultMixedName

      public LatentNameAssigner.Config.Builder defaultMixedName(String v)
      Sets the default mixed name for this configuration.
      Parameters:
      v - the default mixed name to be set
      Returns:
      the Builder instance with the updated configuration
    • collapseTrailingCap

      public LatentNameAssigner.Config.Builder collapseTrailingCap(boolean v)
      Sets whether trailing capital letters should be collapsed in the resulting configuration.
      Parameters:
      v - a boolean value indicating whether to collapse trailing capital letters (true to enable, false to disable)
      Returns:
      the Builder instance with the updated configuration
    • numericSep

      Sets the string to be used as the separator for numeric parts in the resulting configuration.
      Parameters:
      v - the string value to be used as the numeric separator
      Returns:
      the Builder instance with the updated configuration
    • reservedLiteralNames

      public LatentNameAssigner.Config.Builder reservedLiteralNames(Set<String> v)
      Sets the reserved literal names for the configuration.
      Parameters:
      v - a set of literal names to be considered reserved
      Returns:
      the Builder instance with the updated configuration
    • keepReservedLiteral

      public LatentNameAssigner.Config.Builder keepReservedLiteral(boolean v)
      Sets whether reserved literal names should be kept in the resulting configuration.
      Parameters:
      v - a boolean value indicating whether to keep reserved literal names (true to enable, false to disable)
      Returns:
      the Builder instance with the updated configuration
    • build

      public LatentNameAssigner.Config build()
      Builds the configuration with the specified settings.
      Returns:
      the Config instance with the updated configuration