CSIM: PhysicalModel Class Reference

PhysicalModel Class Reference

#include <physicalmodel.h>

Inheritance diagram for PhysicalModel:

Advancable csimClass ArmModel List of all members.

Detailed Description

Base class of all physical models to be used in CSIM simulations.

These models take input from readouts and produce one or more outputs to analog synapses. Within a transform function you can also receive input from any external source.

Public Member Functions

Protected Member Functions

Protected Attributes

Private Attributes


Constructor & Destructor Documentation

PhysicalModel::PhysicalModel (  int  input_channels,
int  output_channels
) 
 

Constructs a new physical model.

Parameters:
input_channels How many input channels are there?
output_channels How many output channels are there?

PhysicalModel::~PhysicalModel (  void   )  [virtual]
 

Frees the memory


Member Function Documentation

int PhysicalModel::addInput (  Advancable *  Incoming,
char *  inputname
)  [virtual]
 

Connect a readout output to a named input of the model.

Parameters:
inputname Name of the input channel
Incoming Pointer to the input channel

int PhysicalModel::addOutput (  Advancable *  Outgoing,
char *  outputname
)  [virtual]
 

Connect an output channel of the model to a synapse.

Parameters:
outputname Name of the output channel
Outgoing Pointer to the output channel

const char * PhysicalModel::getInputChannelName (  int  index  ) 
 

Returns the names of the input- and output - channels.

const char * PhysicalModel::getOutputChannelName (  int  index  ) 
 

Returns the name of an output-channel.

int PhysicalModel::register_input_channel (  const char *  name  )  [protected]
 

Parameters:
name Name of the new input channel
Returns:
Index of the new channel

int PhysicalModel::register_output_channel (  const char *  name  )  [protected]
 

Parameters:
name Name of the new output channel
Returns:
Index of the new channel

virtual void PhysicalModel::reset (  void   )  [inline, virtual]
 

Resets the information stored within the model.

Implements Advancable.

Reimplemented in ArmModel.

virtual int PhysicalModel::transform (  double **  I,
double *  O
)  [pure virtual]
 

Transforms the current inputs to new output values.

Parameters:
I Array of pointers to input values from the readouts.
O Array of output values.
Returns:
-1 if an error occured, 1 for success.

Implemented in ArmModel.

int PhysicalModel::updateInternal (   )  [virtual]
 

This function is called after parameters are updated.

Reimplemented from csimClass.

Reimplemented in ArmModel.


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