Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/11/13 10:15:52 (11 years ago)
Author:
fschoepp
Message:

#1888:

  • Janitor is now working as expected in Windows Azure
  • Added basic support for experiments (draggable experiments)
  • Added methods to save/read experiments from TableStorage
  • The job status can now be retrieved by using the GetTasks/GetTaskData methods
  • Added a class to convert JSON-objects to Algorithm instances
  • Web page: Added experiment button to navigation
File:
1 edited

Legend:

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

    r9166 r9215  
    131131    }
    132132
    133     public void DispatchScenario(Model.User user, Model.OptimizationScenario scenario, JobExecutionDetails details) {
    134       // does nothign
     133    public string DispatchScenario(Model.User user, Model.OptimizationScenario scenario, JobExecutionDetails details) {
     134      // does nothing
     135      return "guid";
    135136    }
    136137
     
    144145
    145146
    146     public void DeleteJob(User user, string id) {
     147    public bool DeleteJob(User user, string id) {
    147148      jobs.RemoveAll(j => j.Id == id);
     149      return true;
    148150    }
    149151
     
    199201     
    200202      // insert into table & blob store
    201       var scenDao = dal.CreateScenarioDao();
    202       var blobDao = dal.CreateBlobDao();
     203      var scenDao = dal.ScenarioDao;
     204      var blobDao = dal.BlobDao;
    203205     
    204206      Guid scenarioXmlGuid = Guid.NewGuid();
     
    225227    public bool DeleteScenario(User user, string scenarioName) {
    226228      // delete from table & blob store
    227       var scenarioDao = dal.CreateScenarioDao();
    228       var blobDao = dal.CreateBlobDao();
     229      var scenarioDao = dal.ScenarioDao;
     230      var blobDao = dal.BlobDao;
    229231
    230232      var entity = scenarioDao.FindByName(scenarioName);
     
    237239      return true;
    238240    }
     241
     242
     243    public bool SaveExperiment(User user, Model.Experiment experiment) {
     244      throw new NotImplementedException();
     245    }
     246
     247
     248    public IEnumerable<string> GetExperiments(User user) {
     249      throw new NotImplementedException();
     250    }
     251
     252
     253    public bool DeleteExperiment(User user, string experiment) {
     254      throw new NotImplementedException();
     255    }
     256
     257
     258    public Model.Task GetTaskData(User u, string jobId, string taskId) {
     259      throw new NotImplementedException();
     260    }
     261
     262    public Model.Job GetTasks(User u, string jobId) {
     263      throw new NotImplementedException();
     264    }
    239265  }
    240266}
Note: See TracChangeset for help on using the changeset viewer.