public DeviceMalfunction Clone()
        {
            DeviceMalfunction clone = new DeviceMalfunction();

            clone = (DeviceMalfunction)this.MemberwiseClone();
            return(clone);
        }
        public DeviceMalfunctionState Clone()
        {
            DeviceMalfunctionState clone = new DeviceMalfunctionState();

            clone = (DeviceMalfunctionState)this.MemberwiseClone();
            clone.Malfunctions.Clear();
            foreach (var d in this.Malfunctions)
            {
                DeviceMalfunction dm = (DeviceMalfunction)d.Clone();
                clone.Malfunctions.Add(dm);
            }
            return(clone);
        }