Package mgui.neuro.components.simple
Class SimpleSoma
java.lang.Object
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Comparable<DynamicModelComponent>,AttributeListener,AttributeObject,InterfaceObject,NamedObject,TreeObject,CleanableObject,DynamicModelComponent,TimeStepListener,Updateable,NeuronalComponent,Soma
public class SimpleSoma extends AbstractSoma
Simple soma for, e.g.,
SimpleNeuron. Fires an "action potential" of magnitude specified
by the output parameter, if potential > threshold.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description doublepotentialFunctiontransferFunctionFields inherited from class mgui.neuro.components.AbstractNeuronalComponent
parentFields inherited from class mgui.neuro.components.AbstractNeuroComponent
attributes, clock, connections, events, hasSubComponents, id, listeners, solver, updatedFields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes -
Constructor Summary
Constructors Constructor Description SimpleSoma(double threshold, double output, double restingV) -
Method Summary
Modifier and Type Method Description java.lang.Objectclone()protected booleanexecuteEvent(DynamicModelEvent e)doublegetOutput()doublegetRestingV()doublegetThreshold()protected voidinit()voidsetOutput(double o)voidsetRestingV(double r)voidsetThreshold(double t)protected booleanupdateComponent()Methods inherited from class mgui.neuro.components.AbstractSoma
toStringMethods 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, getODESolver, getRate, getSolver, getSubComponents, hasSubComponents, removeConnection, removeListener, reset, resetClock, setAttribute, setAttributes, setDelay, setID, setID, setName, setODESolver, setSolver, setSolver, timeElapsed, updateFromClockMethods 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, 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, reset, setID, setIDMethods inherited from interface mgui.interfaces.InterfaceObject
destroy, isDestroyedMethods inherited from interface mgui.interfaces.NamedObject
getName, setNameMethods inherited from interface mgui.neuro.components.NeuronalComponent
getParent, setParentMethods inherited from interface mgui.models.dynamic.TimeStepListener
timeElapsedMethods inherited from interface mgui.interfaces.trees.TreeObject
getTreeLabel, issueTreeNode, setTreeNode
-
Field Details
-
transferFunction
-
potential
public double potential
-
-
Constructor Details
-
SimpleSoma
public SimpleSoma(double threshold, double output, double restingV)
-
-
Method Details
-
init
protected void init()- Overrides:
initin classAbstractNeuroComponent
-
setThreshold
public void setThreshold(double t) -
getThreshold
public double getThreshold() -
setOutput
public void setOutput(double o) -
getOutput
public double getOutput() -
setRestingV
public void setRestingV(double r) -
getRestingV
public double getRestingV() -
executeEvent
- Overrides:
executeEventin classAbstractNeuroComponent- Throws:
NeuroException
-
updateComponent
protected boolean updateComponent()- Overrides:
updateComponentin classAbstractNeuroComponent
-
clone
public java.lang.Object clone()- Specified by:
clonein interfaceDynamicModelComponent- Specified by:
clonein classAbstractNeuronalComponent
-