Changeset 2917 for trunk/sources/HeuristicLab.Optimization
- Timestamp:
- 03/03/10 06:46:30 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.Optimization/3.3/EngineAlgorithm.cs ΒΆ
r2916 r2917 131 131 132 132 private void InitializeEngine() { 133 var types = ApplicationManager.Manager.GetTypes(typeof(IEngine)); 134 Type t = types.FirstOrDefault(x => x.Name.Equals("SequentialEngine")); 135 if (t == null) t = types.FirstOrDefault(); 136 if (t != null) Engine = (IEngine)Activator.CreateInstance(t); 133 if (ApplicationManager.Manager != null) { 134 var types = ApplicationManager.Manager.GetTypes(typeof(IEngine)); 135 Type t = types.FirstOrDefault(x => x.Name.Equals("SequentialEngine")); 136 if (t == null) t = types.FirstOrDefault(); 137 if (t != null) Engine = (IEngine)Activator.CreateInstance(t); 138 } 137 139 } 138 140
Note: See TracChangeset
for help on using the changeset viewer.