Free cookie consent management tool by TermsFeed Policy Generator

source: branches/1888_OaaS/HeuristicLab.Services.Optimization.Web/Models/AdminModels.cs

Last change on this file was 9395, checked in by fschoepp, 12 years ago

#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 size: 1.3 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel.DataAnnotations;
4using System.Globalization;
5using System.Web.Mvc;
6using System.Web.Security;
7using System.Web;
8
9namespace HeuristicLab.Services.Optimization.Web.Models {
10  public class UploadScenario {
11    private HttpPostedFileBase scenarioMapper;
12
13    public HttpPostedFileBase ScenarioMapper {
14      get { return scenarioMapper; }
15      set { scenarioMapper = value; }
16    }
17
18    private HttpPostedFileBase scenarioXml;
19
20    public HttpPostedFileBase ScenarioXml {
21      get { return scenarioXml; }
22      set { scenarioXml = value; }
23    }
24
25    private HttpPostedFileBase scenarioJs;
26
27    public HttpPostedFileBase ScenarioJs {
28      get { return scenarioJs; }
29      set { scenarioJs = value; }
30    }
31  }
32
33  public class ScenarioModel {
34    public string Scenario { get; set; }
35    public bool Exists { get; set; }
36  }
37
38  public class UploadVisualExtension {
39
40    private string scenarioId;
41
42    public string ScenarioId {
43      get { return scenarioId; }
44      set { scenarioId = value; }
45    }
46
47
48    private HttpPostedFileBase scenarioJs;
49
50    public HttpPostedFileBase ScenarioJs {
51      get { return scenarioJs; }
52      set { scenarioJs = value; }
53    }
54
55  }
56}
Note: See TracBrowser for help on using the repository browser.