[13689] | 1 | @model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.FileOpeningViewModel
|
---|
[13696] | 2 | @{System.Random randomizer = new Random();
|
---|
[13827] | 3 | int randy = randomizer.Next(50000); }
|
---|
| 4 |
|
---|
| 5 | <!-- Partial for displaying a Bach run file -->
|
---|
| 6 |
|
---|
[13689] | 7 | <div style="margin-left:20px;margin-right:20px">
|
---|
| 8 | <div class="row" style="text-align:center">
|
---|
| 9 | @Model.message
|
---|
| 10 | </div>
|
---|
[13733] | 11 | <div class="row"
|
---|
| 12 | style="text-align:center">
|
---|
[13841] | 13 | <h1>
|
---|
[13733] | 14 | <span class="label label-warning "
|
---|
| 15 | style="text-shadow:2px 2px black;">
|
---|
[13841] | 16 | Batch: <span id="nameCarrier@(randy)">@Model.SelectedBatchRun.Name</span>
|
---|
[13733] | 17 | </span>
|
---|
[13841] | 18 |
|
---|
[13689] | 19 | </h1>
|
---|
[13841] | 20 | <input type="text"
|
---|
| 21 | class="form-control"
|
---|
| 22 | style="width:50%;display:initial; background-color:transparent;text-align:center"
|
---|
| 23 | onchange="changeName([],this.value,@randy)"
|
---|
| 24 | value="@Model.SelectedTask.ItemTask.Name" />
|
---|
[13689] | 25 | </div>
|
---|
[13733] | 26 | <h4 id="tasks">
|
---|
[13841] | 27 | Repeats:
|
---|
| 28 | <input type="number"
|
---|
| 29 | class="form-control"
|
---|
| 30 | style="width:80px;display:initial"
|
---|
| 31 | min="1"
|
---|
| 32 | value="@Model.SelectedBatchRun.Repetitions"
|
---|
| 33 | onchange="changeRepit([],this.value,@randy)" />
|
---|
| 34 | x
|
---|
[13712] | 35 |
|
---|
[13696] | 36 | </h4>
|
---|
[13712] | 37 | <p class="text-center">
|
---|
[13735] | 38 | Distribute child tasks
|
---|
[13733] | 39 | <input type="checkbox"
|
---|
| 40 | checked
|
---|
| 41 | data-toggle="toggle"
|
---|
| 42 | data-onstyle="warning"
|
---|
[13712] | 43 | onchange="toggleChild([], @randy)" />
|
---|
[13841] | 44 |
|
---|
[13712] | 45 | </p>
|
---|
[13696] | 46 | <div id="childs@(randy)">
|
---|
| 47 | @for (var k = 0; k < Model.SelectedBatchRun.Repetitions; k++)
|
---|
| 48 | {
|
---|
| 49 | @if (Model.SelectedBatchRun.Optimizer is HeuristicLab.Optimization.IAlgorithm)
|
---|
| 50 | {
|
---|
| 51 | @Html.Partial("OpenFilePartials/_AlgorithmSmall",
|
---|
| 52 | new HeuristicLab.Clients.Hive.WebJobManager.Models.AlgorithmContainer(
|
---|
| 53 | ((HeuristicLab.Optimization.IAlgorithm)Model.SelectedBatchRun.Optimizer),
|
---|
[13712] | 54 | new List<int[]>(),
|
---|
| 55 | new int[] { 0, k },
|
---|
[13696] | 56 | randomizer));
|
---|
[13689] | 57 |
|
---|
[13696] | 58 | }
|
---|
| 59 | else if (Model.SelectedBatchRun.Optimizer is HeuristicLab.Optimization.BatchRun)
|
---|
| 60 | {
|
---|
| 61 | @Html.Partial("OpenFilePartials/_BatchRunSmall",
|
---|
| 62 | new HeuristicLab.Clients.Hive.WebJobManager.Models.BatchRunContainer(
|
---|
| 63 | ((HeuristicLab.Optimization.BatchRun)Model.SelectedBatchRun.Optimizer),
|
---|
| 64 | new List<int[]>(),
|
---|
| 65 | new int[] { 0, k },
|
---|
| 66 | randomizer));
|
---|
[13689] | 67 |
|
---|
[13696] | 68 | }
|
---|
| 69 | else if (Model.SelectedBatchRun.Optimizer is HeuristicLab.Optimization.Experiment)
|
---|
| 70 | {
|
---|
| 71 | @Html.Partial("OpenFilePartials/_ExperimentSmall",
|
---|
| 72 | new HeuristicLab.Clients.Hive.WebJobManager.Models.ExperimentContainer(
|
---|
| 73 | ((HeuristicLab.Optimization.Experiment)Model.SelectedBatchRun.Optimizer),
|
---|
| 74 | new List<int[]>(),
|
---|
| 75 | new int[] { 0, k },
|
---|
| 76 | randomizer));
|
---|
| 77 |
|
---|
| 78 | }
|
---|
[13689] | 79 | }
|
---|
[13696] | 80 | </div>
|
---|
[13689] | 81 | </div>
|
---|