public override bool Equals(object obj) { MetadataBase obj2 = obj as MetadataBase; if (obj2 is null) { return(false); } return(obj2.UniqueId == UniqueId); }
public void CreateCalculatedSignals(MetadataBase angleReference) { if (VoltageMagnitude != null) { SignalScaling calcPu = new SignalScaling(Math.Sqrt(3) / ExtraData.NominalVoltage, VoltageMagnitude); calcPu.GetPoints(out VoltageMagnitudePu); } if (VoltageAngle != null && CurrentAngle != null && CurrentMagnitude != null && VoltageMagnitude != null) { SinglePhasorPowerSignals calc = new SinglePhasorPowerSignals(VoltageMagnitude, VoltageAngle, CurrentMagnitude, CurrentAngle); calc.GetPoints(out Watt, out PowerFactor, out VoltAmpre, out VoltAmpreReactive); } if (VoltageAngle != null) { SignalAngleDifference calcRef = new SignalAngleDifference(VoltageAngle, angleReference); calcRef.GetPoints(out VoltageAngleReference); } }