Changeset 11397 for branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Datastructures/Configuration.cs
- Timestamp:
- 09/28/14 09:18:30 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Datastructures/Configuration.cs
r10856 r11397 54 54 55 55 56 public Configuration AddBinary (string name, int length) {56 public Configuration AddBinaryVector(string name, int length) { 57 57 if (Parameters.ContainsKey(name)) throw new ArgumentException("name must be unique", "name"); 58 58 Parameters.Add(name, new BinaryParameterConfiguration(length)); … … 60 60 } 61 61 62 public Configuration AddInteger (string name, int length, int min, int max, int? step = null) {62 public Configuration AddIntegerVector(string name, int length, int min, int max, int? step = null) { 63 63 if (Parameters.ContainsKey(name)) throw new ArgumentException("name must be unique", "name"); 64 64 Parameters.Add(name, new IntegerParameterConfiguration(length, min, max, step)); … … 66 66 } 67 67 68 public Configuration AddInteger (string name, int length, IList<int> min, IList<int> max, IList<int> step = null) {68 public Configuration AddIntegerVector(string name, int length, IList<int> min, IList<int> max, IList<int> step = null) { 69 69 if (Parameters.ContainsKey(name)) throw new ArgumentException("name must be unique", "name"); 70 70 Parameters.Add(name, new IntegerParameterConfiguration(length, min, max, step)); … … 72 72 } 73 73 74 public Configuration AddReal (string name, int length, double min, double max) {74 public Configuration AddRealVector(string name, int length, double min, double max) { 75 75 if (Parameters.ContainsKey(name)) throw new ArgumentException("name must be unique", "name"); 76 76 Parameters.Add(name, new RealParameterConfiguration(length, min, max)); … … 78 78 } 79 79 80 public Configuration AddReal (string name, int length, IList<double> min, IList<double> max) {80 public Configuration AddRealVector(string name, int length, IList<double> min, IList<double> max) { 81 81 if (Parameters.ContainsKey(name)) throw new ArgumentException("name must be unique", "name"); 82 82 Parameters.Add(name, new RealParameterConfiguration(length, min, max));
Note: See TracChangeset
for help on using the changeset viewer.