Changeset 9827 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding
- Timestamp:
- 07/31/13 14:33:08 (11 years ago)
- Location:
- branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ParameterConfigurationTree.cs
r9823 r9827 167 167 } 168 168 169 public ParameterConfigurationTree()170 : base() {171 Name = "Parameter Configuration Tree";172 }173 169 [StorableConstructor] 174 170 protected ParameterConfigurationTree(bool deserializing) : base(deserializing) { } -
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/SymbolicExpressionGrammar/SymbolicExpressionGrammarValueConfiguration.cs
r9823 r9827 12 12 [StorableConstructor] 13 13 protected SymbolicExpressionGrammarValueConfiguration(bool deserializing) : base(deserializing) { } 14 15 public SymbolicExpressionGrammarValueConfiguration()16 : base() {17 Name = "Symbolic Expression Grammar Value Configuration";18 }19 14 public SymbolicExpressionGrammarValueConfiguration(ISymbolicExpressionGrammar grammar) { 20 15 this.IsOptimizable = true; 21 16 this.ActualValue = new ConstrainedValue(grammar, grammar.GetType(), new ItemSet<IItem> { grammar }, false); 17 this.Name = grammar.ItemName; 22 18 } 23 19 protected SymbolicExpressionGrammarValueConfiguration(SymbolicExpressionGrammarValueConfiguration original, Cloner cloner) -
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ValueConfigurations/NullValueConfiguration.cs
r9823 r9827 7 7 [StorableClass] 8 8 public class NullValueConfiguration : ValueConfiguration { 9 10 9 public NullValueConfiguration() 11 10 : base() { 12 11 ActualValue = new ConstrainedValue(null, null, null, true); 13 12 IsOptimizable = false; 14 Name = "Null ValueConfiguration";13 Name = "NullValueConfiguration"; 15 14 } 16 15 [StorableConstructor] -
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ValueConfigurations/ParameterizedValueConfiguration.cs
r9823 r9827 62 62 [StorableConstructor] 63 63 protected ParameterizedValueConfiguration(bool deserializing) : base(deserializing) { } 64 p ublicParameterizedValueConfiguration()64 protected ParameterizedValueConfiguration() 65 65 : base() { 66 Name = "Parameterized Value Configuration"; 67 ParameterConfigurations = new ItemList<IParameterConfiguration>(); 66 this.ParameterConfigurations = new ItemList<IParameterConfiguration>(); 68 67 } 69 68 public ParameterizedValueConfiguration(IItem value, Type valueDataType, bool discoverValidValues) -
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ValueConfigurations/RangeValueConfiguration.cs
r9823 r9827 25 25 [StorableConstructor] 26 26 protected RangeValueConfiguration(bool deserializing) : base(deserializing) { } 27 public RangeValueConfiguration()28 : base() {29 Name = "Range Value Configuration";30 }31 27 protected RangeValueConfiguration(RangeValueConfiguration original, Cloner cloner) 32 28 : base(original, cloner) { … … 36 32 public RangeValueConfiguration(IItem value, Type valueDataType) 37 33 : base(value, valueDataType) { 34 this.Name = value.ItemName; 38 35 if (actualValue.ValueDataType == typeof(IntValue)) { 39 36 RangeConstraint = new IntValueRange(new IntValue(0), (IntValue)value.Clone(), new IntValue(1)); -
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ValueConfigurations/ValueConfiguration.cs
r6489 r9827 10 10 [StorableClass] 11 11 public abstract class ValueConfiguration : NamedItem, IValueConfiguration { 12 public override bool CanChangeName {13 get { return true; }14 }15 16 public override bool CanChangeDescription {17 get { return true; }18 }19 20 12 [Storable] 21 13 protected bool isOptimizable; … … 85 77 86 78 #region Constructors and Cloning 87 p ublicValueConfiguration(IItem value, Type valueDataType) {79 protected ValueConfiguration(IItem value, Type valueDataType) { 88 80 this.ActualValue = new ConstrainedValue(value, valueDataType, new ItemSet<IItem> { value }, false); 89 81 this.IsOptimizable = true; 82 this.Name = value == null ? "ValueConfiguration" : value.ItemName; 90 83 } 91 84 92 p ublicValueConfiguration() { }85 protected ValueConfiguration() { } 93 86 [StorableConstructor] 94 87 protected ValueConfiguration(bool deserializing) { }
Note: See TracChangeset
for help on using the changeset viewer.