public final class SYNNeuron extends Object implements Neuron, Serializable
Modifier and Type | Field and Description |
---|---|
double |
tick |
Modifier and Type | Method and Description |
---|---|
double[] |
getCurr(double currTime) |
double |
getMemV(double currTime) |
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)
initialize the neuron
|
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 nextFire)
set a new value to timeOfNextFire
|
double |
timeOfFire(double curr) |
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 double tick
public void setTimeOfNextFire(double nextFire)
Neuron
setTimeOfNextFire
in interface Neuron
nextFire
- the new value to be usedpublic double timeOfFire(double curr)
timeOfFire
public double updateFire()
Neuron
updateFire
in interface Neuron
updateFire
public double updateInput(double time, Synapse input)
Neuron
updateInput
in interface Neuron
input
- it is a InputEvent event in the input queueupdateInput
public double getTimeOfNextFire()
Neuron
getTimeOfNextFire
in interface Neuron
getTimeOfNextFire
public void init(int expid, int trialid, Seed idum, Network net, int id)
init
in interface Neuron
Neuron.init(int,int,Seed,Network,int)
public boolean getRecord()
public void setRecord(boolean record)
public double getMemV(double currTime)
public double[] getCurr(double currTime)
public long getTHost()
getTHost
in interface Neuron
Neuron.getTHost()
public void setTHost(long id)
public boolean realFire()
realFire
in interface Neuron
Neuron.realFire()