#include <singlech.h>
Public Member Functions | |
SingleChan (const char *) | |
SingleChan (OcMatrix *) | |
virtual | ~SingleChan () |
void | set_rates (double v) |
void | set_rates (OcMatrix *) |
void | set_rates (int, int, double tau) |
const char * | name (int) |
int | index (const char *) |
int | current_state () |
void | current_state (int) |
int | cond (int) |
void | cond (int, int) |
int | current_cond () |
double | state_transition () |
double | cond_transition () |
void | state_transitions (Vect *dt, Vect *state) |
void | cond_transitions (Vect *dt, Vect *cond) |
int | n () |
void | get_rates (OcMatrix *) |
void | setrand (Rand *) |
Public Attributes | |
SingleChanState * | state_ |
Private Member Functions | |
double | erand1 () |
double | erand2 () |
Private Attributes | |
double(SingleChan::* | erand_ )() |
Rand * | r_ |
SingleChanInfo * | info_ |
NrnProperty * | nprop_ |
int | current_ |
SingleChan::SingleChan | ( | const char * | name | ) |
References erand1(), erand_, hoc_execerror(), i, info_, SingleChanInfo::n_, nil, nprop_, r_, set_rates(), state_, and NrnProperty::type().
SingleChan::SingleChan | ( | OcMatrix * | m | ) |
References erand1(), erand_, SingleChanInfo::f_, info_, SingleChanInfo::n_, nil, nprop_, r_, set_rates(), SingleChanInfo::slist_, state_, and SingleChanInfo::type_.
SingleChan::~SingleChan | ( | ) | [virtual] |
References hoc_obj_unref(), info_, nprop_, Rand::obj_, r_, and state_.
References SingleChanState::cond_, and state_.
References SingleChanState::cond_, and state_.
Referenced by cond_transition(), and current_cond().
double SingleChan::cond_transition | ( | ) |
References cond(), current_, dt, i, and state_transition().
Referenced by cond_transitions().
void SingleChan::cond_transitions | ( | Vect * | dt, | |
Vect * | cond | |||
) |
int SingleChan::current_cond | ( | ) |
References cond(), and current_.
Referenced by cond_transitions().
double SingleChan::erand1 | ( | ) | [private] |
References exprand().
Referenced by setrand(), and SingleChan().
double SingleChan::erand2 | ( | ) | [private] |
References r_, and Rand::rand.
Referenced by setrand().
References i, OcMatrix::mep(), n(), SingleChanState::n_, OcMatrix::resize(), s, state_, SingleChanState::tau_, SingleChanState::to_state_, and OcMatrix::zero().
int SingleChan::index | ( | const char * | name | ) |
int SingleChan::n | ( | ) |
References info_, and SingleChanInfo::n_.
Referenced by cond_transitions(), get_rates(), set_rates(), state_transition(), and state_transitions().
References assert, n(), s, state_, SingleChanState::tau_, and SingleChanState::to_state_.
References assert, OcMatrix::getval(), i, info_, n(), SingleChanState::n_, SingleChanInfo::n_, nil, nprop_, OcMatrix::nrow(), SingleChanState::rate(), s, and state_.
void SingleChan::set_rates | ( | double | v | ) |
References Prop::dparam, SingleChanInfo::f_, i, info_, n(), SingleChanState::n_, SingleChanInfo::n_, nprop_, Prop::param, NrnProperty::prop(), and state_.
Referenced by SingleChan().
References erand1(), erand2(), erand_, Rand::gen, hoc_obj_ref(), hoc_obj_unref(), Rand::obj_, r_, and Rand::rand.
double SingleChan::state_transition | ( | ) |
References current_, dt, erand_, i, n(), SingleChanState::n_, s, state_, t, SingleChanState::tau_, and SingleChanState::to_state_.
Referenced by cond_transition(), and state_transitions().
void SingleChan::state_transitions | ( | Vect * | dt, | |
Vect * | state | |||
) |
int SingleChan::current_ [private] |
Referenced by cond_transition(), current_cond(), current_state(), state_transition(), and state_transitions().
double(SingleChan::* SingleChan::erand_)() [private] |
Referenced by setrand(), SingleChan(), and state_transition().
SingleChanInfo* SingleChan::info_ [private] |
Referenced by n(), set_rates(), SingleChan(), and ~SingleChan().
NrnProperty* SingleChan::nprop_ [private] |
Referenced by set_rates(), SingleChan(), and ~SingleChan().
Rand* SingleChan::r_ [private] |
Referenced by erand2(), setrand(), SingleChan(), and ~SingleChan().
Referenced by cond(), get_rates(), set_rates(), SingleChan(), state_transition(), and ~SingleChan().