/**************************************************************************	Current.h													JJS 8/26/95			part of CONICAL, the Computational Neuroscience Class Library		A Current is any object which attaches to a VSink and which provides	a source of current for that VSink.	Requires:		VSink.h			-- header file for the VSink class		**************************************************************************/#ifndef CURRENT_H#define CURRENT_H#include "VSink.h"#ifndef real#define real double#endifclass Current{  public:  	Current( VSink *pTo, real pG=1, real pE=0 )				// constructor	: itsTo(pTo), G(pG), E(pE) { pTo->AddCurrent(this); }		virtual ~Current( void ) { itsTo->RemoveCurrent(this); }	// destructor		virtual void SetE( real pE ) { E = pE; }			// setter		virtual real GetE(void) const { return E; }			// inspectors	virtual real GetEG(void) const { return G*E; }	virtual VSink *GetTo(void) const { return itsTo; }	// public variables:		real G;	  protected:		VSink *itsTo;	real E;};#endif	
