public List<string> Experiment(NetworkModelling.NetworkModel Network) { List<string> commandsFormatted = new List<string>(); foreach (String str in ExperimentCommands) { commandsFormatted.Add(String.Format(str, ExperimentValues)); } return commandsFormatted; }
/// <summary> /// Obtains simulator-specific experiment commands pertaining to each /// <see cref="IExperimentor"/> in order and aggregates them into a /// single experiment. /// </summary> /// <param name="Network">The network to experiment upon.</param> /// <returns>A list of simulator-specific experiment commands.</returns> public List<string> Experiment(NetworkModelling.NetworkModel Network) { return Experimentors.Aggregate(new List<String>(), (lst, exp) => { lst.AddRange(exp.Experiment(Network)); return lst; }); }