[13696] | 1 | @model HeuristicLab.Clients.Hive.WebJobManager.Models.ExperimentContainer
|
---|
[13827] | 2 | @{int randomex = Model.randy.Next(50000);
|
---|
[13712] | 3 | var builder = "[";
|
---|
| 4 | foreach (var arr in Model.depth)
|
---|
| 5 | {
|
---|
| 6 | builder += "[" + String.Join(",", arr) + "],";
|
---|
| 7 | }
|
---|
| 8 | builder += "]";
|
---|
| 9 | }
|
---|
[13827] | 10 | <!-- Partial for displaying a small version of an experiment-->
|
---|
[13696] | 11 | <p class="text-center">
|
---|
| 12 | <a class="btn btn-danger"
|
---|
| 13 | data-toggle="collapse"
|
---|
[13712] | 14 | href="#collapseExample@(randomex)"
|
---|
[13696] | 15 | aria-expanded="false"
|
---|
[13841] | 16 | id="nameCarrier@(randomex)"
|
---|
[13733] | 17 | aria-controls="collapseExample@(randomex)"
|
---|
[13827] | 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);
|
---|
[13733] | 19 | text-shadow:2px 2px black;">
|
---|
[13696] | 20 | @Model.exp.Name
|
---|
| 21 | </a>
|
---|
| 22 |
|
---|
| 23 | </p>
|
---|
[13733] | 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 |
|
---|
[13696] | 36 | <div class="panel-heading panel-danger text-center">
|
---|
[13841] | 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>
|
---|
[13733] | 44 | <p class="panel-title">
|
---|
| 45 | Children: @Model.exp.Optimizers.Count
|
---|
| 46 | </p>
|
---|
[13712] | 47 | <p>
|
---|
[13735] | 48 | Distribute child tasks
|
---|
[13733] | 49 | <input type="checkbox"
|
---|
| 50 | checked
|
---|
| 51 | data-toggle="toggle"
|
---|
| 52 | data-onstyle="danger"
|
---|
[13712] | 53 | onchange="toggleChild(@builder, @randomex)" />
|
---|
[13735] | 54 |
|
---|
| 55 |
|
---|
[13712] | 56 | </p>
|
---|
[13733] | 57 | <div class="btn-group"
|
---|
| 58 | style="text-shadow:none">
|
---|
[13712] | 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>
|
---|
[13696] | 73 | </div>
|
---|
[13712] | 74 | <div id="childs@(randomex)">
|
---|
| 75 | @for (var j = 0; j < Model.exp.Optimizers.Count; j++)
|
---|
[13696] | 76 | {
|
---|
[13712] | 77 | @if (Model.exp.Optimizers[j] is HeuristicLab.Optimization.IAlgorithm)
|
---|
| 78 | {
|
---|
| 79 | @Html.Partial("OpenFilePartials/_AlgorithmSmall",
|
---|
[13696] | 80 | new HeuristicLab.Clients.Hive.WebJobManager.Models.AlgorithmContainer(
|
---|
[13712] | 81 | ((HeuristicLab.Optimization.IAlgorithm)Model.exp.Optimizers[j]),
|
---|
| 82 | Model.depth.ToList(),
|
---|
| 83 | new int[] { j, 0 },
|
---|
| 84 | Model.randy))
|
---|
[13696] | 85 |
|
---|
[13712] | 86 | }
|
---|
| 87 | else if (Model.exp.Optimizers[j] is HeuristicLab.Optimization.BatchRun)
|
---|
| 88 | {
|
---|
| 89 | @Html.Partial("OpenFilePartials/_BatchRunSmall",
|
---|
[13696] | 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 |
|
---|
[13712] | 96 | }
|
---|
| 97 | else if (Model.exp.Optimizers[j] is HeuristicLab.Optimization.Experiment)
|
---|
| 98 | {
|
---|
| 99 | @Html.Partial("OpenFilePartials/_ExperimentSmall",
|
---|
[13696] | 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 |
|
---|
[13712] | 106 | }
|
---|
[13696] | 107 | }
|
---|
[13712] | 108 | </div>
|
---|
[13696] | 109 | </div>
|
---|
| 110 | </div>
|
---|