Package mgui.neuro.components.simple
Class SimpleDendrite
java.lang.Object
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Comparable<DynamicModelComponent>
,AttributeListener
,AttributeObject
,InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
,DynamicModelComponent
,TimeStepListener
,Updateable
,Dendrite
,NeuronalComponent
public class SimpleDendrite extends AbstractDendrite
Simple dendrite, e.g., for
SimpleNeuron
.- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields inherited from class mgui.neuro.components.AbstractDendrite
next, soma, synapses
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 SimpleDendrite(double restingV)
-
Method Summary
Modifier and Type Method Description void
addSynapse(Synapse s)
Add a synapse and create connection between this dendrite and synapsejava.lang.Object
clone()
void
connectTo(Dendrite d)
Connects this dendrite to another dendrite.void
connectTo(Soma s)
Connects this dendrite to a soma.protected boolean
executeEvent(DynamicModelEvent e)
double
getRestingV()
protected void
init()
void
setRestingV(double restingV)
protected boolean
updateComponent()
Methods inherited from class mgui.neuro.components.AbstractDendrite
disconnect, getSubComponents, getSynapseCount, getSynapses, isConnectedToDendrite, isConnectedToSoma, removeSynapse, setParent, setTreeNode, toString
Methods inherited from class mgui.neuro.components.AbstractNeuronalComponent
getParent
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, 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, 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, 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
Methods inherited from interface mgui.models.dynamic.TimeStepListener
timeElapsed
Methods inherited from interface mgui.interfaces.trees.TreeObject
getTreeLabel, issueTreeNode
-
Constructor Details
-
SimpleDendrite
public SimpleDendrite(double restingV)
-
-
Method Details
-
init
protected void init()- Overrides:
init
in classAbstractDendrite
-
setRestingV
public void setRestingV(double restingV) -
getRestingV
public double getRestingV() -
addSynapse
Description copied from class:AbstractDendrite
Add a synapse and create connection between this dendrite and synapse- Specified by:
addSynapse
in interfaceDendrite
- Overrides:
addSynapse
in classAbstractDendrite
- Parameters:
s
- synapse to add- Throws:
NeuroException
-
connectTo
Description copied from class:AbstractDendrite
Connects this dendrite to another dendrite. All existing connections are removed.- Specified by:
connectTo
in interfaceDendrite
- Overrides:
connectTo
in classAbstractDendrite
- Parameters:
d
- dendrite to connect to- Throws:
NeuroException
-
connectTo
Description copied from class:AbstractDendrite
Connects this dendrite to a soma. All existing connections are removed.- Specified by:
connectTo
in interfaceDendrite
- Overrides:
connectTo
in classAbstractDendrite
- Parameters:
s
- soma to connect to- Throws:
NeuroException
-
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
-