Class AbstractCompartment
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.models.networks.components.AbstractNetworkComponent
mgui.neuro.components.AbstractNeuroComponent
mgui.neuro.components.AbstractNeuronalComponent
mgui.neuro.components.compartments.AbstractCompartment
- 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
- Direct Known Subclasses:
SimpleCompartment
public abstract class AbstractCompartment extends AbstractNeuronalComponent implements DynamicModelODEComponent
Basic compartment for compartmental model components.
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description doublepotentialorg.opensourcephysics.numerics.ODESolversolverdouble[]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 AbstractCompartment() -
Method Summary
Modifier and Type Method Description java.lang.Objectclone()protected booleanexecuteEvent(DynamicModelEvent e)org.opensourcephysics.numerics.ODESolvergetODESolver()abstract voidgetRate(double[] state, double[] rate)double[]getState()protected voidinit()abstract voidreset()Reset the compartment's temporary variablesvoidresetSolver()voidtimeElapsed(double time)booleanupdateFromClock()Methods 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
-
potential
public double potential -
state
public double[] state -
solver
public org.opensourcephysics.numerics.ODESolver solver
-
-
Constructor Details
-
AbstractCompartment
public AbstractCompartment()
-
-
Method Details
-
init
protected void init()- Overrides:
initin classAbstractNeuroComponent
-
executeEvent
- Overrides:
executeEventin classAbstractNeuroComponent- Throws:
NeuroException
-
timeElapsed
public void timeElapsed(double time)- Specified by:
timeElapsedin interfaceTimeStepListener- Overrides:
timeElapsedin classAbstractNeuroComponent
-
updateFromClock
public boolean updateFromClock()- Overrides:
updateFromClockin classAbstractNeuroComponent
-
clone
public java.lang.Object clone()- Specified by:
clonein interfaceDynamicModelComponent- Specified by:
clonein classAbstractNeuronalComponent
-
resetSolver
- Throws:
ODEException
-
reset
public abstract void reset()Reset the compartment's temporary variables- Specified by:
resetin interfaceDynamicModelComponent- Overrides:
resetin classAbstractNeuroComponent
-
getODESolver
public org.opensourcephysics.numerics.ODESolver getODESolver()- Overrides:
getODESolverin classAbstractNeuroComponent
-
getRate
public abstract void getRate(double[] state, double[] rate)- Specified by:
getRatein interfaceorg.opensourcephysics.numerics.ODE- Overrides:
getRatein classAbstractNeuroComponent
-
getState
public double[] getState()- Specified by:
getStatein interfaceorg.opensourcephysics.numerics.ODE
-