/// <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); }
/// <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); }