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