- Timestamp:
- 01/15/13 15:50:53 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS/HeuristicLab.Services.Optimization.Controller/HL/HLMapper.cs
r8958 r9166 11 11 namespace HeuristicLab.Services.Optimization.ControllerService { 12 12 public interface IScenarioMapper { 13 void MapScenario(OptimizationScenario scenario, IAlgorithm algorithm);13 void MapScenario(OptimizationScenario scenario, out IAlgorithm algorithm); 14 14 } 15 15 … … 18 18 var dv = parameter.Value as DecimalValue; 19 19 return new DoubleValue(dv.Value); 20 } 21 22 public static T Create<T>(Parameter typeParameter) { 23 var type = Type.GetType((typeParameter.Value as TypeValue).Value); 24 return (T)Activator.CreateInstance(type, null); 20 25 } 21 26
Note: See TracChangeset
for help on using the changeset viewer.