Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

PhysicalModel Class Reference

#include <physicalmodel.h>

Inheritance diagram for PhysicalModel:

Advancable 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 = 0,
int    output_channels = 0
 

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

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.

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 in ArmModel.