Changeset 2933
- Timestamp:
- 03/05/10 06:38:53 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.SGA/3.3/Tests/UnitTest.cs
r2917 r2933 93 93 } 94 94 95 void sga_ExceptionOccurred(object sender, EventArgs<Exception> e) {95 private void sga_ExceptionOccurred(object sender, EventArgs<Exception> e) { 96 96 ex = e.Value; 97 97 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/EngineAlgorithmView.cs
r2917 r2933 118 118 if (t == null) 119 119 Content.Engine = null; 120 else 120 else if ((Content.Engine == null) || (Content.Engine.GetType() != t)) 121 121 Content.Engine = (IEngine)Activator.CreateInstance(t); 122 122 } -
trunk/sources/HeuristicLab.Optimization/3.3/Algorithm.cs
r2932 r2933 43 43 private IProblem problem; 44 44 [Storable] 45 private IProblem ProblemPersistence { 46 get { return problem; } 47 set { 48 if (problem != null) DeregisterProblemEvents(); 49 problem = value; 50 if (problem != null) RegisterProblemEvents(); 51 } 52 } 45 53 public IProblem Problem { 46 54 get { return problem; } -
trunk/sources/HeuristicLab.Optimization/3.3/EngineAlgorithm.cs
r2932 r2933 36 36 private OperatorGraph operatorGraph; 37 37 [Storable] 38 private OperatorGraph OperatorGraphPersistence { 39 get { return operatorGraph; } 40 set { 41 if (operatorGraph != null) operatorGraph.InitialOperatorChanged -= new EventHandler(OperatorGraph_InitialOperatorChanged); 42 operatorGraph = value; 43 if (operatorGraph != null) operatorGraph.InitialOperatorChanged += new EventHandler(OperatorGraph_InitialOperatorChanged); 44 } 45 } 38 46 protected OperatorGraph OperatorGraph { 39 47 get { return operatorGraph; } … … 58 66 private IEngine engine; 59 67 [Storable] 68 private IEngine EnginePersistence { 69 get { return engine; } 70 set { 71 if (engine != null) DeregisterEngineEvents(); 72 engine = value; 73 if (engine != null) RegisterEngineEvents(); 74 } 75 } 60 76 public IEngine Engine { 61 77 get { return engine; }
Note: See TracChangeset
for help on using the changeset viewer.