Changeset 11397 for branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/ProblemDefinitionScript.cs
- Timestamp:
- 09/28/14 09:18:30 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/ProblemDefinitionScript.cs
r11393 r11397 34 34 protected bool SuppressEvents { get; set; } 35 35 36 [Storable] 37 private VariableStore variableStore; 38 public VariableStore VariableStore { 39 get { return variableStore; } 40 } 41 36 42 [StorableConstructor] 37 43 protected ProblemDefinitionScript(bool deserializing) : base(deserializing) { } 38 44 protected ProblemDefinitionScript(ProblemDefinitionScript original, Cloner cloner) 39 : base(original, cloner) { } 40 public ProblemDefinitionScript() { } 45 : base(original, cloner) { 46 variableStore = cloner.Clone(original.variableStore); 47 } 48 protected ProblemDefinitionScript() { 49 variableStore = new VariableStore(); 50 } 41 51 42 52 private volatile IProblemDefinition instance; … … 74 84 try { 75 85 Instance = (IProblemDefinition)Activator.CreateInstance(types.First(x => typeof(IProblemDefinition).IsAssignableFrom(x))); 86 Instance.vars = new Variables(VariableStore); 87 Instance.Initialize(); 76 88 } catch { 77 89 Instance = null;
Note: See TracChangeset
for help on using the changeset viewer.