Changeset 1260 for cpp/frams/genetics/geneprops.h
- Timestamp:
- 06/22/23 04:00:45 (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/geneprops.h
r1249 r1260 28 28 }; 29 29 30 class GenePropsOp_ Old: public GenePropsOp30 class GenePropsOp_Legacy : public GenePropsOp 31 31 { 32 32 double minvalue, maxvalue, defvalue, change, revchange; 33 33 public: 34 GenePropsOp_ Old(double minvalue, double maxvalue, double defvalue, double change, double revchange = -1);34 GenePropsOp_Legacy(double minvalue, double maxvalue, double defvalue, double change, double revchange = -1); 35 35 double increase(double value) const; 36 36 double decrease(double value) const; 37 friend class GenePropsOps_ New05;37 friend class GenePropsOps_AllChange05; 38 38 }; 39 39 40 40 class GenePropsOp_NormalizedAndScaled : public GenePropsOp 41 41 { 42 GenePropsOp_ Oldnormalized;42 GenePropsOp_Legacy normalized; 43 43 public: 44 44 GenePropsOp_NormalizedAndScaled(double change) :normalized(-1, 1, 0, change) {} … … 79 79 }; 80 80 81 class GenePropsOps_ Old: public GenePropsOps81 class GenePropsOps_Legacy : public GenePropsOps 82 82 { 83 83 public: 84 GenePropsOps_ Old();84 GenePropsOps_Legacy(); 85 85 }; 86 86 87 class GenePropsOps_New05 : public GenePropsOps_Old 87 /** 88 * Just as legacy (before 2023-06), but the influence of each modifier is uniform and simpler (no normalizeBiol4()). 89 * This is what is currently used in Framsticks. 90 */ 91 class GenePropsOps_AllChange05 : public GenePropsOps_Legacy 88 92 { 89 93 public: 90 GenePropsOps_ New05();94 GenePropsOps_AllChange05(); 91 95 }; 92 96 97 /** 98 * Just an experiment with a different scaling of the influence of individual modifier characters to cover 99 * the entire range of parameter values. After investigations we decided that it does not 100 * provide any advantages over "AllChange05". 101 */ 93 102 class GenePropsOps_Exponential : public GenePropsOps 94 103 { … … 132 141 133 142 static GeneProps standard_values; 134 static GenePropsOps* standard_ops; 135 static GenePropsOps* getStandardOps(); 143 144 static GenePropsOps* getDefaultOps(); 145 static void setDefaultOps(GenePropsOps* ops); 136 146 147 static GenePropsOps* getAllChange05Ops(); 148 static GenePropsOps* getLegacyOps(); 149 137 150 /** 138 151 * Constructor initializing all properties with default values. … … 154 167 */ 155 168 int executeModifier(char modif, GenePropsOps* ops = NULL); 156 int executeModifier_Legacy(char modif);157 169 158 170 /**
Note: See TracChangeset
for help on using the changeset viewer.