Free cookie consent management tool by TermsFeed Policy Generator

source: branches/1888_OaaS/HeuristicLab.Services.Optimization.Web/Models/ExperimentModel.cs @ 16115

Last change on this file since 16115 was 9227, checked in by fschoepp, 12 years ago

#1888:

  • Experiments will be saved as JSON elements within the blob store.
  • Added simple model and JSON converters.
  • Backend stores and runs experiments.
  • Updated interfaces to save/read experiments.
  • Added a binding to automatically map incoming JSON ajax requests to experiment models.
  • Added the javascript DatatypeMapper to map parameter inputs to the right html elements and vice versa.
  • Added smartwizard to generate Wizards for creating new experiments (New.cshtml).
File size: 1.2 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Web;
5using HeuristicLab.Services.Optimization.ControllerService.Model;
6
7namespace HeuristicLab.Services.Optimization.Web.Models {
8  public class Node {
9    public string title { get; set; }
10    public List<Node> children { get; set; }
11
12    public string GetTitle { get { return title; } }
13    public List<Node> GetChildren { get { return children; } }
14  }
15
16  public class ExperimentModel {
17    public Node Experiment { get; set; }
18    public string Name { get; set; }
19  }
20
21  public class GetParametersModel {
22    public string Type { get; set; }
23    public Algorithm Algorithm { get; set; }
24    public IList<string> Subnames { get; set; }
25  }
26
27  public class ExperimentViewModel {
28    private IList<string> scenarios;
29
30    public IList<string> Scenarios {
31      get { return scenarios; }
32      set { scenarios = value; }
33    }
34
35    private IList<string> experiments;
36
37    public IList<string> Experiments {
38      get { return experiments; }
39      set { experiments = value; }
40    }
41
42    public ExperimentViewModel() {
43      experiments = new List<string>();
44      scenarios = new List<string>();
45    }
46
47  }
48}
Note: See TracBrowser for help on using the repository browser.