1 | @model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.FileOpeningViewModel
|
---|
2 | @{System.Random randomizer = new Random();
|
---|
3 | int randy = randomizer.Next(5000); }
|
---|
4 |
|
---|
5 |
|
---|
6 | <div style="margin-left:20px;margin-right:20px; ">
|
---|
7 | <div class="row" style="text-align:center">
|
---|
8 | @Model.message
|
---|
9 | </div>
|
---|
10 | <div class="row" style="text-align:center">
|
---|
11 | <h1
|
---|
12 | data-toggle="tooltip"
|
---|
13 | title=" @Model.SelectedTask.ItemTask.ItemName
|
---|
14 | @Model.SelectedTask.ItemTask.Description ">
|
---|
15 | <span class="label label-danger"
|
---|
16 | style="text-shadow:2px 2px black;">
|
---|
17 | Experiment: @Model.SelectedTask.ItemTask.Name
|
---|
18 | </span>
|
---|
19 | </h1>
|
---|
20 |
|
---|
21 | </div>
|
---|
22 | <h4 id="tasks">
|
---|
23 | Children: @Model.SelectedExperiment.Optimizers.Count
|
---|
24 | </h4>
|
---|
25 | <p class="text-center">
|
---|
26 | Distribute child tasks
|
---|
27 | <input type="checkbox" checked data-toggle="toggle" data-onstyle="danger"
|
---|
28 | onchange="toggleChild([], @randy)" />
|
---|
29 |
|
---|
30 | </p>
|
---|
31 | <div id="childs@(randy)">
|
---|
32 | @for (var i = 0; i < Model.SelectedExperiment.Optimizers.Count; i++)
|
---|
33 | {
|
---|
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));
|
---|
42 |
|
---|
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)) ;
|
---|
52 |
|
---|
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)) ;
|
---|
62 |
|
---|
63 | }
|
---|
64 |
|
---|
65 | }
|
---|
66 | </div>
|
---|
67 |
|
---|
68 | <script type="text/javascript">
|
---|
69 |
|
---|
70 | $(document).ready(function () {
|
---|
71 | $('[data-toggle="tooltip"]').tooltip();
|
---|
72 | });
|
---|
73 | </script>
|
---|
74 | </div> |
---|