#include <kschan.h>
KSChan::KSChan | ( | Object * | obj, | |
boolean | is_point = false | |||
) |
References buf, build(), cond_model_, diag_, elms_, erev_deflt_, gate_size_, gc_, gmax_deflt_, gmaxoffset_, hoc_obj_ref(), iligtrans_, ion_, ion_sym_, is_point(), is_point_, is_single(), is_single_, iv_relation_, ivkstrans_, ligands_, mat_, mechsym_, mechtype_, name_, ngate_, nhhstate_, nil, nksstate_, nligand_, nstate_, ntrans_, obj_, ppoff_, rlsym_, single_, soffset_, state_, state_size_, trans_, trans_size_, and usetable().
KSChan::~KSChan | ( | ) | [virtual] |
void KSChan::add_channel | ( | char ** | m | ) |
References count(), hoc_built_in_symlist, hoc_register_cvode(), hoc_symlist, is_point(), mechtype_, nil, nrn_get_mechtype(), nrn_init(), nrn_jacob(), nrn_state(), point_register_mech(), pointtype_, and register_mech().
Referenced by build().
KSState * KSChan::add_hhstate | ( | const char * | name | ) |
References check_struct(), gate_insert(), gc_, ivkstrans_, KSTransition::ligand_index_, ngate_, nhhstate_, ntrans_, set_single(), setupmat(), KSGateComplex::sindex_, sname_install(), KSTransition::src_, state_, state_consist(), state_insert(), KSTransition::target_, trans_, trans_insert(), KSTransition::type_, and usetable().
References check_struct(), gate_insert(), gc_, ivkstrans_, ngate_, nhhstate_, nksstate_, KSGateComplex::nstate_, nstate_, ntrans_, set_single(), setupmat(), KSGateComplex::sindex_, sname_install(), KSTransition::src_, state_, state_consist(), state_insert(), KSTransition::target_, trans_, and usetable().
KSTransition * KSChan::add_transition | ( | int | src, | |
int | target, | |||
const char * | ligand | |||
) |
References assert, check_struct(), iligtrans_, KSTransition::ligand_index_, nil, ntrans_, set_single(), setupmat(), trans_, trans_insert(), KSTransition::type_, and usetable().
References Datum::_pvoid, KSSingle::alloc(), assert, cond_model_, Prop::dparam, erev_deflt_, gmax_deflt_, gmaxoffset_, ion_sym_, is_point(), ligands_, need_memb(), nil, nligand_, nrn_point_prop_, nrn_promote(), nrn_prop_data_alloc(), nrn_prop_datum_alloc(), NSingleIndex, nstate_, Prop::param, Prop::param_size, ppoff_, Datum::pval, single_, soffset_, and Prop::type.
Referenced by setion(), setligand(), and settype().
void KSChan::alloc_schan_node_data | ( | ) | [private] |
References KSSingle::alloc(), ITERATE, mechsym_, OBJ, Point_process::prop, single_, soffset_, and Symbol::u.
Referenced by set_single().
void KSChan::build | ( | ) | [private] |
References add_channel(), buf, hoc_execerror(), ion_, ion_reg(), ion_sym_, is_point(), looksym(), mechsym_, name_, rlsym_, setcond(), sname_install(), and soffset_.
Referenced by KSChan().
void KSChan::check_struct | ( | ) | [private] |
References assert, gc_, iligtrans_, ivkstrans_, KSTransition::ligand_index_, ngate_, nhhstate_, nksstate_, nligand_, nstate_, ntrans_, KSTransition::obj_, KSState::obj_, state_, and trans_.
Referenced by add_hhstate(), add_ksstate(), add_transition(), remove_state(), remove_transition(), setstructure(), and settype().
References NrnThread::_dt, dtsav_, hh_tab_size_, KSTransition::hh_table_make(), trans_, usetable_, vmax_, and vmin_.
Referenced by usetable().
double KSChan::conductance | ( | double | gmax, | |
double * | state | |||
) |
References KSGateComplex::conductance(), gc_, ngate_, and state_.
Referenced by cur().
int KSChan::count | ( | ) | [virtual] |
References nstate_.
Referenced by add_channel().
References conductance(), KSIv::cur(), g, gmaxoffset_, iv_relation_, NODERHS, and NODEV.
void KSChan::cv_sc_update | ( | int | n, | |
Node ** | nd, | |||
double ** | pp, | |||
Datum ** | ppd, | |||
NrnThread * | nt | |||
) | [virtual] |
References KSSingle::cv_update(), NSingleIndex, nstate_, and single_.
void KSChan::delete_schan_node_data | ( | ) | [private] |
References Datum::_pvoid, Prop::dparam, ITERATE, mechsym_, nil, OBJ, Point_process::prop, and Symbol::u.
Referenced by set_single().
void KSChan::destroy_pnt | ( | Point_process * | pp | ) |
References Datum::_pvoid, destroy_point_process(), Prop::dparam, nil, Point_process::prop, and single_.
References KSTransition::ab(), KSTransition::alpha(), KSTransition::beta(), elms_, iligtrans_, ivkstrans_, mat_, ntrans_, and trans_.
Referenced by init(), matsol(), spec(), and state().
void KSChan::free1 | ( | ) | [private] |
References diag_, elms_, gate_size_, gc_, iv_relation_, ligands_, mat_, ngate_, nil, nstate_, ntrans_, obj_, state_, state_size_, trans_, and trans_size_.
Referenced by setstructure().
References assert, Symbol::extra, hoc_built_in_symlist, hoc_unlink_symbol(), Symbol::name, HocSymExtension::parmlimits, Symbol::type, Symbol::u, and HocSymExtension::units.
Referenced by setion(), sname_install(), and update_prop().
KSGateComplex * KSChan::gate_insert | ( | int | ig, | |
int | is, | |||
int | power | |||
) | [private] |
References gate_size_, gc_, KSGateComplex::index_, KSGateComplex::ks_, ngate_, KSGateComplex::nstate_, KSGateComplex::obj_, obj_, KSGateComplex::power_, KSGateComplex::sindex_, and usetable().
Referenced by add_hhstate(), and add_ksstate().
References gc_, KSGateComplex::index_, ngate_, nil, KSGateComplex::obj_, obj_, and usetable().
Referenced by remove_state().
References fillmat(), gc_, KSTransition::inf(), KSSingle::init(), int, is_single(), mat_dt(), ngate_, nhhstate_, nksstate_, NODEV, KSSingleNodeData::nsingle_, NSingleIndex, nstate_, KSGateComplex::sindex_, single_, soffset_, solvemat(), and trans_.
References assert, hoc_built_in_symlist, hoc_install(), Symbol::type, and Symbol::u.
Referenced by setion(), sname_install(), and update_prop().
void KSChan::ion_consist | ( | ) | [private] |
References cond_model_, Prop::dparam, erealloc, ForAllSections, iligtrans_, ion_sym_, KSTransition::lig2pd(), ligand_consist(), nd, needion(), Prop::next, nligand_, Section::nnode, nrn_promote(), ntrans_, Prop::param, Section::pnode, ppoff_, Node::prop, Datum::pval, rlsym_, sec, Symbol::subtype, trans_, and Prop::type.
Referenced by setion(), setligand(), settype(), and update_prop().
boolean KSChan::is_point | ( | ) | [inline] |
References is_point_.
Referenced by add_channel(), alloc(), build(), KSChan(), set_single(), setcond(), setion(), setname(), sname_install(), and update_prop().
boolean KSChan::is_single | ( | ) | [inline] |
References is_single_.
Referenced by init(), KSChan(), matsol(), power(), set_single(), spec(), state(), and update_prop().
References gmaxoffset_, iv_relation_, KSIv::jacob(), NODED, and NODEV.
References Prop::dparam, ligands_, needion(), nrn_promote(), Prop::param, and Datum::pval.
Referenced by ion_consist().
References assert, hoc_built_in_symlist, hoc_table_lookup(), hoc_top_level_symlist, Symbol::name, Symbol::type, and Symbol::u.
Referenced by build(), setion(), setligand(), setname(), settype(), sname_install(), and update_prop().
void KSChan::map | ( | int | ieq, | |
double ** | pv, | |||
double ** | pvdot, | |||
double * | p, | |||
Datum * | pd, | |||
double * | atol | |||
) | [virtual] |
References nstate_.
void KSChan::mat_dt | ( | double | dt, | |
double * | p | |||
) | [private] |
References NrnThread::_dt, fillmat(), is_single(), mat_dt(), nksstate_, NODEV, NSingleIndex, nstate_, solvemat(), KSTransition::tau(), and trans_.
References Prop::next, Node::prop, prop_alloc(), Symbol::subtype, and Prop::type.
Referenced by ion_consist(), and ligand_consist().
References hoc_Emalloc(), and hoc_malchk().
Referenced by setion(), sname_install(), and update_prop().
void KSChan::nsingle | ( | Point_process * | pp, | |
int | n | |||
) |
References Datum::_pvoid, Prop::dparam, if(), KSSingleNodeData::nsingle_, and Point_process::prop.
int KSChan::nsingle | ( | Point_process * | pp | ) |
References Datum::_pvoid, Prop::dparam, if(), KSSingleNodeData::nsingle_, and Point_process::prop.
void KSChan::power | ( | KSGateComplex * | gc, | |
int | p | |||
) |
References is_single(), KSGateComplex::power_, and set_single().
References check_struct(), gate_remove(), gc_, ivkstrans_, ngate_, nhhstate_, KSGateComplex::nstate_, nstate_, ntrans_, set_single(), setupmat(), KSGateComplex::sindex_, sname_install(), KSTransition::src_, state_consist(), state_remove(), KSTransition::target_, trans_, trans_remove(), and usetable().
References assert, check_struct(), ivkstrans_, set_single(), setupmat(), trans_remove(), and usetable().
References alloc_schan_node_data(), delete_schan_node_data(), gc_, hoc_warning(), is_point(), is_single(), is_single_, mechtype_, memb_func, ngate_, nhhstate_, nil, nksstate_, single_, and update_prop().
Referenced by add_hhstate(), add_ksstate(), add_transition(), power(), remove_state(), remove_transition(), setstructure(), and settype().
void KSChan::setcond | ( | ) |
References cond_model_, gmaxoffset_, hoc_symbol_units(), ion_sym_, is_point(), iv_relation_, Symbol::name, nrn_ion_charge(), ppoff_, Symbol::ppsym, rlsym_, and Symbol::u.
Referenced by build(), setion(), setstructure(), and update_prop().
void KSChan::setion | ( | const char * | s | ) |
References alloc(), Memb_func::alloc, buf, freesym(), gmaxoffset_, hoc_execerror(), iligtrans_, installsym(), ion_, ion_consist(), ion_sym_, is_point(), KSTransition::lig2pd(), looksym(), mechsym_, memb_func, Symbol::name, newppsym(), nil, ntrans_, ppoff_, Symbol::ppsym, rlsym_, Symbol::rng, Symbol::s_varn, setcond(), soffset_, state_consist(), Symbol::subtype, trans_, Symbol::type, and Symbol::u.
References alloc(), Memb_func::alloc, buf, hoc_execerror(), ion_consist(), ion_reg(), ligands_, looksym(), mechsym_, memb_func, state_consist(), Symbol::subtype, and Symbol::type.
void KSChan::setname | ( | const char * | s | ) |
References hoc_Emalloc(), hoc_malchk(), is_point(), looksym(), mechsym_, Symbol::name, name_, Symbol::ppsym, rlsym_, Symbol::s_varn, strstr(), and Symbol::u.
void KSChan::setstructure | ( | Vect * | vec | ) |
References buf, check_struct(), cond_model_, KSState::f_, free1(), gate_size_, gc_, iligtrans_, KSTransition::index_, KSGateComplex::index_, KSState::index_, int, ion_sym_, ivkstrans_, KSTransition::ks_, KSGateComplex::ks_, KSState::ks_, KSTransition::lig2pd(), KSTransition::ligand_index_, ligands_, mechsym_, KSState::name_, ngate_, nhhstate_, nil, nksstate_, nligand_, KSGateComplex::nstate_, nstate_, ntrans_, obj_, KSGateComplex::power_, ppoff_, set_single(), setcond(), setupmat(), KSGateComplex::sindex_, sname_install(), KSTransition::src_, state_, state_consist(), state_size_, KSTransition::target_, trans_, trans_size_, KSTransition::type_, and usetable().
void KSChan::settype | ( | KSTransition * | t, | |
int | type, | |||
const char * | lig | |||
) |
References alloc(), Memb_func::alloc, assert, buf, check_struct(), KSTransition::f0, KSTransition::f1, hoc_execerror(), hoc_object_name(), iligtrans_, KSTransition::index_, ion_consist(), ion_reg(), KSTransition::ligand_index_, ligands_, looksym(), memb_func, move(), nil, nligand_, ntrans_, obj_, KSTransition::obj_, set_single(), setupmat(), KSTransition::src_, state_, state_consist(), Symbol::subtype, KSTransition::target_, trans_, trans_insert(), trans_remove(), Symbol::type, KSTransition::type_, and usetable().
void KSChan::setupmat | ( | ) | [private] |
References diag_, elms_, err, hoc_execerror(), ivkstrans_, mat_, nhhstate_, nil, nksstate_, ntrans_, KSTransition::src_, t, KSTransition::target_, and trans_.
Referenced by add_hhstate(), add_ksstate(), add_transition(), remove_state(), remove_transition(), setstructure(), and settype().
void KSChan::sname_install | ( | ) | [private] |
References buf, freesym(), installsym(), is_point(), looksym(), mechsym_, Symbol::name, KSState::name_, newppsym(), nil, nstate_, Symbol::ppsym, rlsym_, Symbol::rng, Symbol::s_varn, soffset_, state_, Symbol::subtype, and Symbol::u.
Referenced by add_hhstate(), add_ksstate(), build(), remove_state(), setsname(), and setstructure().
void KSChan::solvemat | ( | double * | s | ) | [private] |
References fillmat(), KSTransition::inftau(), is_single(), mulmat(), nksstate_, NODEV, NSingleIndex, nstate_, and trans_.
const char * KSChan::state | ( | int | index | ) |
References NrnThread::_dt, dvinv_, Exp, fillmat(), hh_tab_size_, KSTransition::inftau(), KSTransition::inftau_hh_table(), int, is_single(), mat_dt(), nhhstate_, nksstate_, NODEV, NSingleIndex, nstate_, single_, soffset_, solvemat(), KSSingle::state(), tau, trans_, usetable_, vmin_, and y.
Referenced by state_insert().
References erealloc, ForAllSections, nd, Prop::next, Section::nnode, notify_freed_val_array(), nstate_, Prop::param, Prop::param_size, Section::pnode, Node::prop, rlsym_, sec, soffset_, Symbol::subtype, Prop::type, and v_structure_change.
Referenced by add_hhstate(), add_ksstate(), remove_state(), setion(), setligand(), setstructure(), settype(), and update_prop().
References KSState::f_, KSState::index_, KSState::ks_, KSState::name_, nhhstate_, nksstate_, nstate_, KSState::obj_, obj_, state(), state_, state_size_, and usetable().
Referenced by add_hhstate(), and add_ksstate().
References KSState::index_, nhhstate_, nil, nksstate_, nstate_, KSState::obj_, obj_, state_, and usetable().
Referenced by remove_state().
int KSChan::trans_index | ( | const char * | src, | |
const char * | target | |||
) |
KSTransition * KSChan::trans_insert | ( | int | i, | |
int | src, | |||
int | target | |||
) | [private] |
References KSTransition::f0, KSTransition::f1, iligtrans_, KSTransition::index_, ivkstrans_, KSTransition::ks_, nhhstate_, nil, ntrans_, KSTransition::obj_, obj_, KSTransition::src_, KSTransition::target_, trans_, trans_size_, and usetable().
Referenced by add_hhstate(), add_transition(), and settype().
References iligtrans_, KSTransition::index_, ivkstrans_, nil, ntrans_, KSTransition::obj_, obj_, trans_, and usetable().
Referenced by remove_state(), remove_transition(), and settype().
void KSChan::update_prop | ( | ) | [private] |
References CONST, dsize_, freesym(), gmaxoffset_, installsym(), ion_consist(), ion_sym_, is_point(), is_single(), looksym(), mechsym_, newppsym(), nil, nligand_, NSingleIndex, nstate_, ppoff_, Symbol::ppsym, psize_, rlsym_, Symbol::rng, Symbol::s_varn, setcond(), soffset_, state_consist(), Symbol::subtype, and Symbol::u.
Referenced by set_single().
boolean KSChan::usetable | ( | ) | [inline] |
References usetable_.
Referenced by add_hhstate(), add_ksstate(), add_transition(), gate_insert(), gate_remove(), KSChan(), remove_state(), remove_transition(), setstructure(), settype(), state_insert(), state_remove(), trans_insert(), trans_remove(), and usetable().
int KSChan::usetable | ( | double * | vmin, | |
double * | vmax | |||
) |
References hh_tab_size_, vmax_, and vmin_.
References check_table_thread(), dtsav_, mechtype_, memb_func, nrn_mk_table_check(), nrn_threads, Memb_func::thread_table_check_, and usetable_.
References dvinv_, hh_tab_size_, usetable(), vmax_, and vmin_.
Referenced by KSTransition::lig2pd(), and KSTransition::setf().
Referenced by alloc(), ion_consist(), KSChan(), setcond(), and setstructure().
int KSChan::cvode_ieq_ [private] |
double** KSChan::diag_ [private] |
Referenced by free1(), KSChan(), mat_dt(), and setupmat().
int KSChan::dsize_ [private] |
Referenced by update_prop().
double KSChan::dtsav_ [private] |
Referenced by check_table_thread(), and usetable().
double KSChan::dvinv_ [private] |
Referenced by state(), and usetable().
double** KSChan::elms_ [private] |
Referenced by fillmat(), free1(), KSChan(), and setupmat().
double KSChan::erev_deflt_ |
int KSChan::gate_size_ [private] |
Referenced by free1(), gate_insert(), KSChan(), and setstructure().
Referenced by add_hhstate(), add_ksstate(), check_struct(), conductance(), free1(), gate_index(), gate_insert(), gate_remove(), init(), KSChan(), remove_state(), set_single(), and setstructure().
double KSChan::gmax_deflt_ |
int KSChan::gmaxoffset_ [private] |
int KSChan::hh_tab_size_ [private] |
Referenced by check_table_thread(), state(), and usetable().
Referenced by add_transition(), check_struct(), fillmat(), ion_consist(), KSChan(), setion(), setstructure(), settype(), trans_insert(), and trans_remove().
CopyString KSChan::ion_ |
Referenced by alloc(), build(), ion_consist(), KSChan(), setcond(), setion(), setstructure(), and update_prop().
boolean KSChan::is_point_ [private] |
Referenced by is_point(), and KSChan().
boolean KSChan::is_single_ [private] |
Referenced by is_single(), KSChan(), and set_single().
Referenced by add_hhstate(), add_ksstate(), check_struct(), fillmat(), KSChan(), remove_state(), remove_transition(), setstructure(), setupmat(), trans_insert(), and trans_remove().
Referenced by alloc(), free1(), KSChan(), ligand_consist(), setligand(), setstructure(), and settype().
char* KSChan::mat_ [private] |
Referenced by fillmat(), free1(), KSChan(), mulmat(), setupmat(), and solvemat().
Symbol* KSChan::mechsym_ [private] |
Referenced by alloc_schan_node_data(), build(), delete_schan_node_data(), KSChan(), setion(), setligand(), setname(), setstructure(), sname_install(), and update_prop().
int KSChan::mechtype_ [private] |
Referenced by add_channel(), KSChan(), set_single(), and usetable().
CopyString KSChan::name_ |
Referenced by add_hhstate(), add_ksstate(), check_struct(), conductance(), free1(), gate_index(), gate_insert(), gate_remove(), init(), KSChan(), remove_state(), set_single(), and setstructure().
Referenced by add_hhstate(), add_ksstate(), check_struct(), init(), KSChan(), remove_state(), set_single(), setstructure(), setupmat(), state(), state_insert(), state_remove(), and trans_insert().
Referenced by add_ksstate(), check_struct(), init(), KSChan(), mat_dt(), matsol(), set_single(), setstructure(), setupmat(), spec(), state(), state_insert(), and state_remove().
Referenced by alloc(), check_struct(), ion_consist(), KSChan(), setstructure(), settype(), and update_prop().
Referenced by add_ksstate(), alloc(), check_struct(), count(), cv_sc_update(), free1(), init(), KSChan(), KSSingle::KSSingle(), map(), matsol(), remove_state(), setstructure(), sname_install(), spec(), state(), state_consist(), state_insert(), state_remove(), and update_prop().
Object* KSChan::obj_ |
Referenced by free1(), gate_insert(), gate_remove(), KSChan(), setstructure(), settype(), state_insert(), state_remove(), trans_insert(), and trans_remove().
int KSChan::pointtype_ [private] |
Referenced by add_channel().
int KSChan::ppoff_ [private] |
Referenced by alloc(), ion_consist(), KSChan(), setcond(), setion(), setstructure(), and update_prop().
int KSChan::psize_ [private] |
Referenced by update_prop().
Symbol* KSChan::rlsym_ [private] |
Referenced by build(), ion_consist(), KSChan(), setcond(), setion(), setname(), sname_install(), state_consist(), and update_prop().
Referenced by alloc(), alloc_schan_node_data(), cv_sc_update(), destroy_pnt(), init(), KSChan(), set_single(), and state().
int KSChan::soffset_ [private] |
Referenced by alloc(), alloc_schan_node_data(), build(), init(), KSChan(), setion(), sname_install(), state(), state_consist(), and update_prop().
Referenced by add_hhstate(), add_ksstate(), check_struct(), conductance(), free1(), KSChan(), setsname(), setstructure(), settype(), sname_install(), state(), state_insert(), state_remove(), and trans_index().
int KSChan::state_size_ [private] |
Referenced by free1(), KSChan(), setstructure(), and state_insert().
Referenced by add_hhstate(), add_ksstate(), add_transition(), check_struct(), check_table_thread(), fillmat(), free1(), init(), ion_consist(), KSChan(), KSSingle::KSSingle(), matsol(), remove_state(), setion(), setstructure(), settype(), setupmat(), spec(), state(), trans_index(), trans_insert(), and trans_remove().
int KSChan::trans_size_ [private] |
Referenced by free1(), KSChan(), setstructure(), and trans_insert().
boolean KSChan::usetable_ [private] |
Referenced by check_table_thread(), state(), and usetable().
double KSChan::vmax_ [private] |
Referenced by check_table_thread(), and usetable().
double KSChan::vmin_ [private] |
Referenced by check_table_thread(), state(), and usetable().