Exemple #1
0
 /// <summary>
 /// Deep copy constructor
 /// </summary>
 /// <param name="source">Source instance</param>
 public PulseGeneratorSettings(PulseGeneratorSettings source)
 {
     Signal    = source.Signal;
     AvgPeriod = source.AvgPeriod;
     Mode      = source.Mode;
     return;
 }
Exemple #2
0
 /// <summary>
 /// Creates an initialized instance
 /// </summary>
 /// <param name="settings">Configuration</param>
 public PulseGenerator(PulseGeneratorSettings settings)
 {
     _signal    = settings.Signal;
     _avgPeriod = settings.AvgPeriod;
     _mode      = settings.Mode;
     Reset();
     return;
 }
Exemple #3
0
 /// <summary>
 /// Creates an initialized instance.
 /// </summary>
 /// <param name="cfg">The configuration</param>
 public PulseGenerator(PulseGeneratorSettings cfg)
 {
     _signal    = cfg.Signal;
     _avgPeriod = cfg.AvgPeriod;
     _mode      = cfg.Mode;
     Reset();
     return;
 }
        //Instance methods
        /// <summary>
        /// See the base.
        /// </summary>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            PulseGeneratorSettings cmpSettings = obj as PulseGeneratorSettings;

            if (Signal != cmpSettings.Signal ||
                AvgPeriod != cmpSettings.AvgPeriod ||
                Mode != cmpSettings.Mode
                )
            {
                return(false);
            }
            return(true);
        }
Exemple #5
0
 /// <summary>
 /// The deep copy constructor.
 /// </summary>
 /// <param name="source">The source instance.</param>
 public PulseGeneratorSettings(PulseGeneratorSettings source)
     : this(source.Signal, source.AvgPeriod, source.Mode)
 {
     return;
 }