[13689] | 1 | @model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.FileOpeningViewModel
|
---|
[13712] | 2 | @{System.Random randomizer = new Random();
|
---|
[13827] | 3 | int randy = randomizer.Next(50000); }
|
---|
[13733] | 4 |
|
---|
[13827] | 5 | <!-- Partial for displaying an experiment file-->
|
---|
[13733] | 6 | <div style="margin-left:20px;margin-right:20px; ">
|
---|
[13689] | 7 | <div class="row" style="text-align:center">
|
---|
| 8 | @Model.message
|
---|
| 9 | </div>
|
---|
[13733] | 10 | <div class="row" style="text-align:center">
|
---|
[13735] | 11 | <h1
|
---|
[13754] | 12 | >
|
---|
[13733] | 13 | <span class="label label-danger"
|
---|
| 14 | style="text-shadow:2px 2px black;">
|
---|
| 15 | Experiment: @Model.SelectedTask.ItemTask.Name
|
---|
| 16 | </span>
|
---|
[13689] | 17 | </h1>
|
---|
[13712] | 18 |
|
---|
[13689] | 19 | </div>
|
---|
[13733] | 20 | <h4 id="tasks">
|
---|
[13696] | 21 | Children: @Model.SelectedExperiment.Optimizers.Count
|
---|
| 22 | </h4>
|
---|
[13712] | 23 | <p class="text-center">
|
---|
[13735] | 24 | Distribute child tasks
|
---|
[13712] | 25 | <input type="checkbox" checked data-toggle="toggle" data-onstyle="danger"
|
---|
| 26 | onchange="toggleChild([], @randy)" />
|
---|
[13735] | 27 |
|
---|
[13712] | 28 | </p>
|
---|
| 29 | <div id="childs@(randy)">
|
---|
| 30 | @for (var i = 0; i < Model.SelectedExperiment.Optimizers.Count; i++)
|
---|
[13696] | 31 | {
|
---|
[13712] | 32 | @if (Model.SelectedExperiment.Optimizers[i] is HeuristicLab.Optimization.IAlgorithm)
|
---|
| 33 | {
|
---|
| 34 | @Html.Partial("OpenFilePartials/_AlgorithmSmall",
|
---|
| 35 | new HeuristicLab.Clients.Hive.WebJobManager.Models.AlgorithmContainer(
|
---|
| 36 | ((HeuristicLab.Optimization.IAlgorithm)Model.SelectedExperiment.Optimizers[i]),
|
---|
| 37 | new List<int[]>(),
|
---|
| 38 | new int[] { i, 0 },
|
---|
| 39 | randomizer));
|
---|
[13689] | 40 |
|
---|
[13712] | 41 | }
|
---|
| 42 | else if (Model.SelectedExperiment.Optimizers[i] is HeuristicLab.Optimization.BatchRun)
|
---|
| 43 | {
|
---|
| 44 | @Html.Partial("OpenFilePartials/_BatchRunSmall",
|
---|
| 45 | new HeuristicLab.Clients.Hive.WebJobManager.Models.BatchRunContainer(
|
---|
| 46 | ((HeuristicLab.Optimization.BatchRun)Model.SelectedExperiment.Optimizers[i]),
|
---|
| 47 | new List<int[]>(),
|
---|
| 48 | new int[] { i, 0 },
|
---|
| 49 | randomizer)) ;
|
---|
[13689] | 50 |
|
---|
[13712] | 51 | }
|
---|
| 52 | else if (Model.SelectedExperiment.Optimizers[i] is HeuristicLab.Optimization.Experiment)
|
---|
| 53 | {
|
---|
| 54 | @Html.Partial("OpenFilePartials/_ExperimentSmall",
|
---|
| 55 | new HeuristicLab.Clients.Hive.WebJobManager.Models.ExperimentContainer(
|
---|
| 56 | ((HeuristicLab.Optimization.Experiment)Model.SelectedExperiment.Optimizers[i]),
|
---|
| 57 | new List<int[]>(),
|
---|
| 58 | new int[] { i, 0 },
|
---|
| 59 | randomizer)) ;
|
---|
[13696] | 60 |
|
---|
[13712] | 61 | }
|
---|
| 62 |
|
---|
[13689] | 63 | }
|
---|
[13712] | 64 | </div>
|
---|
[13689] | 65 | </div> |
---|