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