/// <summary> /// Initializes a new instance of the <see cref="ComplexVoltageExport"/> class. /// </summary> /// <param name="simulation">The simulation.</param> /// <param name="posNode">The node identifier.</param> /// <exception cref="ArgumentNullException">posNode</exception> public ComplexVoltageExport(FrequencySimulation simulation, string posNode) : base(simulation) { PosNode = posNode.ThrowIfNull(nameof(posNode)); PosIndex = -1; NegNode = null; NegIndex = -1; }
/// <summary> /// Initializes a new instance of the <see cref="RealCurrentExport"/> class. /// </summary> /// <param name="simulation">The simulation.</param> /// <param name="source">The source identifier.</param> public ComplexCurrentExport(FrequencySimulation simulation, string source) : base(simulation) { Source = source.ThrowIfNull(nameof(source)); Index = -1; }
/// <summary> /// Initializes a new instance of the <see cref="ComplexVoltageExport"/> class. /// </summary> /// <param name="simulation">The simulation.</param> /// <param name="posNode">The positive node identifier.</param> /// <param name="negNode">The negative node identifier.</param> /// <exception cref="ArgumentNullException">posNode</exception> public ComplexVoltageExport(FrequencySimulation simulation, string posNode, string negNode) : base(simulation) { PosNode = posNode ?? throw new ArgumentNullException(nameof(posNode)); NegNode = negNode; }