コード例 #1
0
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         SynchronousMachine x = (SynchronousMachine)obj;
         return(x.ReactiveCapabilityCurves == this.ReactiveCapabilityCurves);
     }
     else
     {
         return(false);
     }
 }
コード例 #2
0
        public override IdentifiedObject DeepCopy(IdentifiedObject copy = null)
        {
            if (copy == null)
            {
                copy = new SynchronousMachine(this.GlobalId);
            }

            ((SynchronousMachine)copy).measurements.AddRange(measurements);
            ((SynchronousMachine)copy).baseQ = this.baseQ;
            ((SynchronousMachine)copy).minQ  = this.minQ;
            ((SynchronousMachine)copy).maxQ  = this.maxQ;
            ((SynchronousMachine)copy).minP  = this.minP;
            ((SynchronousMachine)copy).maxP  = this.maxP;
            return(base.DeepCopy(copy));
        }
コード例 #3
0
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         SynchronousMachine x = (SynchronousMachine)obj;
         return(x.baseQ == this.baseQ && x.minQ == this.minQ && x.maxQ == this.maxQ &&
                x.minP == this.minP &&
                x.maxP == this.maxP &&
                CompareHelper.CompareLists(x.measurements, this.measurements));
     }
     else
     {
         return(false);
     }
 }