Package mgui.neuro.components
Class AbstractNeuron
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.models.networks.components.AbstractNetworkComponent
mgui.neuro.components.AbstractNeuroComponent
mgui.neuro.components.AbstractNeuron
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Comparable<DynamicModelComponent>,AttributeListener,AttributeObject,InterfaceObject,NamedObject,TreeObject,CleanableObject,DynamicModelComponent,TimeStepListener,Updateable,Neuron
- Direct Known Subclasses:
ConnectableNeuron
public abstract class AbstractNeuron extends AbstractNeuroComponent implements Neuron
-
Field Summary
Fields Modifier and Type Field Description AbstractAxonaxonAbstractDendritesdendritesAbstractSomasomaFields 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 AbstractNeuron() -
Method Summary
Modifier and Type Method Description voidconnectDendrites()Resets the dendrite connectivity for this neuron by connecting all dendrites which are not connected to other dendrites to this neuron's soma.AxongetAxon()static AbstractNeurongetBasicUnit()DendritesgetDendrites()AbstractSomagetSoma()java.util.ArrayList<DynamicModelComponent>getSubComponents()Returns a list of the complete subcomponent tree.protected voidinit()voidsetAxon(Axon a)voidsetDendrites(Dendrites d)voidsetSoma(Soma s)voidsetTreeNode(InterfaceTreeNode treeNode)Sets the children for this node'sInterfaceTreeNode.java.lang.StringtoString()Methods inherited from class mgui.neuro.components.AbstractNeuroComponent
addConnection, addEvent, addListener, addToEngine, attributeUpdated, clone, 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.models.dynamic.TimeStepListener
timeElapsedMethods inherited from interface mgui.interfaces.trees.TreeObject
getTreeLabel, issueTreeNode
-
Field Details
-
axon
-
soma
-
dendrites
-
-
Constructor Details
-
AbstractNeuron
public AbstractNeuron()
-
-
Method Details
-
init
protected void init()- Overrides:
initin classAbstractNeuroComponent
-
getSoma
-
setSoma
- Specified by:
setSomain interfaceNeuron- Throws:
NeuroException
-
getDendrites
- Specified by:
getDendritesin interfaceNeuron
-
setDendrites
- Specified by:
setDendritesin interfaceNeuron- Throws:
NeuroException
-
getAxon
-
getBasicUnit
-
setAxon
- Specified by:
setAxonin interfaceNeuron- Throws:
NeuroException
-
connectDendrites
public void connectDendrites()Resets the dendrite connectivity for this neuron by connecting all dendrites which are not connected to other dendrites to this neuron's soma. If soma or dendrites are null this does nothing, obviously :P- Specified by:
connectDendritesin interfaceNeuron
-
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
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-