/// <summary> /// Deep copy constructor /// </summary> /// <param name="source">Source instance</param> public SinusoidalGeneratorSettings(SinusoidalGeneratorSettings source) { Phase = source.Phase; Freq = source.Freq; Ampl = source.Ampl; return; }
//Methods /// <summary> /// See the base. /// </summary> public override bool Equals(object obj) { if (obj == null) { return(false); } SinusoidalGeneratorSettings cmpSettings = obj as SinusoidalGeneratorSettings; if (Phase != cmpSettings.Phase || Freq != cmpSettings.Freq || Ampl != cmpSettings.Ampl ) { return(false); } return(true); }
//Constructor /// <summary> /// Creates an initialized instance /// </summary> /// <param name="settings">Configuration</param> public SinusoidalGenerator(SinusoidalGeneratorSettings settings) { _settings = (SinusoidalGeneratorSettings)settings.DeepClone(); Reset(); return; }
//Constructor /// <summary> /// Creates an initialized instance. /// </summary> /// <param name="cfg">The configuration.</param> public SinusoidalGenerator(SinusoidalGeneratorSettings cfg) { _cfg = (SinusoidalGeneratorSettings)cfg.DeepClone(); Reset(); return; }
/// <summary> /// The deep copy constructor. /// </summary> /// <param name="source">The source instance.</param> public SinusoidalGeneratorSettings(SinusoidalGeneratorSettings source) : this(source.Phase, source.Freq, source.Ampl) { return; }