Package mgui.neuro.components.simple
Class SimpleMotorNeuronEvent
java.lang.Object
mgui.neuro.components.simple.SimpleEvent
mgui.neuro.components.simple.SimpleMotorNeuronEvent
- All Implemented Interfaces:
DynamicModelEvent
,DynamicModelOutputEvent
,TimeStepListener
public class SimpleMotorNeuronEvent extends SimpleEvent implements DynamicModelOutputEvent
-
Field Summary
Fields inherited from class mgui.neuro.components.simple.SimpleEvent
code, delay
-
Constructor Summary
Constructors Constructor Description SimpleMotorNeuronEvent(int index, double output)
SimpleMotorNeuronEvent(SimpleMotorNeuron n)
-
Method Summary
Methods inherited from class mgui.neuro.components.simple.SimpleEvent
getCode, getDelay, timeElapsed
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface mgui.models.dynamic.DynamicModelEvent
getCode, getDelay
Methods inherited from interface mgui.models.dynamic.TimeStepListener
timeElapsed
-
Field Details
-
output
public double output -
index
public int index
-
-
Constructor Details
-
SimpleMotorNeuronEvent
-
SimpleMotorNeuronEvent
public SimpleMotorNeuronEvent(int index, double output)
-
-
Method Details
-
getOutput
public double getOutput()- Specified by:
getOutput
in interfaceDynamicModelOutputEvent
-
getIndex
public int getIndex()- Specified by:
getIndex
in interfaceDynamicModelOutputEvent
-
setOutput
public void setOutput(double output)- Specified by:
setOutput
in interfaceDynamicModelOutputEvent
-
setIndex
public void setIndex(int index)- Specified by:
setIndex
in interfaceDynamicModelOutputEvent
-