public enum LocalizedGeneticsFormats extends Enum<LocalizedGeneticsFormats> implements Localizable
The constants in this enumeration represent the available formats as localized strings. These formats are intended to be localized using simple properties files, using the constant name as the key and the property value as the message format. The source English format is provided in the constants themselves to serve both as a reminder for developers to understand the parameters needed by each format, as a basis for translators to create localized properties files, and as a default format if some translation is missing.
Modifier and Type | Method and Description |
---|---|
String |
getLocalizedString(Locale locale)
Gets the localized string.
|
String |
getSourceString()
Gets the source (non-localized) string.
|
static LocalizedGeneticsFormats |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LocalizedGeneticsFormats[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocalizedGeneticsFormats CROSSOVER_RATE
public static final LocalizedGeneticsFormats DIFFERENT_ORIG_AND_PERMUTED_DATA
public static final LocalizedGeneticsFormats ELITISM_RATE
public static final LocalizedGeneticsFormats INVALID_BINARY_CHROMOSOME
public static final LocalizedGeneticsFormats INVALID_FIXED_LENGTH_CHROMOSOME
public static final LocalizedGeneticsFormats INVALID_BINARY_DIGIT
public static final LocalizedGeneticsFormats LIST_OF_CHROMOSOMES_BIGGER_THAN_POPULATION_SIZE
public static final LocalizedGeneticsFormats MUTATION_RATE
public static final LocalizedGeneticsFormats POPULATION_LIMIT_NOT_POSITIVE
public static final LocalizedGeneticsFormats RANDOMKEY_MUTATION_WRONG_CLASS
public static final LocalizedGeneticsFormats TOO_LARGE_TOURNAMENT_ARITY
public static LocalizedGeneticsFormats[] values()
for (LocalizedGeneticsFormats c : LocalizedGeneticsFormats.values()) System.out.println(c);
public static LocalizedGeneticsFormats valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getSourceString()
getSourceString
in interface Localizable
public String getLocalizedString(Locale locale)
getLocalizedString
in interface Localizable
locale
- locale into which to get the string.Copyright © 2016 Hipparchus.org. All rights reserved.