Exemplo n.º 1
0
        public void AddVariationValues(string parameterName, IReadOnlyList <IReadOnlyList <double> > variations)
        {
            variations.Each(v =>
            {
                var parameterVariation = new ParameterVariation
                {
                    ParameterName = parameterName,
                    Variation     = v,
                    VariationId   = _variationValues.Count
                };

                AddVariation(parameterVariation);
            });
        }
Exemplo n.º 2
0
        public void AddVariationValues(string parameterName, int parameterIndex, IReadOnlyList <IReadOnlyList <double> > variations)
        {
            variations.Each(variation =>
            {
                //The id is the current index in the variation array
                var variationId        = _variationValues.Count;
                var parameterVariation = new ParameterVariation(
                    parameterName,
                    parameterIndex,
                    variationId,
                    variation);

                AddVariation(parameterVariation);
            });
        }
Exemplo n.º 3
0
 public void AddVariation(ParameterVariation parameterVariation)
 {
     _variationValues.Add(parameterVariation);
 }