Module circ :: Class Resistor
[frames] | no frames]

Class Resistor

Component --+
            |
           Resistor

Instance Methods
 
__init__(self, r, n1, n2)
 
getEquation(self)
 
__str__(self)

Inherited from Component: getCurrents

Instance Variables
  current
Name of the current variable for this component
Method Details

__init__(self, r, n1, n2)
(Constructor)

 
Parameters:
  • r - resistance in Ohms (number)
  • n1 - name of node at one end of the resistor (string)
  • n2 - name of node at the other end of the resistor (string)