@@ -50,7 +50,7 @@ import org.evomaster.core.search.service.monitor.ProcessMonitorExcludeField
5050abstract class Gene (
5151 /* *
5252 * The name for this gene, mainly needed for debugging.
53- * One actual use is for binding, e.g., parameters in HTTP requests
53+ * One actual use is for binding, e.g., paremeters in HTTP requests
5454 */
5555 var name : String ,
5656 /* *
@@ -87,7 +87,6 @@ abstract class Gene(
8787 }
8888 }
8989
90-
9190 /* *
9291 * Whether this gene has been initialized, and can be used.
9392 * Note that gene can have validity constraints, and those might not be satisfied
@@ -104,7 +103,7 @@ abstract class Gene(
104103 * The type can be different, eg strings vs numbers, but still consistent.
105104 *
106105 * WARNING: genes are mutable, but here we check for references. this implies
107- * NO gene can override hashcode.
106+ * NO gene can overridde hashcode.
108107 *
109108 * If A is bound to B, then as well B is bound to A.
110109 * If [this] is A, then binding genes will contain only B, and the binding genes of B
@@ -141,6 +140,7 @@ abstract class Gene(
141140 throw IllegalStateException (" Trying to use a gene that is not initialized" )
142141 }
143142
143+
144144 /* *
145145 * Return all direct children of this gene.
146146 * Note that a gene can only have genes inside, and not other types of structural elements.
@@ -280,7 +280,7 @@ abstract class Gene(
280280 a gene can refer to other genes outside of its tree.
281281 when we make a copy we need to make sure that we refer to the new gene in the copied
282282 individual, not the original individual.
283- so, this is applied only when the root is an individual, otherwise skipped, because
283+ so, this is applied only when the root is an individual, otherswise skipped, because
284284 would not be able to find those genes anyway
285285 */
286286 val postBinding = (original as Gene ).bindingGenes.map { b ->
@@ -542,7 +542,7 @@ abstract class Gene(
542542 * can be mutated, the choice is based with different strategies
543543 *
544544 * @param randomness the source of non-determinism
545- * @param apc adaptive parameter control singleton
545+ * @param apc adatpive parameter control singleton
546546 * @param mwc mutation weight control
547547 * @param interalGeneSelectionStrategy a strategy to select internal genes to mutate.
548548 * In hypermutation, several genes could be mutated at same time.
@@ -1095,7 +1095,7 @@ abstract class Gene(
10951095
10961096
10971097 /* *
1098- * here `valid` means that 1) [updateValue] performs correctly, i.e. , returns true AND 2) isLocallyValid is true
1098+ * here `valid` means that 1) [updateValue] performs correctly, ie , returns true AND 2) isLocallyValid is true
10991099 *
11001100 * @param updateValue lambda performs update of value of the gene
11011101 * @param undoIfUpdateFails represents whether it needs to undo the value update if [undoIfUpdateFails] returns false
0 commit comments