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 int
adj
double
Cm
double
diameter
double
Iinj
double
length
double
Ra
double
Rm
double
Vadj
double
Vm
Fields inherited from class mgui.neuro.components.compartments.AbstractCompartment
potential, solver, state
Fields inherited from class mgui.neuro.components.AbstractNeuronalComponent
parent
Fields inherited from class mgui.neuro.components.AbstractNeuroComponent
attributes, clock, connections, events, hasSubComponents, id, listeners, updated
Fields 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, updateFromClock
Methods inherited from class mgui.neuro.components.AbstractNeuronalComponent
getParent, setParent
Methods 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, updateComponent
Methods inherited from class mgui.models.networks.components.AbstractNetworkComponent
getAttributeValue
Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getTreeLabel, isDestroyed, issueTreeNode, setTreeNode, updateTreeNodes
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface mgui.interfaces.util.CleanableObject
clean
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface mgui.models.dynamic.DynamicModelComponent
addConnection, addEvent, addToEngine, executeEvents, getID, getSubComponents, hasSubComponents, removeConnection, setID, setID
Methods inherited from interface mgui.interfaces.InterfaceObject
destroy, isDestroyed
Methods inherited from interface mgui.interfaces.NamedObject
getName, setName
Methods 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:
init
in classAbstractCompartment
-
getRate
public void getRate(double[] state, double[] rate)- Specified by:
getRate
in interfaceorg.opensourcephysics.numerics.ODE
- Specified by:
getRate
in classAbstractCompartment
-
reset
public void reset()Description copied from class:AbstractCompartment
Reset the compartment's temporary variables- Specified by:
reset
in interfaceDynamicModelComponent
- Specified by:
reset
in classAbstractCompartment
-