예제 #1
0
        public override IdentifiedObject DeepCopy(IdentifiedObject copy = null)
        {
            if (copy == null)
            {
                copy = new MeasurementValue(this.GlobalId);
            }

            ((MeasurementValue)copy).timestamp          = this.timestamp;
            ((MeasurementValue)copy).synchronousMachine = this.synchronousMachine;
            ((MeasurementValue)copy).powerType          = this.powerType;
            ((MeasurementValue)copy).address            = this.address;
            return(base.DeepCopy(copy));
        }
예제 #2
0
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         MeasurementValue x = (MeasurementValue)obj;
         return(x.timestamp == this.timestamp &&
                x.synchronousMachine == this.synchronousMachine &&
                x.address == this.address &&
                x.powerType == this.powerType);
     }
     else
     {
         return(false);
     }
 }