55 "Sends Gk and Vm from one compartment to the other");
63 "Sends Gk and Vm from one compartment to the other");
72 "Conductance of the gap junction",
81 "Handles 'process' call",
86 "Handles 'reinit' call",
89 static Finfo* processShared[] = {
95 "This is a shared message to receive Process messages "
96 "from the scheduler objects. The Process should be called "
97 "_second_ in each clock tick, after the Init message."
98 "The first entry in the shared msg is a MsgDest "
99 "for the Process operation. It has a single argument, "
100 "ProcInfo, which holds lots of information about current "
101 "time, thread, dt and so on. The second entry is a MsgDest "
102 "for the Reinit operation. It also uses ProcInfo. ",
103 processShared,
sizeof( processShared ) /
sizeof(
Finfo* ));
107 "Handles Vm message from compartment",
110 static Finfo * channel1Shared[] = {
116 "This is a shared message to couple the conductance and Vm from\n"
117 "terminal 2 to the compartment at terminal 1. The first entry is source\n"
118 "sending out Gk and Vm2, the second entry is destination for Vm1.",
119 channel1Shared,
sizeof(channel1Shared)/
sizeof(
Finfo*));
123 "Handles Vm message from another compartment",
126 static Finfo * channel2Shared[] = {
132 "This is a shared message to couple the conductance and Vm from\n"
133 "terminal 1 to the compartment at terminal 2. The first entry is source\n"
134 "sending out Gk and Vm1, the second entry is destination for Vm2.",
135 channel2Shared,
sizeof(channel2Shared)/
sizeof(
Finfo*));
137 static Finfo * gapJunctionFinfos[] =
145 static string doc[] = {
146 "Name",
"GapJunction",
147 "Author",
"Subhasis Ray, 2013",
148 "Description",
"Implementation of gap junction between two compartments. The shared\n"
149 "fields, 'channel1' and 'channel2' can be connected to the 'channel'\n"
150 "message of the compartments at either end of the gap junction. The\n"
151 "compartments will send their Vm to the gap junction and receive the\n"
152 "conductance 'Gk' of the gap junction and the Vm of the other\n"
161 sizeof(gapJunctionFinfos)/
sizeof(
Finfo*),
164 sizeof(doc) /
sizeof(
string));
void reinit(const Eref &e, ProcPtr p)
void process(const Eref &e, ProcPtr p)
static SrcFinfo2< double, double > * channel2Out()
static const Cinfo * gapJunctionCinfo
static const Cinfo * initCinfo()
static SrcFinfo2< double, double > * channel1Out()
static const Cinfo * initCinfo()