Changeset 9305 for branches/OaaS/HeuristicLab.Services.Optimization.Controller/PlaceholderControllerService.cs
- Timestamp:
- 03/11/13 14:40:04 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS/HeuristicLab.Services.Optimization.Controller/PlaceholderControllerService.cs
r9227 r9305 121 121 122 122 123 public boolSaveExperiment(User user, Experiment experiment) {123 public string SaveExperiment(User user, Experiment experiment) { 124 124 // make sure all algorithms store their choices aswell 125 125 var scenarioMap = new Dictionary<string, OptimizationScenario>(); … … 146 146 147 147 // finally store the experiment 148 var success= hiveManager.SaveExperiment(user, experiment);148 var id = hiveManager.SaveExperiment(user, experiment); 149 149 // if it has been stored, and jobdetails are present, run the job! 150 if ( success&& experiment.JobDetails != null) {151 return ScheduleExperiment(user, experiment.Name, experiment.JobDetails);150 if (id != null && experiment.JobDetails != null) { 151 ScheduleExperiment(user, experiment.Id, experiment.JobDetails); 152 152 } 153 return success;153 return id; 154 154 } 155 155 156 156 157 public IEnumerable<string> GetExperiment s(User user) {158 return hiveManager.GetExperiment s(user);157 public IEnumerable<string> GetExperimentNames(User user) { 158 return hiveManager.GetExperimentNames(user); 159 159 } 160 160 … … 179 179 180 180 181 public bool ScheduleExperiment(User user, string experiment , JobExecutionDetails details) {182 var exp = hiveManager.GetExperimentBy Name(user, experiment);181 public bool ScheduleExperiment(User user, string experimentId, JobExecutionDetails details) { 182 var exp = hiveManager.GetExperimentById(user, experimentId); 183 183 return hiveManager.DispatchExperiment(user, exp, details); 184 } 185 186 187 public IEnumerable<Experiment> GetExperiments(User user) { 188 return hiveManager.GetExperiments(user); 189 } 190 191 public Experiment GetExperimentById(User u, string nodeId) { 192 return hiveManager.GetExperimentById(u, nodeId); 184 193 } 185 194 }
Note: See TracChangeset
for help on using the changeset viewer.