示例#1
0
 protected Analog(Analog analog) : base(analog)
 {
     CurrentValue  = analog.CurrentValue;
     MaxValue      = analog.MaxValue;
     MinValue      = analog.MinValue;
     NormalValue   = analog.NormalValue;
     SignalType    = analog.SignalType;
     ScalingFactor = analog.ScalingFactor;
     Deviation     = analog.Deviation;
 }
示例#2
0
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         Analog x = (Analog)obj;
         return((x.currentValue == this.currentValue &&
                 x.maxValue == this.maxValue &&
                 x.minValue == this.minValue &&
                 x.normalValue == this.normalValue &&
                 x.signalType == this.signalType) &&
                x.scalingFactor == this.scalingFactor &&
                x.deviation == this.deviation);
     }
     else
     {
         return(false);
     }
 }