|CONICAL object class||#include Current.h|
|Member Functions & Variables|
A Current is any source of current for a VSink.
This class may be used directly to implement a passive ion channel, or a "leak" current. For active channels, use the Channel class or something derived from it. To connect Compartments together, use a pair of Links.
The equilibrium potential is set and read with the SetE() method and GetE() methods. This is the potential at which the current reverses direction. In other words, a current acts to bring the Compartment's potential closer to the current's equilibrium potential.
Note that although the first parameter of the constructor is a pointer, passing NULL will promptly crash your program. You must pass a valid pointer to a VSink (or one of its descendants).