Package mgui.neuro.components.types
Class ConnectableNeuron
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.models.networks.components.AbstractNetworkComponent
mgui.neuro.components.AbstractNeuroComponent
mgui.neuro.components.AbstractNeuron
mgui.neuro.components.types.ConnectableNeuron
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Comparable<DynamicModelComponent>
,AttributeListener
,AttributeObject
,InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
,DynamicModelComponent
,TimeStepListener
,Updateable
,Neuron
- Direct Known Subclasses:
AbstractMotorNeuron
,AbstractSensoryNeuron
,SimpleNeuron
public abstract class ConnectableNeuron extends AbstractNeuron
-
Field Summary
Fields inherited from class mgui.neuro.components.AbstractNeuron
axon, dendrites, soma
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 ConnectableNeuron()
-
Method Summary
Modifier and Type Method Description boolean
connectDendrite(ConnectableNeuron neuron, AbstractSynapse synapse, int index)
boolean
connectOpenDendrite(ConnectableNeuron neuron, AbstractSynapse synapse)
Connect the passed SimpleNeuron to this neuron's first open (synapse-free) dendrite.boolean
connectTo(ConnectableNeuron neuron, AbstractSynapse synapse)
Methods inherited from class mgui.neuro.components.AbstractNeuron
connectDendrites, getAxon, getBasicUnit, getDendrites, getSoma, getSubComponents, init, setAxon, setDendrites, setSoma, setTreeNode, toString
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, 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.models.dynamic.TimeStepListener
timeElapsed
Methods inherited from interface mgui.interfaces.trees.TreeObject
getTreeLabel, issueTreeNode
-
Constructor Details
-
ConnectableNeuron
public ConnectableNeuron()
-
-
Method Details
-
connectTo
- Throws:
NeuroException
-
connectDendrite
public boolean connectDendrite(ConnectableNeuron neuron, AbstractSynapse synapse, int index) throws NeuroException- Throws:
NeuroException
-
connectOpenDendrite
public boolean connectOpenDendrite(ConnectableNeuron neuron, AbstractSynapse synapse) throws NeuroExceptionConnect the passed SimpleNeuron to this neuron's first open (synapse-free) dendrite. If no dendrites exist, no dendrites are open, or no axon exists in the connecting neuron, returns false. Otherwise connects the neurons and returns true. Sets the intermediating synapse's weight toand its restingV to that of the dendrite. - Parameters:
neuron
-- Returns:
- Throws:
NeuroException
-