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)); }
public override bool Equals(object x) { if (base.Equals(x)) { Substation s = (Substation)x; return(this.Capacity == s.Capacity ? true : false); } else { return(false); } }
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); }
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); } }
public Substation(Substation substation) : base(substation) { Capacity = substation.Capacity; }