public final class UserSenNeuron extends Object implements Neuron, Serializable
If the data file ends in ".txt", the file will be assumed to be a text data file in the format described in the documentation for class RecorderDataLib and the data file path will be constructed relative to the "model" subdirectory.
If the data file does not end in ".txt", the file will be assumed to be a binary data file and the data file path will be constructed relative to the "results" subdirectory.
Constructor and Description |
---|
UserSenNeuron(UserSenNeuronPara para,
String pre,
String suf,
int x,
int y) |
Modifier and Type | Method and Description |
---|---|
double[] |
getCurr(double currT) |
double |
getMemV(double currT) |
boolean |
getRecord()
record the neuron
|
long |
getTHost() |
double |
getTimeOfNextFire()
get the value of timeOfNextFire
|
void |
init(int expid,
int trialid,
Seed idum,
Network net,
int id)
Each sub experiment use the date from subexperiment 0, unless changed
the code by uncommenting the line.
|
boolean |
isSensory()
sensory report
|
boolean |
realFire() |
void |
setRecord(boolean record)
set the neuron record or not.
|
void |
setTHost(long id)
set the target host id, 0 means none, 1 means yes
|
void |
setTimeOfNextFire(double arg0)
set a new value to timeOfNextFire
|
String |
toString() |
double |
updateFire()
update of the neuron after firing
the current time is TimeOfNextFire
|
double |
updateInput(double time,
Synapse input)
update of the neuron after receiving a spike
the current time is time
|
public UserSenNeuron(UserSenNeuronPara para, String pre, String suf, int x, int y)
public void setTimeOfNextFire(double arg0)
Neuron
setTimeOfNextFire
in interface Neuron
arg0
- the new value to be usedpublic double updateFire()
Neuron
updateFire
in interface Neuron
public double updateInput(double time, Synapse input)
Neuron
updateInput
in interface Neuron
input
- it is a InputEvent event in the input queuepublic double getTimeOfNextFire()
Neuron
getTimeOfNextFire
in interface Neuron
public void init(int expid, int trialid, Seed idum, Network net, int id)
public void setRecord(boolean record)
Neuron
public double getMemV(double currT)
public double[] getCurr(double currT)
public long getTHost()
public void setTHost(long id)
Neuron