Beispiel #1
0
 public SignalBuilder(ISignalData data, IUnitSize unit)
 {
     _data = data;
     _unit = unit;
 }
Beispiel #2
0
 /// <summary>
 /// Caches the <paramref name="power"/> in <see cref="_Cache"/>
 /// </summary>
 /// <param name="component">Component for which the current flow is considered</param>
 /// <param name="power"></param>
 private void CachePower(IBaseComponent component, ISignalData power) =>
 _Cache.Add(
     component,
     IoC.Resolve <ISignalInformation>(power, IoC.Resolve <ICommonSignalDescriptions>().Power));
Beispiel #3
0
 /// <summary>
 /// Constructor with parameters
 /// </summary>
 /// <param name="data"></param>
 /// <param name="description"></param>
 /// <exception cref="ArgumentNullException"></exception>
 public SignalInformation(ISignalData data, ISignalDescription description)
 {
     Data        = data ?? throw new ArgumentNullException(nameof(data));
     Description = description ?? throw new ArgumentNullException(nameof(description));
 }