/// <summary> /// Initializes a new instance of the <see cref="RealVoltageExport"/> 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 RealVoltageExport(BaseSimulation simulation, string posNode, string negNode) : base(simulation) { PosNode = posNode ?? throw new ArgumentNullException(nameof(posNode)); NegNode = negNode; }
/// <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 RealCurrentExport(BaseSimulation simulation, string source) : base(simulation) { Source = source.ThrowIfNull(nameof(source)); Index = -1; }