//--------------------------------------------------------------------------
// Author: Thomas Nowotny
//
// Institute: Institute for Nonlinear Dynamics
//            University of California San Diego
//            La Jolla, CA 92093-0402
//
// email to:  tnowotny@ucsd.edu
//
// initial version: 2005-08-17
//
//--------------------------------------------------------------------------


#ifndef CN_NEUROSYN_H
#define CN_NEUROSYN_H

#include "CN_neuron.h"
#include <cmath>

// parameters of the HH neuron, they are identical for all neurons used
// (and therefore made global to save memory)

double *NEUROSYN_p= PARAMS_LN;


// HH neuron class itself

class NeuroSyn: public neuron
{
 private:
  double ICa;
  double IKCa;
  double _a, _b;
  double tlast;
 public:
	  double Isyn;
  NeuroSyn(int, double *);
  NeuroSyn(int, vector<int>, double *);
  ~NeuroSyn() { }
  inline virtual double E(double *);
  inline virtual double F(double *){return 0;}
  double S(double *);
  virtual void derivative(double *, double *);
  virtual void init(double *, double *);
  double Transfer(double isyn){return 0.0;}
  void ResetSynapse(double *x);
};

#endif