static private void RecursiveInit(List <SuperParametersCollection> initList, List <SuperParameters> sourceList, int deep) { for (int i = 0; i < sourceList.Count; i++) { indices[deep] = i; if (deep == 0) { SuperParametersCollection collection = new SuperParametersCollection(); for (int j = 0; j < SuperStrategy.countOrders; j++) { collection.items[j] = sourceList[indices[j]]; } initList.Add(collection); } else { RecursiveInit(initList, sourceList, deep - 1); } } }
public SuperStrategy(SuperParametersCollection param, IStrategyLogger logger) { this.logger = logger; this.param = param; this.logger.AddMessage("Start strategy with parameter {0}", param.ToString()); }