Changeset 1727


Ignore:
Timestamp:
04/30/09 15:26:19 (12 years ago)
Author:
epitzer
Message:

Register event listeners during deserialization. (#603)

Location:
trunk/sources
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/3.3/OperatorBase.cs

    r1667 r1727  
    9393      get { return myVariableInfos.Values; }
    9494    }
    95 
    96     [Storable]
     95   
    9796    private Dictionary<string, IVariable> myVariables;
    98     /// <inheritdoc/>
     97    /// <inheritdoc/>   
    9998    public virtual ICollection<IVariable> Variables {
    10099      get { return myVariables.Values; }
     100    }
     101
     102    [Storable(Name="Variables")]
     103    private List<IVariable> VariablePersistence {
     104      get { return new List<IVariable>(myVariables.Values); }
     105      set {
     106        foreach (IVariable var in value) {
     107          AddVariable(var);
     108        }
     109      }
    101110    }
    102111
  • trunk/sources/HeuristicLab.Core/3.3/Scope.cs

    r1667 r1727  
    3232  public class Scope : ItemBase, IScope {
    3333
     34    [Storable]
    3435    private IScope parent;
    3536
     
    4243      get { return myName; }
    4344    }
    44 
    45     [Storable]
     45   
    4646    private IDictionary<string, IVariable> myVariables;
    47     /// <inheritdoc/>
     47    /// <inheritdoc/>   
    4848    public ICollection<IVariable> Variables {
    4949      get { return myVariables.Values; }
    5050    }
    5151
     52    [Storable(Name="Variables")]
     53    private List<IVariable> VariablePersistence {
     54      get { return new List<IVariable>(myVariables.Values); }
     55      set {
     56        foreach (IVariable var in value) {
     57          AddVariable(var);
     58        }
     59      }
     60    }
     61   
    5262    [Storable]
    5363    private IDictionary<string, string> myAliases;
  • trunk/sources/HeuristicLab.Operators/3.3/VariableInjector.cs

    r1708 r1727  
    112112
    113113    [Storable]
    114     private KeyValuePair<Dictionary<IVariableInfo, IVariable>, Dictionary<IVariable, IVariableInfo>> MappingPersistence {
     114    private KeyValuePair<Dictionary<IVariableInfo, IVariable>, Dictionary<IVariable, IVariableInfo>> VariableMappingPersistence {
    115115      get {
    116116        return new KeyValuePair<Dictionary<IVariableInfo, IVariable>, Dictionary<IVariable, IVariableInfo>>(
Note: See TracChangeset for help on using the changeset viewer.