1 | @model HeuristicLab.Clients.Hive.WebJobManager.Models.ExperimentContainer
|
---|
2 | @{int randomex = Model.randy.Next(50000);
|
---|
3 | var builder = "[";
|
---|
4 | foreach (var arr in Model.depth)
|
---|
5 | {
|
---|
6 | builder += "[" + String.Join(",", arr) + "],";
|
---|
7 | }
|
---|
8 | builder += "]";
|
---|
9 | }
|
---|
10 | <!-- Partial for displaying a small version of an experiment-->
|
---|
11 | <p class="text-center">
|
---|
12 | <a class="btn btn-danger"
|
---|
13 | data-toggle="collapse"
|
---|
14 | href="#collapseExample@(randomex)"
|
---|
15 | aria-expanded="false"
|
---|
16 | aria-controls="collapseExample@(randomex)"
|
---|
17 | style="margin:10px; margin-bottom:0; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
---|
18 | text-shadow:2px 2px black;">
|
---|
19 | @Model.exp.Name
|
---|
20 | </a>
|
---|
21 |
|
---|
22 | </p>
|
---|
23 | <div class="collapse"
|
---|
24 | id="collapseExample@(randomex)"
|
---|
25 | style="margin-left:10px;margin-right:10px;margin-top:-10px">
|
---|
26 |
|
---|
27 | <img src="~/img/accoladeexp.png"
|
---|
28 | style="width:100%" />
|
---|
29 |
|
---|
30 | <div class="panel panel-danger"
|
---|
31 | style="border-color:#c12e2a!important; border-width:2px!important;
|
---|
32 | box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
---|
33 | text-shadow:2px 2px black">
|
---|
34 |
|
---|
35 | <div class="panel-heading panel-danger text-center">
|
---|
36 | <p class="panel-title">
|
---|
37 | Children: @Model.exp.Optimizers.Count
|
---|
38 | </p>
|
---|
39 | <p>
|
---|
40 | Distribute child tasks
|
---|
41 | <input type="checkbox"
|
---|
42 | checked
|
---|
43 | data-toggle="toggle"
|
---|
44 | data-onstyle="danger"
|
---|
45 | onchange="toggleChild(@builder, @randomex)" />
|
---|
46 |
|
---|
47 |
|
---|
48 | </p>
|
---|
49 | <div class="btn-group"
|
---|
50 | style="text-shadow:none">
|
---|
51 | <button type="button"
|
---|
52 | id="prior@(randomex)"
|
---|
53 | class="btn btn-info dropdown-toggle"
|
---|
54 | data-toggle="dropdown"
|
---|
55 | aria-haspopup="true" aria-expanded="false">
|
---|
56 | Normal <span class="caret"></span>
|
---|
57 | </button>
|
---|
58 | <ul class="dropdown-menu">
|
---|
59 | <li><a onclick="changePriority(@builder,0,@randomex)">Low</a></li>
|
---|
60 | <li><a onclick="changePriority(@builder,1,@randomex)">Normal</a></li>
|
---|
61 | <li><a onclick="changePriority(@builder,2,@randomex)">Urgent</a></li>
|
---|
62 | <li><a onclick="changePriority(@builder,3,@randomex)">Critical</a></li>
|
---|
63 | </ul>
|
---|
64 | </div>
|
---|
65 | </div>
|
---|
66 | <div id="childs@(randomex)">
|
---|
67 | @for (var j = 0; j < Model.exp.Optimizers.Count; j++)
|
---|
68 | {
|
---|
69 | @if (Model.exp.Optimizers[j] is HeuristicLab.Optimization.IAlgorithm)
|
---|
70 | {
|
---|
71 | @Html.Partial("OpenFilePartials/_AlgorithmSmall",
|
---|
72 | new HeuristicLab.Clients.Hive.WebJobManager.Models.AlgorithmContainer(
|
---|
73 | ((HeuristicLab.Optimization.IAlgorithm)Model.exp.Optimizers[j]),
|
---|
74 | Model.depth.ToList(),
|
---|
75 | new int[] { j, 0 },
|
---|
76 | Model.randy))
|
---|
77 |
|
---|
78 | }
|
---|
79 | else if (Model.exp.Optimizers[j] is HeuristicLab.Optimization.BatchRun)
|
---|
80 | {
|
---|
81 | @Html.Partial("OpenFilePartials/_BatchRunSmall",
|
---|
82 | new HeuristicLab.Clients.Hive.WebJobManager.Models.BatchRunContainer(
|
---|
83 | ((HeuristicLab.Optimization.BatchRun)Model.exp.Optimizers[j]),
|
---|
84 | Model.depth.ToList(),
|
---|
85 | new int[] { j, 0 },
|
---|
86 | Model.randy)) ;
|
---|
87 |
|
---|
88 | }
|
---|
89 | else if (Model.exp.Optimizers[j] is HeuristicLab.Optimization.Experiment)
|
---|
90 | {
|
---|
91 | @Html.Partial("OpenFilePartials/_ExperimentSmall",
|
---|
92 | new HeuristicLab.Clients.Hive.WebJobManager.Models.ExperimentContainer(
|
---|
93 | ((HeuristicLab.Optimization.Experiment)Model.exp.Optimizers[j]),
|
---|
94 | Model.depth.ToList(),
|
---|
95 | new int[] { j, 0 },
|
---|
96 | Model.randy)) ;
|
---|
97 |
|
---|
98 | }
|
---|
99 | }
|
---|
100 | </div>
|
---|
101 | </div>
|
---|
102 | </div>
|
---|