Package mgui.neuro.components.simple
Class SimpleMotorNeuron
java.lang.Object
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Comparable<DynamicModelComponent>
,AttributeListener
,AttributeObject
,InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
,DynamicModelComponent
,TimeStepListener
,Updateable
,MotorNeuron
,Neuron
public class SimpleMotorNeuron extends AbstractMotorNeuron
Simple implementation of a motor (output) neuron.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields inherited from class mgui.neuro.components.AbstractMotorNeuron
environment
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 SimpleMotorNeuron()
SimpleMotorNeuron(int index, double output)
-
Method Summary
Modifier and Type Method Description java.lang.Object
clone()
protected boolean
executeEvent(DynamicModelEvent e)
protected void
fireOutputEvent()
static SimpleMotorNeuron
getBasicUnit()
int
getIndex()
double
getOutput()
protected void
init()
void
setIndex(int index)
void
setOutput(double output)
protected boolean
updateComponent()
Methods inherited from class mgui.neuro.components.AbstractMotorNeuron
fireOutputEvent, getEnvironment, getSubComponents, setAxon, setEnvironment, 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, 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, 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.interfaces.InterfaceObject
destroy, isDestroyed
Methods inherited from interface mgui.interfaces.NamedObject
getName, 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
-
SimpleMotorNeuron
public SimpleMotorNeuron() -
SimpleMotorNeuron
public SimpleMotorNeuron(int index, double output)
-
-
Method Details
-
init
protected void init()- Overrides:
init
in classAbstractNeuron
-
getBasicUnit
-
getOutput
public double getOutput() -
getIndex
public int getIndex() -
setOutput
public void setOutput(double output) -
setIndex
public void setIndex(int index) -
executeEvent
- Overrides:
executeEvent
in classAbstractNeuroComponent
- Throws:
NeuroException
-
fireOutputEvent
protected void fireOutputEvent() -
updateComponent
protected boolean updateComponent()- Overrides:
updateComponent
in classAbstractNeuroComponent
-
clone
public java.lang.Object clone()- Specified by:
clone
in interfaceDynamicModelComponent
- Specified by:
clone
in classAbstractNeuroComponent
-