Package mgui.neuro.components
Class AbstractDendrites
java.lang.Object
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Comparable<DynamicModelComponent>
,AttributeListener
,AttributeObject
,InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
,DynamicModelComponent
,TimeStepListener
,Updateable
,Dendrites
,NeuronalComponent
- Direct Known Subclasses:
SimpleDendrites
public abstract class AbstractDendrites extends AbstractNeuronalComponent implements Dendrites
Default class for dendrites. Contains a list of dendrite objects which can be
connected to other dendrites. A dendrite can only be connected to one other dendrite,
thus running connectDendrites will disconnect any existing connections d1 has. A
dendrite can receive any number of connections; thus the set of connected dendrites
is either disjoint or a tree. All dendrites without forward connections should be
connected to a soma by the instance of Neuron that contains them.
NOTE: the tree constraint can be broken by overriding methods, if this is for some
reason desirable.
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description java.util.ArrayList<AbstractDendrite>
components
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 AbstractDendrites()
-
Method Summary
Modifier and Type Method Description void
addDendrite(Dendrite d)
void
addDendrite(Dendrite d, Dendrite d2)
java.util.ArrayList<DynamicModelComponent>
getSubComponents()
Returns a list of the complete subcomponent tree.java.util.ArrayList<Synapse>
getSynapses()
protected void
init()
void
removeDendrite(Dendrite d)
void
setParent(AbstractNeuron n)
void
setTreeNode(InterfaceTreeNode treeNode)
Sets the children for this node'sInterfaceTreeNode
.java.lang.String
toString()
Methods inherited from class mgui.neuro.components.AbstractNeuronalComponent
clone, getParent, setParent
Methods inherited from class mgui.neuro.components.AbstractNeuroComponent
addConnection, addEvent, addListener, addToEngine, attributeUpdated, compareTo, executeEvent, 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, updateComponent, 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, clone, 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, setParent
Methods inherited from interface mgui.models.dynamic.TimeStepListener
timeElapsed
Methods inherited from interface mgui.interfaces.trees.TreeObject
getTreeLabel, issueTreeNode
-
Field Details
-
components
-
-
Constructor Details
-
AbstractDendrites
public AbstractDendrites()
-
-
Method Details
-
init
protected void init()- Overrides:
init
in classAbstractNeuroComponent
-
addDendrite
- Specified by:
addDendrite
in interfaceDendrites
- Throws:
NeuroException
-
addDendrite
- Specified by:
addDendrite
in interfaceDendrites
- Throws:
NeuroException
-
removeDendrite
- Specified by:
removeDendrite
in interfaceDendrites
- Throws:
NeuroException
-
setParent
-
setTreeNode
Description copied from interface:TreeObject
Sets the children for this node'sInterfaceTreeNode
.- Specified by:
setTreeNode
in interfaceTreeObject
- Overrides:
setTreeNode
in classAbstractInterfaceObject
-
getSubComponents
Description copied from class:AbstractNeuroComponent
Returns a list of the complete subcomponent tree. Subclasses containing subcomponents should override this and provide an enumeration of all subcomponents, also calling this method for each subcomponent to ensure a complete tree is returned.- Specified by:
getSubComponents
in interfaceDynamicModelComponent
- Overrides:
getSubComponents
in classAbstractNeuroComponent
-
getSynapses
- Specified by:
getSynapses
in interfaceDendrites
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-