classes action make remove selected count menu select
mt = new MechanismType(0)mt = new MechanismType(1)The 0 argument creates a list of all available distributed membrane mechanisms (as opposed to PointProcesses). eg "hh", "pas", "extracellular". that can be inserted into a section.
The 1 argument creates a list of all available Point Processes. eg. IClamp, AlphaSynapse, VClamp.
Mechanism order is the same as the argument order that created the "special"
during nrnivmodl or mknrndll. Therefore when a saved session depends
on information in a MechanismType it is dependent on a particular special
or dll.
objref mt
//Print the names of all density mechanisms
mt = new MechanismType(0)
strdef mname
for i=0, mt.count()-1 {
mt.select(i)
mt.selected(mname)
print mname
}
MechanismType
mt.select("name")mt.select(i)
MechanismType
i = mt.selected([strdef])
MechanismType
mt.remove()
MechanismType
mt.make()mt.make(objectvar)mt.make()
mt.make(objectvar)
MechanismType
i = mt.count()
MechanismType
mt.menu()xpanel. The menu
label always reflects the current selection. Submenu items are indexed
according to position with the first item being item 0. When the mouse
button is released on a submenu item that item becomes the selection
and the action (if any) is executed.
MechanismType
mt.action("command")