Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/24/13 13:40:43 (11 years ago)
Author:
fschoepp
Message:

#1888:

  • Added visual extensions (dynamic JavaScript) which will be used to render additional result parameters specific to scenarios (e. g. create a graphical representation of a TSP).
  • Added relationship between jobs and experiments (otherwise, it's not possible to get the job's experiment).
  • Updated Admin page to allow removal/addition of visual extensions.
  • Added back-end logic to store/retrieve/delete visual extensions.
  • Added visual extension functionality to the JavaScript views/controllers (job.*.js).
  • Added tsp.js which is a visual extension for the "Genetic Algorithm - TSP" scenario. It adds a graphical representation of the TSP (just like the C# version does) to the results.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OaaS/HeuristicLab.Services.Optimization.Web/Controllers/JobController.cs

    r9362 r9395  
    5959
    6060      [HttpGet]
    61       public ActionResult VisualExtension(string algorithmId) {
    62         var script = ControllerService.withControllerService<string>((service) => {
     61      public JsonResult VisualExtension(string scenarioId) {
     62        var extension = ControllerService.withControllerService<VisualExtension>((service) => {
    6363          User u = new User() { Username = Membership.GetUser().UserName, Password = Session["pw"] as string };
    64           return service.GetVisualExtension(algorithmId);
     64          return service.GetVisualExtension(scenarioId);
    6565        });
    66         return Content(script, "text/javascript", System.Text.Encoding.UTF8);
     66        return Json(extension, JsonRequestBehavior.AllowGet);
    6767      }
    6868    }
Note: See TracChangeset for help on using the changeset viewer.