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, somaFields 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 ConnectableNeuron() -
Method Summary
Modifier and Type Method Description booleanconnectDendrite(ConnectableNeuron neuron, AbstractSynapse synapse, int index)booleanconnectOpenDendrite(ConnectableNeuron neuron, AbstractSynapse synapse)Connect the passed SimpleNeuron to this neuron's first open (synapse-free) dendrite.booleanconnectTo(ConnectableNeuron neuron, AbstractSynapse synapse)Methods inherited from class mgui.neuro.components.AbstractNeuron
connectDendrites, getAxon, getBasicUnit, getDendrites, getSoma, getSubComponents, init, setAxon, setDendrites, setSoma, setTreeNode, toStringMethods 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
-
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
-