Example #1
0
 public override IdentifiedObject DeepCopy(IdentifiedObject copy = null)
 {
     if (copy == null)
     {
         copy = new Substation(this.GlobalId);
     }
     ((Substation)copy).subRegion = this.subRegion;
     ((Substation)copy).latitude  = this.latitude;
     ((Substation)copy).longitude = this.longitude;
     return(base.DeepCopy(copy));
 }
Example #2
0
 public override bool Equals(object x)
 {
     if (base.Equals(x))
     {
         Substation s = (Substation)x;
         return(this.Capacity == s.Capacity ? true : false);
     }
     else
     {
         return(false);
     }
 }
Example #3
0
        public override object Clone()
        {
            Substation io = new Substation(base.GlobalId);

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


            return(io);
        }
Example #4
0
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         Substation x = (Substation)obj;
         return((x.SubRegion == this.SubRegion) &&
                x.Longitude == this.Longitude &&
                x.Latitude == this.Latitude);
     }
     else
     {
         return(false);
     }
 }
Example #5
0
 public Substation(Substation substation) : base(substation)
 {
     Capacity = substation.Capacity;
 }