/// <summary> /// Constructor /// </summary> /// <param name="name">The name of the simulation</param> /// <param name="source">The name of the swept source</param> /// <param name="start">The starting value</param> /// <param name="stop">The stopping value</param> /// <param name="step">The step value</param> public DC(Identifier name, Identifier source, double start, double stop, double step) : base(name) { var config = new DcConfiguration(); SweepConfiguration s = new SweepConfiguration(source, start, stop, step); config.Sweeps.Add(s); ParameterSets.Add(config); }
/// <summary> /// Initializes a new instance of the <see cref="DC"/> class. /// </summary> /// <param name="name">The identifier of the simulation.</param> /// <param name="source">The source identifier.</param> /// <param name="start">The starting value.</param> /// <param name="stop">The stop value.</param> /// <param name="step">The step value.</param> public DC(string name, string source, double start, double stop, double step) : base(name) { var config = new DCConfiguration(); var s = new SweepConfiguration(source, start, stop, step); config.Sweeps.Add(s); Configurations.Add(config); }
/// <summary> /// Adds the specified sweep. /// </summary> /// <param name="sweep">The sweep.</param> private void Add(SweepConfiguration sweep) { _instances.Add(new SweepInstance(sweep.ComponentName, sweep.Start, sweep.Stop, sweep.Step)); }