Package mgui.neuro.components
Class AbstractMotorNeuron
java.lang.Object
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Comparable<DynamicModelComponent>,AttributeListener,AttributeObject,InterfaceObject,NamedObject,TreeObject,CleanableObject,DynamicModelComponent,TimeStepListener,Updateable,MotorNeuron,Neuron
- Direct Known Subclasses:
SimpleMotorNeuron
public abstract class AbstractMotorNeuron extends ConnectableNeuron implements MotorNeuron
Abstract class for a motor (output) neuron. Note that a motor neuron acts similarly to a
muscle cell; i.e., it does not set an axon and instead acts directly on its environment
by passing an
MotorOutputEvent. This is based on the idea that most nerve-muscle
junctions are highly robust. If a more realistic model is desired (i.e., one that models this
junction explicitly), the setAxon method must be overridden by the subclass; otherwise an
attempt to set the axon will throw a NeuroException- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description DynamicModelEnvironmentenvironmentFields 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 AbstractMotorNeuron() -
Method Summary
Modifier and Type Method Description protected voidfireOutputEvent(DynamicModelOutputEvent e)DynamicModelEnvironmentgetEnvironment()java.util.ArrayList<DynamicModelComponent>getSubComponents()Returns a list of the complete subcomponent tree.voidsetAxon(AbstractAxon a)voidsetEnvironment(DynamicModelEnvironment e)java.lang.StringtoString()Methods inherited from class mgui.neuro.components.types.ConnectableNeuron
connectDendrite, connectOpenDendrite, connectToMethods inherited from class mgui.neuro.components.AbstractNeuron
connectDendrites, getAxon, getBasicUnit, getDendrites, getSoma, init, setAxon, setDendrites, setSoma, setTreeNodeMethods 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.neuro.components.Neuron
connectDendrites, getAxon, getDendrites, getSoma, setAxon, setDendrites, setSomaMethods inherited from interface mgui.models.dynamic.TimeStepListener
timeElapsedMethods inherited from interface mgui.interfaces.trees.TreeObject
getTreeLabel, issueTreeNode, setTreeNode
-
Field Details
-
environment
-
-
Constructor Details
-
AbstractMotorNeuron
public AbstractMotorNeuron()
-
-
Method Details
-
setAxon
- Throws:
NeuroException
-
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 classAbstractNeuron
-
setEnvironment
-
getEnvironment
-
fireOutputEvent
-
toString
public java.lang.String toString()- Overrides:
toStringin classAbstractNeuron
-