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