Changeset 13691 for trunk/sources/HeuristicLab.Clients.OKB/3.3
- Timestamp:
- 03/11/16 15:29:05 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.OKB/3.3
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.OKB/3.3/HeuristicLab.Clients.OKB-3.3.csproj
r13534 r13691 114 114 <Compile Include="Administration\ServiceClient\ProblemClass.cs" /> 115 115 <Compile Include="OKBRoles.cs" /> 116 <Compile Include="RunCreation\OKBSolution.cs" /> 116 117 <Compile Include="Plugin.cs" /> 117 118 <Compile Include="Query\QueryClient.cs" /> … … 156 157 <Compile Include="RunCreation\OKBProblem.cs" /> 157 158 <Compile Include="RunCreation\OKBRun.cs" /> 159 <Compile Include="RunCreation\SingleObjectiveOKBSolution.cs" /> 158 160 <Compile Include="RunCreation\RunCreationClient.cs" /> 159 161 <Compile Include="RunCreation\ServiceClient\Algorithm.cs" /> -
trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation/OKBProblem.cs
r13684 r13691 29 29 using System.Drawing; 30 30 using System.IO; 31 using System.Linq; 31 32 32 33 namespace HeuristicLab.Clients.OKB.RunCreation { … … 63 64 OnOperatorsChanged(); 64 65 OnReset(); 66 67 solutions.Clear(); 65 68 } 66 69 } 67 70 } 71 } 72 73 [Storable] 74 private ItemList<OKBSolution> solutions; 75 public ItemList<OKBSolution> Solutions { 76 get { return solutions; } 68 77 } 69 78 … … 135 144 problemId = original.problemId; 136 145 problem = cloner.Clone(original.problem); 146 solutions = cloner.Clone(original.solutions); 137 147 RegisterProblemEvents(); 138 148 } … … 142 152 problemId = -1; 143 153 problem = initialProblem; 154 solutions = new ItemList<OKBSolution>(); 144 155 RegisterProblemEvents(); 145 156 } … … 159 170 } 160 171 172 public void RefreshSolutions() { 173 Solutions.Clear(); 174 if (ProblemId != -1) { 175 Solutions.AddRange(RunCreationClient.Instance.GetSolutions(ProblemId).Select(OKBSolution.Convert)); 176 } 177 } 178 161 179 public IProblem CloneProblem() { 162 180 return (IProblem)Problem.Clone();
Note: See TracChangeset
for help on using the changeset viewer.