Changeset 11402
- Timestamp:
- 09/29/14 13:27:07 (10 years ago)
- Location:
- branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Interfaces/IProblemDefinition.cs
r11397 r11402 23 23 namespace HeuristicLab.Problems.Programmable { 24 24 public interface IProblemDefinition { 25 dynamic vars { get; set; }26 void Initialize();27 25 Configuration GetConfiguration(); 28 26 } -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/MultiObjectiveProblemDefinition.cs
r11400 r11402 113 113 114 114 #region Problem definition explicit interface implementations 115 dynamic IProblemDefinition.vars { get; set; }116 117 void IProblemDefinition.Initialize() {118 119 }120 121 115 Configuration IProblemDefinition.GetConfiguration() { 122 116 return Configuration(); -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/ProblemDefinition.cs
r11397 r11402 22 22 namespace HeuristicLab.Problems.Programmable { 23 23 public abstract class ProblemDefinition : IProblemDefinition { 24 public abstract Configuration GetConfiguration(); 25 24 26 public dynamic vars { get; set; } 25 26 27 public abstract void Initialize(); 27 public abstract Configuration GetConfiguration();28 28 } 29 29 } -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/ProblemDefinitionScript.cs
r11397 r11402 83 83 var types = assembly.GetTypes(); 84 84 try { 85 Instance = (IProblemDefinition)Activator.CreateInstance(types.First(x => typeof(IProblemDefinition).IsAssignableFrom(x))); 86 Instance.vars = new Variables(VariableStore); 87 Instance.Initialize(); 85 var inst = (ProblemDefinition)Activator.CreateInstance(types.First(x => typeof(ProblemDefinition).IsAssignableFrom(x))); 86 inst.vars = new Variables(VariableStore); 87 inst.Initialize(); 88 Instance = inst; 88 89 } catch { 89 90 Instance = null; -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/SingleObjectiveProblemDefinition.cs
r11397 r11402 113 113 114 114 #region Problem definition explicit interface implementations 115 dynamic IProblemDefinition.vars { get; set; }116 117 void IProblemDefinition.Initialize() {118 119 }120 121 115 Configuration IProblemDefinition.GetConfiguration() { 122 116 return Configuration();
Note: See TracChangeset
for help on using the changeset viewer.