Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Diode"/> class.
 /// </summary>
 /// <param name="name">The name of the device.</param>
 /// <param name="anode">The anode.</param>
 /// <param name="cathode">The cathode.</param>
 /// <param name="model">The model.</param>
 public Diode(string name, string anode, string cathode, DiodeModel model)
     : this(name)
 {
     Connect(anode, cathode);
     Model = model;
 }
Exemple #2
0
 /// <summary>
 /// Set the model for the diode
 /// </summary>
 public void SetModel(DiodeModel model) => Model = model;