@model HeuristicLab.Clients.Hive.WebJobManager.ViewModels.FileOpeningViewModel
@{System.Random randomizer = new Random();
int randy = randomizer.Next(50000); }
@for (var i = 0; i < Model.SelectedExperiment.Optimizers.Count; i++)
{
@if (Model.SelectedExperiment.Optimizers[i] is HeuristicLab.Optimization.IAlgorithm)
{
@Html.Partial("OpenFilePartials/_AlgorithmSmall",
new HeuristicLab.Clients.Hive.WebJobManager.Models.AlgorithmContainer(
((HeuristicLab.Optimization.IAlgorithm)Model.SelectedExperiment.Optimizers[i]),
new List(),
new int[] { i, 0 },
randomizer));
}
else if (Model.SelectedExperiment.Optimizers[i] is HeuristicLab.Optimization.BatchRun)
{
@Html.Partial("OpenFilePartials/_BatchRunSmall",
new HeuristicLab.Clients.Hive.WebJobManager.Models.BatchRunContainer(
((HeuristicLab.Optimization.BatchRun)Model.SelectedExperiment.Optimizers[i]),
new List(),
new int[] { i, 0 },
randomizer)) ;
}
else if (Model.SelectedExperiment.Optimizers[i] is HeuristicLab.Optimization.Experiment)
{
@Html.Partial("OpenFilePartials/_ExperimentSmall",
new HeuristicLab.Clients.Hive.WebJobManager.Models.ExperimentContainer(
((HeuristicLab.Optimization.Experiment)Model.SelectedExperiment.Optimizers[i]),
new List(),
new int[] { i, 0 },
randomizer)) ;
}
}