Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/11/13 14:40:04 (12 years ago)
Author:
fschoepp
Message:

#1888:

  • Added an Update / GetExperiment... methods to the controller for updating and querying experiments.
  • The AlgorithmConverter class now properly converts from/to JSON format.
  • Integrated backbone js as MVC provider for JavaScript + jquery.
  • Added experiment.model.js + experiment.view.js + experiment.controller.js containing the MVC impl. for the Experiment pages.
  • Added new methods to the ExperimentController usable by the backbone js model implementation.
  • Added the experiment dialog from HL 3.3.7 (variate experiment parameters). It's capable of variating the algorithm parameters.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OaaS/HeuristicLab.Services.Optimization.Controller/PlaceholderControllerService.cs

    r9227 r9305  
    121121
    122122
    123     public bool SaveExperiment(User user, Experiment experiment) {     
     123    public string SaveExperiment(User user, Experiment experiment) {     
    124124      // make sure all algorithms store their choices aswell
    125125      var scenarioMap = new Dictionary<string, OptimizationScenario>();
     
    146146
    147147      // finally store the experiment
    148       var success = hiveManager.SaveExperiment(user, experiment);
     148      var id = hiveManager.SaveExperiment(user, experiment);
    149149      // 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);
    152152      }
    153       return success;
     153      return id;
    154154    }
    155155
    156156
    157     public IEnumerable<string> GetExperiments(User user) {
    158       return hiveManager.GetExperiments(user);
     157    public IEnumerable<string> GetExperimentNames(User user) {
     158      return hiveManager.GetExperimentNames(user);
    159159    }
    160160
     
    179179
    180180
    181     public bool ScheduleExperiment(User user, string experiment, JobExecutionDetails details) {
    182       var exp = hiveManager.GetExperimentByName(user, experiment);
     181    public bool ScheduleExperiment(User user, string experimentId, JobExecutionDetails details) {
     182      var exp = hiveManager.GetExperimentById(user, experimentId);
    183183      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);
    184193    }
    185194  }
Note: See TracChangeset for help on using the changeset viewer.