Changeset 14898 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/StringVector/StringVectorConstantsErcValue.cs
- Timestamp:
- 04/28/17 23:33:27 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/StringVector/StringVectorConstantsErcValue.cs
r14897 r14898 17 17 private readonly StringArray[] arrays; // perf opt: avoid using parameter getter 18 18 19 public StringVectorConstantsErcValue() : this(false, new StringArray[0]) { } 20 19 21 public StringVectorConstantsErcValue(params StringArray[] arrays) : this(true, arrays) { } 20 22 21 23 public StringVectorConstantsErcValue(bool isEnabled, params StringArray[] arrays) { 22 24 this.arrays = arrays; 25 Name = "String vector constants"; 23 26 IsEnabled = isEnabled; 24 Parameters.Add(new ValueParameter<Item Array<StringArray>>(ConstantsParameterName, new ItemArray<StringArray>(arrays)));27 Parameters.Add(new ValueParameter<ItemCollection<StringArray>>(ConstantsParameterName, new ItemCollection<StringArray>(arrays))); 25 28 } 26 29 … … 30 33 public StringVectorConstantsErcValue(StringVectorConstantsErcValue origin, Cloner cloner) : base(origin, cloner) { } 31 34 32 public IValueParameter<Item Array<StringArray>> ConstantsParameter35 public IValueParameter<ItemCollection<StringArray>> ConstantsParameter 33 36 { 34 get { return (IValueParameter<Item Array<StringArray>>)Parameters[ConstantsParameterName]; }37 get { return (IValueParameter<ItemCollection<StringArray>>)Parameters[ConstantsParameterName]; } 35 38 } 36 39
Note: See TracChangeset
for help on using the changeset viewer.