Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFilePartials/_ExperimentSmall.cshtml @ 13696

Last change on this file since 13696 was 13696, checked in by jlodewyc, 8 years ago

#2582 Recursive views for Experiments and batch runs. Distribute child tasks start

File size: 2.1 KB
Line 
1@model HeuristicLab.Clients.Hive.WebJobManager.Models.ExperimentContainer
2@{int randombr = Model.randy.Next(2000); }
3<p class="text-center">
4    <a class="btn btn-danger"
5       data-toggle="collapse"
6       href="#collapseExample@(randombr)"
7       aria-expanded="false"
8       aria-controls="collapseExample@(randombr)">
9        @Model.exp.Name
10    </a>
11
12</p>
13<div class="collapse" id="collapseExample@(randombr)" style="margin-left:10px;margin-right:10px">
14    <div class="panel panel-danger">
15        <div class="panel-heading panel-danger text-center">
16            <p>Children: @Model.exp.Optimizers.Count</p>
17        </div>
18        @for (var j = 0; j < Model.exp.Optimizers.Count; j++)
19        {
20            @if (Model.exp.Optimizers[j] is HeuristicLab.Optimization.IAlgorithm)
21            {
22                @Html.Partial("OpenFilePartials/_AlgorithmSmall",
23                    new HeuristicLab.Clients.Hive.WebJobManager.Models.AlgorithmContainer(
24                 ((HeuristicLab.Optimization.IAlgorithm)Model.exp.Optimizers[j]),
25                 Model.randy))
26
27            }
28            else if (Model.exp.Optimizers[j] is HeuristicLab.Optimization.BatchRun)
29            {
30                @Html.Partial("OpenFilePartials/_BatchRunSmall",
31                new HeuristicLab.Clients.Hive.WebJobManager.Models.BatchRunContainer(
32                    ((HeuristicLab.Optimization.BatchRun)Model.exp.Optimizers[j]),
33                    Model.depth.ToList(),
34                    new int[] { j, 0 },
35                    Model.randy)) ;
36
37            }
38            else if (Model.exp.Optimizers[j] is HeuristicLab.Optimization.Experiment)
39            {
40                @Html.Partial("OpenFilePartials/_ExperimentSmall",
41                new HeuristicLab.Clients.Hive.WebJobManager.Models.ExperimentContainer(
42                    ((HeuristicLab.Optimization.Experiment)Model.exp.Optimizers[j]),
43                    Model.depth.ToList(),
44                    new int[] { j, 0 },
45                    Model.randy)) ;
46
47            }
48        }
49    </div>
50</div>
Note: See TracBrowser for help on using the repository browser.