Exemplo n.º 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="name">The name of the capacitor</param>
 /// <param name="pos">The positive node</param>
 /// <param name="neg">The negative node</param>
 /// <param name="cap">The capacitance</param>
 public Capacitor(CircuitIdentifier name, CircuitIdentifier pos, CircuitIdentifier neg, double cap) : base(name)
 {
     Connect(pos, neg);
     CAPcapac.Set(cap);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="name">The name of the capacitor</param>
 /// <param name="pos">The positive node</param>
 /// <param name="neg">The negative node</param>
 /// <param name="cap">The capacitance</param>
 public Capacitor(string name, string pos, string neg, double cap) : base(name, 2)
 {
     Connect(pos, neg);
     CAPcapac.Set(cap);
 }