Exemple #1
0
 /// <summary>
 /// Default constructor, requires voltage drops and currents
 /// </summary>
 /// <param name="voltageDrops"></param>
 /// <param name="currents"></param>
 /// <exception cref="ArgumentNullException"></exception>
 public BiasPower(IVoltageSignalDB <IPhasorDomainSignal> voltageDrops, ICurrentSignalDB <IPhasorDomainSignal> currents)
 {
     _VoltageDrops = voltageDrops ?? throw new ArgumentNullException(nameof(voltageDrops));
     _Currents     = currents ?? throw new ArgumentNullException(nameof(currents));
 }
Exemple #2
0
 /// <summary>
 /// Default constructor, requires two parameters, if either is null, an exception will be thrown
 /// </summary>
 /// <param name="voltageDrops">Object contain information about voltage drops calculated in simulation, can't be null</param>
 /// <param name="activeComponentsCurrents">Currents produced by active components, can't be null</param>
 public TimeCurrent(IVoltageSignalDB <ITimeDomainSignal> voltageDrops,
                    IEnumerable <KeyValuePair <int, ITimeDomainSignal> > activeComponentsCurrents) : base(activeComponentsCurrents)
 {
     _VoltageDrops = voltageDrops ?? throw new ArgumentNullException(nameof(voltageDrops));
 }