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)); }
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); } }