예제 #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;
 }