CSIM: membranepatch.h Source File

membranepatch.h

Go to the documentation of this file.
00001 
00005 #ifndef _MEMBRANEPATCH_H_
00006 #define _MEMBRANEPATCH_H_
00007 
00008 #include "spikingneuron.h"
00009 #include "ionchannel.h"
00010 #include "synapsetarget.h"
00011 #include "membranepatchsimple.h"
00012 #include "ionbuffer.h"
00013 
00014 class MembranePatchSimple;
00015 
00016 #define CA 0     // first ion buffer is calcium
00017 
00018 // To install a new buffer
00019 // 1) create new active channel type, e.g. ActiveCaChannel (to be recognized by the membranepatch)
00020 // 2) Call new and addBuffers in constructor of membranepatch (so buffer is added to membrane)
00021 // 3) define new channel number, e.g. see above CA 0
00022 // 4) write code to recognize new channel type in the addChannel methode of membrane patch
00023 
00024 
00026 
00077 class MembranePatch : public MembranePatchSimple  {
00078 
00079  public:
00080 
00081   MembranePatch(void);
00082 
00083   virtual ~MembranePatch();
00084 
00086   virtual void IandGtot(double *i, double *g);
00087 
00089   virtual void reset(void);
00090 
00091  protected:
00092   friend class ConcIonGate;
00093 
00095   int nBuffers;
00096 
00098   int lBuffers;
00099 
00101   IonBuffer **buffers;
00102 
00104   void addBuffer(IonBuffer *newBuffer);
00105 
00107   virtual void addChannel(IonChannel *c);
00108 
00109 
00110 };
00111 
00112 #endif

 
(C) 2003, Thomas Natschläger last modified 07/10/2006