/// <summary>
 /// Constructor
 /// </summary>
 /// <param name="name">The name of the voltage-controlled voltage source</param>
 /// <param name="pos">The positive node</param>
 /// <param name="neg">The negative node</param>
 /// <param name="cont_pos">The positive controlling node</param>
 /// <param name="cont_neg">The negative controlling node</param>
 /// <param name="gain">The voltage gain</param>
 public VoltageControlledVoltagesource(CircuitIdentifier name, CircuitIdentifier pos, CircuitIdentifier neg, CircuitIdentifier cont_pos, CircuitIdentifier cont_neg, double gain) : base(name)
 {
     Connect(pos, neg, cont_pos, cont_neg);
     VCVScoeff.Set(gain);
 }
Пример #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="name">The name of the voltage-controlled voltage source</param>
 /// <param name="pos">The positive node</param>
 /// <param name="neg">The negative node</param>
 /// <param name="cont_pos">The positive controlling node</param>
 /// <param name="cont_neg">The negative controlling node</param>
 /// <param name="coeff">The voltage gain</param>
 public VoltageControlledVoltagesource(string name, string pos, string neg, string cont_pos, string cont_neg, double coeff) : base(name, 4)
 {
     Connect(pos, neg, cont_pos, cont_neg);
     VCVScoeff.Set(coeff);
 }