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

            return(base.DeepCopy(copy));
        }
Exemple #2
0
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         ConductingEquipment x = (ConductingEquipment)obj;
         return((CompareHelper.CompareLists(x.Terminals, this.Terminals, true)));
     }
     else
     {
         return(false);
     }
 }
Exemple #3
0
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         ConductingEquipment x = (ConductingEquipment)obj;
         return(x.phases == this.phases && x.ratedVoltage == this.ratedVoltage && x.baseVoltage == this.baseVoltage && CompareHelper.CompareLists(x.terminals, this.terminals, true));
     }
     else
     {
         return(false);
     }
 }
Exemple #4
0
 public override bool Equals(object x)
 {
     if (base.Equals(x))
     {
         ConductingEquipment c = (ConductingEquipment)x;
         return(CompareHelper.CompareLists(c.Terminals, this.Terminals));
     }
     else
     {
         return(false);
     }
 }
        public override object Clone()
        {
            ConductingEquipment io = new ConductingEquipment(base.GlobalId);

            io.Measurements       = this.Measurements;
            io.AliasName          = this.AliasName;
            io.EquipmentContainer = this.EquipmentContainer;
            io.Mrid = this.Mrid;
            io.Name = this.Name;

            return(io);
        }
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         ConductingEquipment x = (ConductingEquipment)obj;
         return(x.phases == this.phases && x.ratedVoltage == this.ratedVoltage && x.baseVoltage == this.baseVoltage);
     }
     else
     {
         return(false);
     }
 }
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         ConductingEquipment ce = (ConductingEquipment)obj;
         return(CompareHelper.CompareLists(ce.terminals, this.terminals));
     }
     else
     {
         return(false);
     }
 }
Exemple #8
0
 public ConductingEquipment(ConductingEquipment equipment) : base(equipment)
 {
     Terminals = new List <long>(equipment.Terminals);
 }