Last change
on this file since 15071 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
|
Rev | Line | |
---|
[9215] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Web;
|
---|
[9227] | 5 | using HeuristicLab.Services.Optimization.ControllerService.Model;
|
---|
[9215] | 6 |
|
---|
| 7 | namespace 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 |
|
---|
[9227] | 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 |
|
---|
[9215] | 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.