Changeset 10974 for branches/GrammaticalEvolution/HeuristicLab.Problems.GrammaticalEvolution/Mappers/GenotypeToPhenotypeMapper.cs
- Timestamp:
- 06/11/14 12:07:15 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GrammaticalEvolution/HeuristicLab.Problems.GrammaticalEvolution/Mappers/GenotypeToPhenotypeMapper.cs
r10968 r10974 34 34 namespace HeuristicLab.Problems.GrammaticalEvolution { 35 35 /// <summary> 36 /// GenotypeToPhenotypeMapper36 /// Abstract base class for GenotypeToPhenotypeMappers 37 37 /// </summary> 38 38 public abstract class GenotypeToPhenotypeMapper : IntegerVectorOperator, IGenotypeToPhenotypeMapper { … … 66 66 67 67 // no terminal node exists for the given parent node 68 if ( possibleSymbolsList.Count() < 1) return null;68 if (!possibleSymbolsList.Any()) return null; 69 69 70 70 var newNode = possibleSymbolsList.SelectRandom(random).CreateTreeNode();
Note: See TracChangeset
for help on using the changeset viewer.