# mechanism

This document describes the "mechanism" C++ class. This class describes objects that are mechanisms, and can be used to represent any sort of mechanism or dynamical system that affects compartments, conductances or synapses, or even other mechanisms.

Abstract can contain contained in
yes nothing compartment

## Methods¶

### integrate¶

Function Signature

void integrate()


Description

Since mechanisms can be just about anything, the abstract mechanism class only implements two methods. This method is used to integrate the mechanism under default conditions (single-step integration).

Code

### connect¶

Function Signature

void connect(compartment* comp_)


Description

Since mechanisms can be just about anything, the abstract mechanism class only implements two methods. This method is used to integrate the mechanism under default conditions (single-step integration).

void mechanism::integrate() { mexErrMsgTxt("[mechanism] Unimplemented integration method\n"); }

Code

### connect¶

Function Signature

void connect(conductance* cond_)


Description

Since mechanisms can be just about anything, the abstract mechanism class only implements two methods. This method is used to integrate the mechanism under default conditions (single-step integration).

void mechanism::integrate() { mexErrMsgTxt("[mechanism] Unimplemented integration method\n"); }

void mechanism::connect(compartment* comp_) { mexErrMsgTxt("[mechanism] This mechanism cannot connect to a compartment object"); }

Code

### connect¶

Function Signature

void connect(synapse* syn_)


Description

Since mechanisms can be just about anything, the abstract mechanism class only implements two methods. This method is used to integrate the mechanism under default conditions (single-step integration).

void mechanism::integrate() { mexErrMsgTxt("[mechanism] Unimplemented integration method\n"); }

void mechanism::connect(compartment* comp_) { mexErrMsgTxt("[mechanism] This mechanism cannot connect to a compartment object"); }

void mechanism::connect(conductance* cond_) { mexErrMsgTxt("[mechanism] This mechanism cannot connect to a conductance object"); }

Code

### integrateMS¶

Function Signature

void integrateMS(int k, double V, double Ca)


Description

Since mechanisms can be just about anything, the abstract mechanism class only implements two methods. This method is used to integrate the mechanism when a multi-step solver is requested.

Code