Changeset 8535 for branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/SymbolicExpressionGrammar
- Timestamp:
- 08/29/12 09:22:21 (12 years ago)
- Location:
- branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/SymbolicExpressionGrammar
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/SymbolicExpressionGrammar/SymbolValueConfiguration.cs
r8517 r8535 43 43 [StorableConstructor] 44 44 protected SymbolValueConfiguration(bool deserializing) : base(deserializing) { } 45 protected SymbolValueConfiguration(SymbolValueConfiguration original, Cloner cloner) 46 : base(original, cloner) { 47 RegisterInitialFrequencyEvents(); 48 this.parentOptimizable = cloner.Clone(original.parentOptimizable); 49 } 45 50 public SymbolValueConfiguration(Symbol symbol) 46 51 : base() { … … 50 55 this.ActualValue = new ConstrainedValue(symbol, symbol.GetType(), new ItemSet<IItem> { symbol }, false); 51 56 } 52 protected SymbolValueConfiguration(SymbolValueConfiguration original, Cloner cloner)53 : base(original, cloner) {57 [StorableHook(HookType.AfterDeserialization)] 58 private void AfterDeserialization() { 54 59 RegisterInitialFrequencyEvents(); 55 this.parentOptimizable = cloner.Clone(original.parentOptimizable);56 60 } 57 61 public override IDeepCloneable Clone(Cloner cloner) { 58 62 return new SymbolValueConfiguration(this, cloner); 59 }60 [StorableHook(HookType.AfterDeserialization)]61 private void AfterDeserialization() {62 RegisterInitialFrequencyEvents();63 63 } 64 64 #endregion -
branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/SymbolicExpressionGrammar/SymbolicExpressionGrammarValueConfiguration.cs
r8517 r8535 29 29 [StorableClass] 30 30 public class SymbolicExpressionGrammarValueConfiguration : ParameterizedValueConfiguration { 31 32 31 #region Constructors and Cloning 33 32 [StorableConstructor] 34 33 protected SymbolicExpressionGrammarValueConfiguration(bool deserializing) : base(deserializing) { } 34 protected SymbolicExpressionGrammarValueConfiguration(SymbolicExpressionGrammarValueConfiguration original, Cloner cloner) : base(original, cloner) { } 35 35 public SymbolicExpressionGrammarValueConfiguration() : base() { } 36 public SymbolicExpressionGrammarValueConfiguration(ISymbolicExpressionGrammar grammar) { 36 public SymbolicExpressionGrammarValueConfiguration(ISymbolicExpressionGrammar grammar) 37 : base() { 37 38 this.IsOptimizable = true; 38 39 this.ActualValue = new ConstrainedValue(grammar, grammar.GetType(), new ItemSet<IItem> { grammar }, false); 39 }40 protected SymbolicExpressionGrammarValueConfiguration(SymbolicExpressionGrammarValueConfiguration original, Cloner cloner)41 : base(original, cloner) {42 40 } 43 41 public override IDeepCloneable Clone(Cloner cloner) {
Note: See TracChangeset
for help on using the changeset viewer.