Changeset 7351 for trunk/sources/HeuristicLab.Operators
- Timestamp:
- 01/17/12 23:54:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/3.3/StochasticMultiBranch.cs
r7259 r7351 61 61 } 62 62 63 [StorableHook(HookType.AfterDeserialization)]64 private void AfterDeserializationHook() {65 #region Backwards Compatibility66 if (!Parameters.ContainsKey("SelectedOperator")) {67 Parameters.Add(new LookupParameter<StringValue>("SelectedOperator", "If the TraceSelectedOperator flag is set, the name of the operator is traced in this parameter."));68 SelectedOperatorParameter.Hidden = false;69 }70 if (!Parameters.ContainsKey("TraceSelectedOperator")) {71 Parameters.Add(new ValueParameter<BoolValue>("TraceSelectedOperator", "Indicates, if the selected operator should be traced.", new BoolValue(false)));72 }73 #endregion74 }75 76 63 [StorableConstructor] 77 64 protected StochasticMultiBranch(bool deserializing) : base(deserializing) { } … … 90 77 Parameters.Add(new ValueParameter<BoolValue>("TraceSelectedOperator", "Indicates, if the selected operator should be traced.", new BoolValue(false))); 91 78 SelectedOperatorParameter.Hidden = false; 79 } 80 81 [StorableHook(HookType.AfterDeserialization)] 82 private void AfterDeserialization() { 83 // BackwardsCompatibility3.3 84 #region Backwards compatible code, remove with 3.4 85 if (!Parameters.ContainsKey("SelectedOperator")) { 86 Parameters.Add(new LookupParameter<StringValue>("SelectedOperator", "If the TraceSelectedOperator flag is set, the name of the operator is traced in this parameter.")); 87 SelectedOperatorParameter.Hidden = false; 88 } 89 if (!Parameters.ContainsKey("TraceSelectedOperator")) { 90 Parameters.Add(new ValueParameter<BoolValue>("TraceSelectedOperator", "Indicates, if the selected operator should be traced.", new BoolValue(false))); 91 } 92 #endregion 92 93 } 93 94
Note: See TracChangeset
for help on using the changeset viewer.