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
environmentFields 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 SimpleMotorNeuron()SimpleMotorNeuron(int index, double output) -
Method Summary
Modifier and Type Method Description java.lang.Objectclone()protected booleanexecuteEvent(DynamicModelEvent e)protected voidfireOutputEvent()static SimpleMotorNeurongetBasicUnit()intgetIndex()doublegetOutput()protected voidinit()voidsetIndex(int index)voidsetOutput(double output)protected booleanupdateComponent()Methods inherited from class mgui.neuro.components.AbstractMotorNeuron
fireOutputEvent, getEnvironment, getSubComponents, setAxon, setEnvironment, 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, 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, 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.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
-
Constructor Details
-
SimpleMotorNeuron
public SimpleMotorNeuron() -
SimpleMotorNeuron
public SimpleMotorNeuron(int index, double output)
-
-
Method Details
-
init
protected void init()- Overrides:
initin classAbstractNeuron
-
getBasicUnit
-
getOutput
public double getOutput() -
getIndex
public int getIndex() -
setOutput
public void setOutput(double output) -
setIndex
public void setIndex(int index) -
executeEvent
- Overrides:
executeEventin classAbstractNeuroComponent- Throws:
NeuroException
-
fireOutputEvent
protected void fireOutputEvent() -
updateComponent
protected boolean updateComponent()- Overrides:
updateComponentin classAbstractNeuroComponent
-
clone
public java.lang.Object clone()- Specified by:
clonein interfaceDynamicModelComponent- Specified by:
clonein classAbstractNeuroComponent
-