Package edu.cmu.tetrad.search.blocks
Class LatentNameAssigner.Config.Builder
java.lang.Object
edu.cmu.tetrad.search.blocks.LatentNameAssigner.Config.Builder
- Enclosing class:
LatentNameAssigner.Config
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 Summary
Modifier and TypeMethodDescriptionbuild()Builds the configuration with the specified settings.collapseTrailingCap(boolean v) Sets whether trailing capital letters should be collapsed in the resulting configuration.Sets the default mixed name for this configuration.keepReservedLiteral(boolean v) Sets whether reserved literal names should be kept in the resulting configuration.maxOverlapParts(int v) Sets the maximum number of overlapping parts allowed.numericSep(String v) Sets the string to be used as the separator for numeric parts in the resulting configuration.Sets the string to be used as the prefix for overflow information in the resulting configuration.Sets the string that will be used as the joiner for overlapping parts.Sets the reserved literal names for the configuration.showOverflowCount(boolean v) Sets whether the overflow count should be displayed in the resulting configuration.
-
Method Details
-
maxOverlapParts
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
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
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
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
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
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
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
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
Builds the configuration with the specified settings.- Returns:
- the Config instance with the updated configuration
-