コード例 #1
0
 /// <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;
 }
コード例 #2
0
        //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);
        }
コード例 #3
0
 //Constructor
 /// <summary>
 /// Creates an initialized instance
 /// </summary>
 /// <param name="settings">Configuration</param>
 public SinusoidalGenerator(SinusoidalGeneratorSettings settings)
 {
     _settings = (SinusoidalGeneratorSettings)settings.DeepClone();
     Reset();
     return;
 }
コード例 #4
0
 //Constructor
 /// <summary>
 /// Creates an initialized instance.
 /// </summary>
 /// <param name="cfg">The configuration.</param>
 public SinusoidalGenerator(SinusoidalGeneratorSettings cfg)
 {
     _cfg = (SinusoidalGeneratorSettings)cfg.DeepClone();
     Reset();
     return;
 }
コード例 #5
0
 /// <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;
 }