public interface SpikeGenerator extends Resettable, java.io.Serializable, SimulationMode.ModeConfigurable, java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
SpikeGenerator |
clone() |
InstantaneousOutput |
run(float[] time,
float[] current)
Runs the model for a given time segment.
|
reset
getMode, setMode
InstantaneousOutput run(float[] time, float[] current)
The model is responsible for maintaining its internal state, and the state is assumed to be consistent with the start time. That is, if a caller calls run({.001 .002}, ...) and then run({.501 .502}, ...), the results may not make any sense, but this is not the model's responsibility. Absolute times are provided to support explicitly time-varying models, and for the convenience of Probeable models.
time
- Array of points in time at which input current is defined. This includes
at least the start and end times, and possibly intermediate times. (The SpikeGenerator
model can use its own time step -- these times are only used to define the input.)current
- Driving current at each given point in time (assumed to be constant
until next time point)SpikeGenerator clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
- if clone can't be made