Class SimpleCompartment
java.lang.Object
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Comparable<DynamicModelComponent>,AttributeListener,AttributeObject,InterfaceObject,NamedObject,TreeObject,CleanableObject,DynamicModelComponent,DynamicModelODEComponent,TimeStepListener,Updateable,NeuronalComponent,org.opensourcephysics.numerics.ODE
public class SimpleCompartment extends AbstractCompartment
-
Field Summary
Fields Modifier and Type Field Description intadjdoubleCmdoublediameterdoubleIinjdoublelengthdoubleRadoubleRmdoubleVadjdoubleVmFields inherited from class mgui.neuro.components.compartments.AbstractCompartment
potential, solver, stateFields inherited from class mgui.neuro.components.AbstractNeuronalComponent
parentFields inherited from class mgui.neuro.components.AbstractNeuroComponent
attributes, clock, connections, events, hasSubComponents, id, listeners, updatedFields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes -
Constructor Summary
Constructors Constructor Description SimpleCompartment()SimpleCompartment(double Rm, double Ra, double Cm, double length, double diameter) -
Method Summary
Methods inherited from class mgui.neuro.components.compartments.AbstractCompartment
clone, executeEvent, getODESolver, getState, resetSolver, timeElapsed, updateFromClockMethods inherited from class mgui.neuro.components.AbstractNeuronalComponent
getParent, setParentMethods inherited from class mgui.neuro.components.AbstractNeuroComponent
addConnection, addEvent, addListener, addToEngine, attributeUpdated, compareTo, executeEvents, fireListeners, fireListeners, getAttribute, getAttributes, getConnections, getDelay, getID, getName, getSolver, getSubComponents, hasSubComponents, removeConnection, removeListener, resetClock, setAttribute, setAttributes, setDelay, setID, setID, setName, setODESolver, setSolver, setSolver, updateComponentMethods inherited from class mgui.models.networks.components.AbstractNetworkComponent
getAttributeValueMethods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getTreeLabel, isDestroyed, issueTreeNode, setTreeNode, updateTreeNodesMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mgui.interfaces.util.CleanableObject
cleanMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface mgui.models.dynamic.DynamicModelComponent
addConnection, addEvent, addToEngine, executeEvents, getID, getSubComponents, hasSubComponents, removeConnection, setID, setIDMethods inherited from interface mgui.interfaces.InterfaceObject
destroy, isDestroyedMethods inherited from interface mgui.interfaces.NamedObject
getName, setNameMethods inherited from interface mgui.interfaces.trees.TreeObject
getTreeLabel, issueTreeNode, setTreeNode
-
Field Details
-
Rm
public double Rm -
Cm
public double Cm -
Ra
public double Ra -
diameter
public double diameter -
length
public double length -
Vm
public double Vm -
Iinj
public double Iinj -
Vadj
public double Vadj -
adj
public int adj
-
-
Constructor Details
-
SimpleCompartment
public SimpleCompartment() -
SimpleCompartment
public SimpleCompartment(double Rm, double Ra, double Cm, double length, double diameter)
-
-
Method Details
-
init
protected void init()- Overrides:
initin classAbstractCompartment
-
getRate
public void getRate(double[] state, double[] rate)- Specified by:
getRatein interfaceorg.opensourcephysics.numerics.ODE- Specified by:
getRatein classAbstractCompartment
-
reset
public void reset()Description copied from class:AbstractCompartmentReset the compartment's temporary variables- Specified by:
resetin interfaceDynamicModelComponent- Specified by:
resetin classAbstractCompartment
-