- Timestamp:
- 04/29/19 15:22:17 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Parameters/3.3/OptionalConstrainedValueParameter.cs
r16872 r16875 123 123 Initialize(); 124 124 } 125 public OptionalConstrainedValueParameter(string name, bool getsCollected)126 : base(name, typeof(T)) {127 this.validValues = new ItemSet<T>();128 this.readOnly = false;129 this.getsCollected = getsCollected;130 Initialize();131 }132 125 public OptionalConstrainedValueParameter(string name, ItemSet<T> validValues) 133 126 : base(name, typeof(T)) { … … 137 130 Initialize(); 138 131 } 139 public OptionalConstrainedValueParameter(string name, ItemSet<T> validValues, bool getsCollected)140 : base(name, typeof(T)) {141 this.validValues = validValues;142 this.readOnly = false;143 this.getsCollected = getsCollected;144 Initialize();145 }146 132 public OptionalConstrainedValueParameter(string name, ItemSet<T> validValues, T value) 147 133 : base(name, typeof(T)) { … … 150 136 this.readOnly = false; 151 137 this.getsCollected = true; 152 Initialize();153 }154 public OptionalConstrainedValueParameter(string name, ItemSet<T> validValues, T value, bool getsCollected)155 : base(name, typeof(T)) {156 this.validValues = validValues;157 this.value = value;158 this.readOnly = false;159 this.getsCollected = getsCollected;160 138 Initialize(); 161 139 } … … 167 145 Initialize(); 168 146 } 169 public OptionalConstrainedValueParameter(string name, string description, bool getsCollected)170 : base(name, description, typeof(T)) {171 this.validValues = new ItemSet<T>();172 this.readOnly = false;173 this.getsCollected = getsCollected;174 Initialize();175 }176 147 public OptionalConstrainedValueParameter(string name, string description, ItemSet<T> validValues) 177 148 : base(name, description, typeof(T)) { … … 181 152 Initialize(); 182 153 } 183 public OptionalConstrainedValueParameter(string name, string description, ItemSet<T> validValues, bool getsCollected)184 : base(name, description, typeof(T)) {185 this.validValues = validValues;186 this.readOnly = false;187 this.getsCollected = getsCollected;188 Initialize();189 }190 154 public OptionalConstrainedValueParameter(string name, string description, ItemSet<T> validValues, T value) 191 155 : base(name, description, typeof(T)) { … … 194 158 this.readOnly = false; 195 159 this.getsCollected = true; 196 Initialize();197 }198 public OptionalConstrainedValueParameter(string name, string description, ItemSet<T> validValues, T value, bool getsCollected)199 : base(name, description, typeof(T)) {200 this.validValues = validValues;201 this.value = value;202 this.readOnly = false;203 this.getsCollected = getsCollected;204 160 Initialize(); 205 161 }
Note: See TracChangeset
for help on using the changeset viewer.