Пример #1
0
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         RotatingMachine x = (RotatingMachine)obj;
         return(true);
     }
     else
     {
         return(false);
     }
 }
Пример #2
0
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         RotatingMachine r = (RotatingMachine)obj;
         return(r.ratedS == this.ratedS);
     }
     else
     {
         return(false);
     }
 }
Пример #3
0
        public override object Clone()
        {
            RotatingMachine io = new RotatingMachine(base.GlobalId);

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

            return(io);
        }
Пример #4
0
        public override IdentifiedObject DeepCopy(IdentifiedObject copy = null)
        {
            if (copy == null)
            {
                copy = new RotatingMachine(this.GlobalId);
            }

            ((RotatingMachine)copy).fuelType        = this.fuelType;
            ((RotatingMachine)copy).ratedS          = this.ratedS;
            ((RotatingMachine)copy).nominalP        = this.nominalP;
            ((RotatingMachine)copy).nominalQ        = this.nominalQ;
            ((RotatingMachine)copy).derFlexibilityP = this.derFlexibilityP;
            ((RotatingMachine)copy).derFlexibilityQ = this.derFlexibilityQ;
            return(base.DeepCopy(copy));
        }
Пример #5
0
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         RotatingMachine x = (RotatingMachine)obj;
         return(x.fuelType == this.fuelType &&
                x.ratedS == this.ratedS &&
                x.ratedS == this.ratedS &&
                x.nominalP == this.nominalP &&
                x.derFlexibilityP == this.derFlexibilityP &&
                x.derFlexibilityQ == this.derFlexibilityQ &&
                x.nominalQ == this.nominalQ);
     }
     else
     {
         return(false);
     }
 }