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>componentsFields 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 AbstractDendrites() -
Method Summary
Modifier and Type Method Description voidaddDendrite(Dendrite d)voidaddDendrite(Dendrite d, Dendrite d2)java.util.ArrayList<DynamicModelComponent>getSubComponents()Returns a list of the complete subcomponent tree.java.util.ArrayList<Synapse>getSynapses()protected voidinit()voidremoveDendrite(Dendrite d)voidsetParent(AbstractNeuron n)voidsetTreeNode(InterfaceTreeNode treeNode)Sets the children for this node'sInterfaceTreeNode.java.lang.StringtoString()Methods inherited from class mgui.neuro.components.AbstractNeuronalComponent
clone, getParent, setParentMethods 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, updateFromClockMethods inherited from class mgui.models.networks.components.AbstractNetworkComponent
getAttributeValueMethods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getTreeLabel, isDestroyed, issueTreeNode, 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, clone, executeEvents, getID, 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
-
Field Details
-
components
-
-
Constructor Details
-
AbstractDendrites
public AbstractDendrites()
-
-
Method Details
-
init
protected void init()- Overrides:
initin classAbstractNeuroComponent
-
addDendrite
- Specified by:
addDendritein interfaceDendrites- Throws:
NeuroException
-
addDendrite
- Specified by:
addDendritein interfaceDendrites- Throws:
NeuroException
-
removeDendrite
- Specified by:
removeDendritein interfaceDendrites- Throws:
NeuroException
-
setParent
-
setTreeNode
Description copied from interface:TreeObjectSets the children for this node'sInterfaceTreeNode.- Specified by:
setTreeNodein interfaceTreeObject- Overrides:
setTreeNodein classAbstractInterfaceObject
-
getSubComponents
Description copied from class:AbstractNeuroComponentReturns 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:
getSubComponentsin interfaceDynamicModelComponent- Overrides:
getSubComponentsin classAbstractNeuroComponent
-
getSynapses
- Specified by:
getSynapsesin interfaceDendrites
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-