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, 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 SimpleSensoryNeuron()
SimpleSensoryNeuron(int input, double tuning)
-
Method Summary
Modifier and Type Method Description java.lang.Object
clone()
SimpleSensoryNeuron
getBasicInstance(int dendCount, double restingV)
protected static SimpleSensoryNeuron
getBasicSensoryNeuron()
static SimpleSensoryNeuron
getBasicUnit()
int
getIndex()
double
getTuning()
protected void
init()
void
setIndex(int i)
void
setTuning(double t)
boolean
stimulate(DynamicModelEnvironmentEvent e)
Notifies this sensor that the environment has changed.protected boolean
update(DynamicModelEnvironment environment)
Methods inherited from class mgui.neuro.components.AbstractSensoryNeuron
getSubComponents, toString
Methods inherited from class mgui.neuro.components.types.ConnectableNeuron
connectDendrite, connectOpenDendrite, connectTo
Methods inherited from class mgui.neuro.components.AbstractNeuron
connectDendrites, getAxon, getDendrites, getSoma, setAxon, setDendrites, setSoma, setTreeNode
Methods 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, 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, executeEvents, getID, hasSubComponents, removeConnection, reset, setID, setID
Methods inherited from interface mgui.models.dynamic.DynamicModelEnvironmentSensor
getName, reset
Methods inherited from interface mgui.interfaces.InterfaceObject
destroy, isDestroyed
Methods inherited from interface mgui.interfaces.NamedObject
setName
Methods inherited from interface mgui.neuro.components.Neuron
connectDendrites, getAxon, getDendrites, getSoma, setAxon, setDendrites, setSoma
Methods inherited from interface mgui.models.dynamic.TimeStepListener
timeElapsed
Methods 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:
init
in 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:DynamicModelEnvironmentSensor
Notifies this sensor that the environment has changed.- Returns:
-
update
- Throws:
NeuroException
-
clone
public java.lang.Object clone()- Specified by:
clone
in interfaceDynamicModelComponent
- Specified by:
clone
in classAbstractNeuroComponent
-