[13689] | 1 | @model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.FileOpeningViewModel
|
---|
[13712] | 2 | @{System.Random randomizer = new Random();
|
---|
| 3 | int randy = randomizer.Next(5000); }
|
---|
[13733] | 4 |
|
---|
| 5 |
|
---|
| 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
|
---|
[13733] | 12 | data-toggle="tooltip"
|
---|
| 13 | title=" @Model.SelectedTask.ItemTask.ItemName
|
---|
[13689] | 14 | @Model.SelectedTask.ItemTask.Description ">
|
---|
[13733] | 15 | <span class="label label-danger"
|
---|
| 16 | style="text-shadow:2px 2px black;">
|
---|
| 17 | Experiment: @Model.SelectedTask.ItemTask.Name
|
---|
| 18 | </span>
|
---|
[13689] | 19 | </h1>
|
---|
[13712] | 20 |
|
---|
[13689] | 21 | </div>
|
---|
[13733] | 22 | <h4 id="tasks">
|
---|
[13696] | 23 | Children: @Model.SelectedExperiment.Optimizers.Count
|
---|
| 24 | </h4>
|
---|
[13712] | 25 | <p class="text-center">
|
---|
[13735] | 26 | Distribute child tasks
|
---|
[13712] | 27 | <input type="checkbox" checked data-toggle="toggle" data-onstyle="danger"
|
---|
| 28 | onchange="toggleChild([], @randy)" />
|
---|
[13735] | 29 |
|
---|
[13712] | 30 | </p>
|
---|
| 31 | <div id="childs@(randy)">
|
---|
| 32 | @for (var i = 0; i < Model.SelectedExperiment.Optimizers.Count; i++)
|
---|
[13696] | 33 | {
|
---|
[13712] | 34 | @if (Model.SelectedExperiment.Optimizers[i] is HeuristicLab.Optimization.IAlgorithm)
|
---|
| 35 | {
|
---|
| 36 | @Html.Partial("OpenFilePartials/_AlgorithmSmall",
|
---|
| 37 | new HeuristicLab.Clients.Hive.WebJobManager.Models.AlgorithmContainer(
|
---|
| 38 | ((HeuristicLab.Optimization.IAlgorithm)Model.SelectedExperiment.Optimizers[i]),
|
---|
| 39 | new List<int[]>(),
|
---|
| 40 | new int[] { i, 0 },
|
---|
| 41 | randomizer));
|
---|
[13689] | 42 |
|
---|
[13712] | 43 | }
|
---|
| 44 | else if (Model.SelectedExperiment.Optimizers[i] is HeuristicLab.Optimization.BatchRun)
|
---|
| 45 | {
|
---|
| 46 | @Html.Partial("OpenFilePartials/_BatchRunSmall",
|
---|
| 47 | new HeuristicLab.Clients.Hive.WebJobManager.Models.BatchRunContainer(
|
---|
| 48 | ((HeuristicLab.Optimization.BatchRun)Model.SelectedExperiment.Optimizers[i]),
|
---|
| 49 | new List<int[]>(),
|
---|
| 50 | new int[] { i, 0 },
|
---|
| 51 | randomizer)) ;
|
---|
[13689] | 52 |
|
---|
[13712] | 53 | }
|
---|
| 54 | else if (Model.SelectedExperiment.Optimizers[i] is HeuristicLab.Optimization.Experiment)
|
---|
| 55 | {
|
---|
| 56 | @Html.Partial("OpenFilePartials/_ExperimentSmall",
|
---|
| 57 | new HeuristicLab.Clients.Hive.WebJobManager.Models.ExperimentContainer(
|
---|
| 58 | ((HeuristicLab.Optimization.Experiment)Model.SelectedExperiment.Optimizers[i]),
|
---|
| 59 | new List<int[]>(),
|
---|
| 60 | new int[] { i, 0 },
|
---|
| 61 | randomizer)) ;
|
---|
[13696] | 62 |
|
---|
[13712] | 63 | }
|
---|
| 64 |
|
---|
[13689] | 65 | }
|
---|
[13712] | 66 | </div>
|
---|
[13733] | 67 |
|
---|
[13696] | 68 | <script type="text/javascript">
|
---|
| 69 |
|
---|
[13689] | 70 | $(document).ready(function () {
|
---|
| 71 | $('[data-toggle="tooltip"]').tooltip();
|
---|
| 72 | });
|
---|
| 73 | </script>
|
---|
| 74 | </div> |
---|