Ejemplo n.º 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));
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 5
0
 public Substation(Substation substation) : base(substation)
 {
     Capacity = substation.Capacity;
 }