Changeset 13693 for trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation
- Timestamp:
- 03/11/16 16:40:23 (8 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation/OKBProblem.cs
r13691 r13693 174 174 if (ProblemId != -1) { 175 175 Solutions.AddRange(RunCreationClient.Instance.GetSolutions(ProblemId).Select(OKBSolution.Convert)); 176 foreach (var sol in Solutions) { 177 sol.DownloadData(); 178 } 176 179 } 177 180 } -
trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation/OKBSolution.cs
r13691 r13693 73 73 74 74 public abstract void Download(long solutionId); 75 public abstract void DownloadData(); 75 76 76 77 public abstract void Upload(); -
trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation/SingleObjectiveOKBSolution.cs
r13691 r13693 75 75 } 76 76 77 public override void DownloadData() { 78 using (var stream = new MemoryStream(RunCreationClient.Instance.GetSolutionData(SolutionId))) { 79 Solution = XmlParser.Deserialize<IItem>(stream); 80 } 81 } 82 77 83 public override void Upload() { 78 84 if (SolutionId != -1) throw new InvalidOperationException("Solution exists already.");
Note: See TracChangeset
for help on using the changeset viewer.