Package org.evoludo.simulator.modules
Enum Class Map2Fitness.Map
- All Implemented Interfaces:
Serializable,Comparable<Map2Fitness.Map>,Constable,CLOption.Key
- Enclosing class:
Map2Fitness
Enum representing the different types of payoff/score to fitness maps
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionconvex combination of baseline fitness and scores, \(fit = b(1-w)+w*score\)exponential mapping of scores to fitness, \(fit = b*\exp(w*score)\)no mapping, scores/payoffs equal fitness, \(fit = score\)static baseline fitness, \(fit = b+w*score\) -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Return key of in this collection.getTitle()Brief description of purpose of this key.toString()static Map2Fitness.MapReturns the enum constant of this class with the specified name.static Map2Fitness.Map[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface CLOption.Key
getDescription
-
Enum Constant Details
-
NONE
no mapping, scores/payoffs equal fitness, \(fit = score\) -
STATIC
static baseline fitness, \(fit = b+w*score\) -
CONVEX
convex combination of baseline fitness and scores, \(fit = b(1-w)+w*score\) -
EXPONENTIAL
exponential mapping of scores to fitness, \(fit = b*\exp(w*score)\)
-
-
Field Details
-
Constructor Details
-
Map
Instantiate new type of map.- Parameters:
key- identifier for parsing of command line optiontitle- summary of map
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<Map2Fitness.Map>
-
getKey
Description copied from interface:CLOption.KeyReturn key of in this collection. Used when parsing command line options.- Specified by:
getKeyin interfaceCLOption.Key- Returns:
- the key of the command line option
-
getTitle
Description copied from interface:CLOption.KeyBrief description of purpose of this key. Used in GUI and in help display.- Specified by:
getTitlein interfaceCLOption.Key- Returns:
- the title of the command line option
- See Also:
-