AnalogInputNeuron Class Reference

#include <AnalogInputNeuron.h>

Inheritance diagram for AnalogInputNeuron:

Inheritance graph
[legend]
Collaboration diagram for AnalogInputNeuron:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AnalogInputNeuron ()
 AnalogInputNeuron (const std::vector< double > &values)
virtual ~AnalogInputNeuron ()
void setAnalogValues (const std::vector< double > &values)
void addAnalogValue (double v)
const std::vector< double > & getAnalogValues () const
virtual double getAnalogOutput (analog_port_id_t port=0) const
 Return the analog value currently associated with the given port.
virtual int advance (AdvanceInfo const &)
 Calculate the next state and output/propagate the result to succesors/outgoing objects.
virtual int reset (double dt)
 Called at the beginning of a simulation at t=0.
void printAnalogValues () const
virtual double getManagedDelay () const
virtual int nSpikeInputPorts () const
virtual int nSpikeOutputPorts () const
virtual int nAnalogInputPorts () const
virtual int nAnalogOutputPorts () const
virtual PortType outputPortType (port_t o) const
virtual PortType inputPortType (port_t i) const

Protected Attributes

std::vector< doublevalues
int current
double Vm


Detailed Description

Definition at line 8 of file AnalogInputNeuron.h.


Constructor & Destructor Documentation

AnalogInputNeuron::AnalogInputNeuron (  ) 

Definition at line 8 of file AnalogInputNeuron.cpp.

References current.

AnalogInputNeuron::AnalogInputNeuron ( const std::vector< double > &  values  ) 

AnalogInputNeuron::~AnalogInputNeuron (  )  [virtual]

Definition at line 19 of file AnalogInputNeuron.cpp.


Member Function Documentation

void AnalogInputNeuron::setAnalogValues ( const std::vector< double > &  values  ) 

void AnalogInputNeuron::addAnalogValue ( double  v  ) 

Definition at line 28 of file AnalogInputNeuron.cpp.

References values.

const vector< double > & AnalogInputNeuron::getAnalogValues (  )  const

Definition at line 33 of file AnalogInputNeuron.cpp.

References values.

double AnalogInputNeuron::getAnalogOutput ( analog_port_id_t  port = 0  )  const [virtual]

Return the analog value currently associated with the given port.

Reimplemented from SimObject.

Definition at line 38 of file AnalogInputNeuron.cpp.

References current, and values.

int AnalogInputNeuron::advance ( AdvanceInfo const &   )  [virtual]

Calculate the next state and output/propagate the result to succesors/outgoing objects.

The return value of advance contains several bits of information which can be decoded with the bit masks ADVANCEFLAG_* like ADVANCEFLAG_HASSPIKED and ADVANCEFLAG_DEACTIVATE.

Reimplemented from SimObject.

Definition at line 46 of file AnalogInputNeuron.cpp.

References current, values, and Vm.

int AnalogInputNeuron::reset ( double  dt  )  [virtual]

Called at the beginning of a simulation at t=0.

Reimplemented from SimObject.

Definition at line 58 of file AnalogInputNeuron.cpp.

References current, values, and Vm.

void AnalogInputNeuron::printAnalogValues (  )  const

Definition at line 74 of file AnalogInputNeuron.cpp.

References values.

virtual double AnalogInputNeuron::getManagedDelay (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 36 of file AnalogInputNeuron.h.

virtual int AnalogInputNeuron::nSpikeInputPorts (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 37 of file AnalogInputNeuron.h.

virtual int AnalogInputNeuron::nSpikeOutputPorts (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 38 of file AnalogInputNeuron.h.

virtual int AnalogInputNeuron::nAnalogInputPorts (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 39 of file AnalogInputNeuron.h.

virtual int AnalogInputNeuron::nAnalogOutputPorts (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 40 of file AnalogInputNeuron.h.

virtual PortType AnalogInputNeuron::outputPortType ( port_t  o  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 41 of file AnalogInputNeuron.h.

References SimObject::analog.

virtual PortType AnalogInputNeuron::inputPortType ( port_t  i  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 42 of file AnalogInputNeuron.h.


Member Data Documentation

std::vector<double> AnalogInputNeuron::values [protected]

Definition at line 47 of file AnalogInputNeuron.h.

Referenced by advance(), AnalogInputNeuron(), getAnalogOutput(), and reset().

Definition at line 48 of file AnalogInputNeuron.h.

Referenced by advance(), and reset().


The documentation for this class was generated from the following files:

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