Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

mpspikeinput.h

00001 /***************************************************************************
00002                           mpspikeinput.h  -  description
00003                              -------------------
00004     begin                : Sun Dec 23 2001
00005     copyright            : (C) 2001 by Rudiger Koch
00006     email                : rudiger_koch@yahoo.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef MPSPIKEINPUT_H
00019 #define MPSPIKEINPUT_H
00020 
00021 using namespace std;
00022 #include <amygdala/spikeinput.h>
00023 
00024 #include <vector>
00025 #include <pair.h>
00026 
00027 #include <pthread.h>
00028 
00029 class Synapse;
00030 class Network;
00031 
00032 
00038 class MpSpikeInput : public SpikeInput  {
00039 public: 
00040     MpSpikeInput(Network *NN);
00041   virtual ~MpSpikeInput();
00043   virtual void ReadInputBuffer();
00044 
00048   void queueSpike(Synapse *synapse);
00049 
00050 protected: // Protected attributes
00052     pthread_mutex_t spikes_mutex;
00054     vector <Synapse * > *spikes;
00055     vector <Synapse * > *spikes_rest;
00056 };
00057 
00058 #endif

Generated on Wed Sep 4 02:30:35 2002 for Amygdala by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002