Changeset 1708
- Timestamp:
- 04/29/09 18:03:17 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/3.3/VariableInjector.cs
r1673 r1708 33 33 public class VariableInjector : OperatorBase { 34 34 35 [Storable] 36 private Dictionary<IVariable, IVariableInfo> variableVariableInfoTable; 37 38 [Storable] 35 private Dictionary<IVariable, IVariableInfo> variableVariableInfoTable; 39 36 private Dictionary<IVariableInfo, IVariable> variableInfoVariableTable; 40 37 … … 114 111 } 115 112 113 [Storable] 114 private KeyValuePair<Dictionary<IVariableInfo, IVariable>, Dictionary<IVariable, IVariableInfo>> MappingPersistence { 115 get { 116 return new KeyValuePair<Dictionary<IVariableInfo, IVariable>, Dictionary<IVariable, IVariableInfo>>( 117 variableInfoVariableTable, variableVariableInfoTable); 118 } 119 set { 120 variableInfoVariableTable = value.Key; 121 variableVariableInfoTable = value.Value; 122 foreach (var pair in variableInfoVariableTable) { 123 pair.Key.ActualNameChanged += new EventHandler(VariableInfo_ActualNameChanged); 124 pair.Value.NameChanged += new EventHandler(Variable_NameChanged); 125 } 126 } 127 } 128 116 129 private void CreateVariableInfo(IVariable variable) { 117 130 IVariableInfo info = new VariableInfo(Guid.NewGuid().ToString(), "Injected variable", variable.Value.GetType(), VariableKind.New);
Note: See TracChangeset
for help on using the changeset viewer.