Ejemplo n.º 1
0
        public override IdentifiedObject DeepCopy(IdentifiedObject copy = null)
        {
            if (copy == null)
            {
                copy = new PowerSystemResource(this.GlobalId);
            }

            return(base.DeepCopy(copy));
        }
Ejemplo n.º 2
0
 public override bool Equals(object x)
 {
     if (base.Equals(x))
     {
         PowerSystemResource s = (PowerSystemResource)x;
         return(s.Outage == outage);
     }
     return(false);
 }
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         PowerSystemResource x = (PowerSystemResource)obj;
         return(x.customType == this.customType && x.location == this.location);
     }
     else
     {
         return(false);
     }
 }
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         PowerSystemResource x = (PowerSystemResource)obj;
         return((CompareHelper.CompareLists(x.Measurments, this.Measurments, true)));
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 5
0
 public PowerSystemResource(PowerSystemResource resource) : base(resource)
 {
     Measurements = new List <long>(resource.Measurements);
 }