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 double
potential
Function
transferFunction
Fields inherited from class mgui.neuro.components.AbstractNeuronalComponent
parent
Fields inherited from class mgui.neuro.components.AbstractNeuroComponent
attributes, clock, connections, events, hasSubComponents, id, listeners, solver, updated
Fields 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.Object
clone()
protected boolean
executeEvent(DynamicModelEvent e)
double
getOutput()
double
getRestingV()
double
getThreshold()
protected void
init()
void
setOutput(double o)
void
setRestingV(double r)
void
setThreshold(double t)
protected boolean
updateComponent()
Methods inherited from class mgui.neuro.components.AbstractSoma
toString
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, getODESolver, getRate, getSolver, getSubComponents, hasSubComponents, removeConnection, removeListener, reset, resetClock, setAttribute, setAttributes, setDelay, setID, setID, setName, setODESolver, setSolver, setSolver, timeElapsed, updateFromClock
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, 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, reset, 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.neuro.components.NeuronalComponent
getParent, setParent
Methods inherited from interface mgui.models.dynamic.TimeStepListener
timeElapsed
Methods 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:
init
in 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:
executeEvent
in classAbstractNeuroComponent
- Throws:
NeuroException
-
updateComponent
protected boolean updateComponent()- Overrides:
updateComponent
in classAbstractNeuroComponent
-
clone
public java.lang.Object clone()- Specified by:
clone
in interfaceDynamicModelComponent
- Specified by:
clone
in classAbstractNeuronalComponent
-