SpikeEvent.h

Go to the documentation of this file.
00001 #ifndef SPIKEEVENT_H_
00002 #define SPIKEEVENT_H_
00003 
00004 #include "SimTime.h"
00005 
00007 struct SpikeEvent
00008 {
00009         //SpikeEvent() : t(0), delta(0), weight(1), dt( Time::sec( 0 
00010         //{ /* NOOP */ }; 
00011 
00012         SpikeEvent( double t, double delta, float weight, Time const& dt ) : t(t), delta(delta), weight(weight), dt(dt)
00013         { /* NOOP */ }; 
00014 
00015         SpikeEvent( SpikeEvent const& se, double w ) 
00016         {
00017                 *this = se;
00018                 this->weight *= (float)w;
00019         };
00020 
00022         double t;
00023 
00025         double delta;
00026 
00028         float weight;
00029         
00031         double time() const { return t+delta; };
00032         
00034         Time dt;
00035 };
00036 
00037 
00038 #endif /*SPIKEEVENT_H_*/

Generated on Wed Jul 9 16:34:38 2008 for PCSIM by  doxygen 1.5.5