Package mgui.neuro.components.simple
Class SimpleSensoryNeuron
java.lang.Object
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Comparable<DynamicModelComponent>,AttributeListener,AttributeObject,InterfaceObject,NamedObject,TreeObject,CleanableObject,DynamicModelComponent,DynamicModelEnvironmentSensor,TimeStepListener,Updateable,Neuron,SensoryNeuron
public class SimpleSensoryNeuron extends AbstractSensoryNeuron
A simple input (i.e., sensory) neuron.
Simple input neurons have a soma and axon; the respond to environmental state and their
activity is determined by this state (rather than dendrites). Simple sensory neurons
are limited to one discrete sample from their environments, designated by the parameter
input.- Author:
- Andrew Reid
-
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 SimpleSensoryNeuron()SimpleSensoryNeuron(int input, double tuning) -
Method Summary
Modifier and Type Method Description java.lang.Objectclone()SimpleSensoryNeurongetBasicInstance(int dendCount, double restingV)protected static SimpleSensoryNeurongetBasicSensoryNeuron()static SimpleSensoryNeurongetBasicUnit()intgetIndex()doublegetTuning()protected voidinit()voidsetIndex(int i)voidsetTuning(double t)booleanstimulate(DynamicModelEnvironmentEvent e)Notifies this sensor that the environment has changed.protected booleanupdate(DynamicModelEnvironment environment)Methods inherited from class mgui.neuro.components.AbstractSensoryNeuron
getSubComponents, toStringMethods inherited from class mgui.neuro.components.types.ConnectableNeuron
connectDendrite, connectOpenDendrite, connectToMethods inherited from class mgui.neuro.components.AbstractNeuron
connectDendrites, getAxon, getDendrites, getSoma, setAxon, setDendrites, setSoma, setTreeNodeMethods 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, executeEvents, getID, hasSubComponents, removeConnection, reset, setID, setIDMethods inherited from interface mgui.models.dynamic.DynamicModelEnvironmentSensor
getName, resetMethods inherited from interface mgui.interfaces.InterfaceObject
destroy, isDestroyedMethods inherited from interface mgui.interfaces.NamedObject
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
-
Constructor Details
-
SimpleSensoryNeuron
public SimpleSensoryNeuron() -
SimpleSensoryNeuron
public SimpleSensoryNeuron(int input, double tuning)
-
-
Method Details
-
getBasicUnit
-
init
protected void init()- Overrides:
initin classAbstractNeuron
-
setIndex
public void setIndex(int i) -
getIndex
public int getIndex() -
setTuning
public void setTuning(double t) -
getTuning
public double getTuning() -
getBasicSensoryNeuron
-
getBasicInstance
-
stimulate
Description copied from interface:DynamicModelEnvironmentSensorNotifies this sensor that the environment has changed.- Returns:
-
update
- Throws:
NeuroException
-
clone
public java.lang.Object clone()- Specified by:
clonein interfaceDynamicModelComponent- Specified by:
clonein classAbstractNeuroComponent
-