/// <summary> /// Constructor /// </summary> /// <param name="name">The name of the current controlled current source</param> /// <param name="pos">The positive node</param> /// <param name="neg">The negative node</param> /// <param name="vsource">The name of the voltage source</param> /// <param name="gain">The current gain</param> public CurrentControlledCurrentsource(CircuitIdentifier name, CircuitIdentifier pos, CircuitIdentifier neg, CircuitIdentifier vsource, double gain) : base(name) { Priority = -1; Connect(pos, neg); CCCScoeff.Set(gain); CCCScontName = vsource; }
/// <summary> /// Constructor /// </summary> /// <param name="name">The name of the current controlled current source</param> /// <param name="pos">The positive node</param> /// <param name="neg">The negative node</param> /// <param name="vsource">The name of the voltage source</param> /// <param name="gain">The current gain</param> public CurrentControlledCurrentsource(string name, string pos, string neg, string vsource, double gain) : base(name, 2) { Connect(pos, neg); CCCScoeff.Set(gain); CCCScontName = vsource; }