Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFilePartials/_Experiment.cshtml @ 13834

Last change on this file since 13834 was 13827, checked in by jlodewyc, 9 years ago

#2582 Parameter changing busy, save file, download file and email on pass reset

File size: 2.6 KB
Line 
1@model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.FileOpeningViewModel
2@{System.Random randomizer = new Random();
3    int randy = randomizer.Next(50000); }
4
5<!-- Partial for displaying an experiment file-->
6<div style="margin-left:20px;margin-right:20px; ">
7    <div class="row" style="text-align:center">
8        @Model.message
9    </div>
10    <div class="row" style="text-align:center">
11        <h1
12            >
13            <span class="label label-danger"
14                  style="text-shadow:2px 2px black;">
15                Experiment: @Model.SelectedTask.ItemTask.Name
16            </span>
17        </h1>
18
19    </div>
20    <h4 id="tasks">
21        Children: @Model.SelectedExperiment.Optimizers.Count
22    </h4>
23    <p class="text-center">
24        Distribute child tasks
25        <input type="checkbox" checked data-toggle="toggle" data-onstyle="danger"
26               onchange="toggleChild([], @randy)" />
27       
28    </p>
29    <div id="childs@(randy)">
30        @for (var i = 0; i < Model.SelectedExperiment.Optimizers.Count; i++)
31        {
32            @if (Model.SelectedExperiment.Optimizers[i] is HeuristicLab.Optimization.IAlgorithm)
33            {
34                @Html.Partial("OpenFilePartials/_AlgorithmSmall",
35                    new HeuristicLab.Clients.Hive.WebJobManager.Models.AlgorithmContainer(
36                    ((HeuristicLab.Optimization.IAlgorithm)Model.SelectedExperiment.Optimizers[i]),
37                    new List<int[]>(),
38                    new int[] { i, 0 },
39                    randomizer));
40
41            }
42            else if (Model.SelectedExperiment.Optimizers[i] is HeuristicLab.Optimization.BatchRun)
43            {
44                @Html.Partial("OpenFilePartials/_BatchRunSmall",
45                    new HeuristicLab.Clients.Hive.WebJobManager.Models.BatchRunContainer(
46                    ((HeuristicLab.Optimization.BatchRun)Model.SelectedExperiment.Optimizers[i]),
47                    new List<int[]>(),
48                    new int[] { i, 0 },
49                    randomizer)) ;
50
51            }
52            else if (Model.SelectedExperiment.Optimizers[i] is HeuristicLab.Optimization.Experiment)
53            {
54                @Html.Partial("OpenFilePartials/_ExperimentSmall",
55                    new HeuristicLab.Clients.Hive.WebJobManager.Models.ExperimentContainer(
56                    ((HeuristicLab.Optimization.Experiment)Model.SelectedExperiment.Optimizers[i]),
57                    new List<int[]>(),
58                    new int[] { i, 0 },
59                    randomizer)) ;
60
61            }
62
63        }
64    </div>
65</div>
Note: See TracBrowser for help on using the repository browser.