Package mgui.neuro.components
Class AbstractDendrite
java.lang.Object
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Comparable<DynamicModelComponent>,AttributeListener,AttributeObject,InterfaceObject,NamedObject,TreeObject,CleanableObject,DynamicModelComponent,TimeStepListener,Updateable,Dendrite,NeuronalComponent
- Direct Known Subclasses:
SimpleDendrite
public abstract class AbstractDendrite extends AbstractNeuronalComponent implements Dendrite
-
Field Summary
Fields Modifier and Type Field Description AbstractDendritenextAbstractSomasomajava.util.ArrayList<Synapse>synapsesFields 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 AbstractDendrite() -
Method Summary
Modifier and Type Method Description voidaddSynapse(Synapse s)Add a synapse and create connection between this dendrite and synapsevoidconnectTo(Dendrite d)Connects this dendrite to another dendrite.voidconnectTo(Soma s)Connects this dendrite to a soma.voiddisconnect()java.util.ArrayList<DynamicModelComponent>getSubComponents()Returns a list of the complete subcomponent tree.intgetSynapseCount()java.util.ArrayList<Synapse>getSynapses()protected voidinit()booleanisConnectedToDendrite()booleanisConnectedToSoma()voidremoveSynapse(Synapse s)Remove a synapse along with its connection to this dendritevoidsetParent(Neuron n)voidsetTreeNode(InterfaceTreeNode treeNode)Sets the children for this node'sInterfaceTreeNode.java.lang.StringtoString()Methods inherited from class mgui.neuro.components.AbstractNeuronalComponent
clone, getParentMethods 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
getParentMethods inherited from interface mgui.models.dynamic.TimeStepListener
timeElapsedMethods inherited from interface mgui.interfaces.trees.TreeObject
getTreeLabel, issueTreeNode
-
Field Details
-
synapses
-
next
-
soma
-
-
Constructor Details
-
AbstractDendrite
public AbstractDendrite()
-
-
Method Details
-
init
protected void init()- Overrides:
initin classAbstractNeuroComponent
-
addSynapse
Add a synapse and create connection between this dendrite and synapse- Specified by:
addSynapsein interfaceDendrite- Parameters:
s- synapse to add- Throws:
NeuroException
-
removeSynapse
Remove a synapse along with its connection to this dendrite- Specified by:
removeSynapsein interfaceDendrite- Parameters:
s- synapse to remove
-
connectTo
Connects this dendrite to another dendrite. All existing connections are removed.- Specified by:
connectToin interfaceDendrite- Parameters:
d- dendrite to connect to- Throws:
NeuroException
-
connectTo
Connects this dendrite to a soma. All existing connections are removed.- Specified by:
connectToin interfaceDendrite- Parameters:
s- soma to connect to- Throws:
NeuroException
-
disconnect
public void disconnect()- Specified by:
disconnectin interfaceDendrite
-
isConnectedToDendrite
public boolean isConnectedToDendrite()- Specified by:
isConnectedToDendritein interfaceDendrite
-
isConnectedToSoma
public boolean isConnectedToSoma()- Specified by:
isConnectedToSomain interfaceDendrite
-
getSynapseCount
public int getSynapseCount()- Specified by:
getSynapseCountin interfaceDendrite
-
getSynapses
- Specified by:
getSynapsesin interfaceDendrite
-
setParent
- Specified by:
setParentin interfaceNeuronalComponent- Overrides:
setParentin classAbstractNeuronalComponent- Throws:
NeuroException
-
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
-