public class Network extends Object
Modifier and Type | Field and Description |
---|---|
Map<Integer,Axon> |
axons
A data structure mapping neuron id to the neuron's Axon.
|
int |
base
neuron index base, the real index is index+base
|
Map<String,Integer> |
cellmap
a data structure map "pre,x,y,suf" to neuron index
|
int |
countTrial |
protected DiscreteEventQueue |
discreteEventQueue |
double |
endOfTrial
the end of Trial time
|
Experiment |
experiment |
int |
expIdBack |
protected Queue<FireEvent> |
fireQueue
The neuron fire queue
|
JpvmInfo |
info
the parallel machine informations
|
protected Queue<InputEvent> |
inputQueue
The (internal) input spike queue
|
IntraRecBuffer |
intraRecBuffers
recorded intracellular info
|
double[] |
localTime
used by the root host to monitor other host's time
|
double |
minSynapticDelay
the minimum synaptic delay
|
protected ModelFactory |
modelFactory |
Neuron[] |
neurons
An array of neurons used in current Nethosts
|
PrintStream |
p
for the output of the slave hosts
|
protected Queue<PInputEvent> |
poissonQueue
The (external) input queue
|
int[] |
received
used for keep record of received spikes
|
RecordBuffer |
recordBuff
recorded info buffer
|
RecorderData |
recorderData
Store the recorded data.
|
double |
rootTime
the root broadcasting time
|
Seed |
seed
the seed value for this network
|
SimulatorParser |
simulatorParser
the system background firing rates
|
SpikeBuffer[] |
spikeBuffers
spike buffer to store the neuron spikes which needs to be sented
|
boolean |
spikeState
flag for trial end
|
boolean |
startSig
trial start flag
|
boolean |
stop
flag for the computation and communication threads to stop
|
int |
subExpId
Keep track of current simulated subExp id
|
boolean |
trialDone
Flag to indicate whether the trial is done or not
|
int |
trialId
Keep track of current Trials.
|
int |
trialIdBack |
int |
xEdge
Size of Xedge
|
int |
yEdge
Size of Yedge
|
Constructor and Description |
---|
Network(ModelFactory modelFactory,
DiscreteEventQueue discreteEventQueue,
Seq<ModulatedSynapse> modulatedSynapseSeq,
Experiment experiment,
JpvmInfo info,
int base,
double minSynapticDelay,
SimulatorParser simulatorParser,
Seed seed) |
Network(ModelFactory modelFactory,
DiscreteEventQueue discreteEventQueue,
Seq<ModulatedSynapse> modulatedSynapseSeq,
Neuron[] neurons,
Map<Integer,Axon> axons,
double minSynapticDelay,
SimulatorParser simulatorParser,
Seed seed) |
Network(ModelFactory modelFactory,
DiscreteEventQueue discreteEventQueue,
Seq<ModulatedSynapse> modulatedSynapseSeq,
Neuron[] neurons,
Map<Integer,Axon> axons,
JpvmInfo info,
int base,
double minSynapticDelay,
SimulatorParser simulatorParser,
Seed seed,
Experiment experiment) |
Modifier and Type | Method and Description |
---|---|
void |
clearQueues() |
DiscreteEventQueue |
getDiscreteEventQueue() |
Slot<FireEvent> |
getFireEventSlot() |
FireEvent |
getFirstFireEvent() |
InputEvent |
getFirstInputEvent() |
PInputEvent |
getFirstPInputEvent() |
Slot<InputEvent> |
getInputEventSlot() |
double |
getLocalTime(int i) |
Slot<PInputEvent> |
getPInputEventSlot() |
void |
init()
Initialize the queues, put the first element into each of the queues.
|
void |
initMain()
One time initialization, initialize the structure to store the times.
|
void |
initNet()
Initializes the Network.
|
void |
inputProcess(InputEvent firstInput)
Deprecated.
|
void |
pFireProcess(FireEvent firstFireEvent)
Process the event from fireQueue in parallel.
|
void |
pInputProcess(InputEvent firstInputEvent)
Process the event from inputQueue in parallel.
|
void |
pMainProcess(FireEvent firstFire,
double freq,
double weight,
Seed seed)
Deprecated.
|
void |
poissonProcess(PInputEvent poiInput)
Deprecated.
|
void |
pPoissonProcess(PInputEvent poiInput)
poisson input process (external input) in parallel
|
void |
setLocalTime(double localTime,
int i)
set a new value to localTime
|
void |
stopRun()
stop the testRun();
|
public int countTrial
public int expIdBack
public int trialIdBack
public Experiment experiment
public int subExpId
public int trialId
public int xEdge
public int yEdge
public SimulatorParser simulatorParser
public double minSynapticDelay
public PrintStream p
public double[] localTime
public SpikeBuffer[] spikeBuffers
public int[] received
public IntraRecBuffer intraRecBuffers
public RecordBuffer recordBuff
public int base
public double rootTime
public double endOfTrial
public RecorderData recorderData
public boolean stop
public boolean trialDone
public boolean startSig
public boolean spikeState
protected final ModelFactory modelFactory
protected final DiscreteEventQueue discreteEventQueue
protected Queue<InputEvent> inputQueue
protected Queue<PInputEvent> poissonQueue
public Network(ModelFactory modelFactory, DiscreteEventQueue discreteEventQueue, Seq<ModulatedSynapse> modulatedSynapseSeq, Neuron[] neurons, Map<Integer,Axon> axons, double minSynapticDelay, SimulatorParser simulatorParser, Seed seed)
public Network(ModelFactory modelFactory, DiscreteEventQueue discreteEventQueue, Seq<ModulatedSynapse> modulatedSynapseSeq, Neuron[] neurons, Map<Integer,Axon> axons, JpvmInfo info, int base, double minSynapticDelay, SimulatorParser simulatorParser, Seed seed, Experiment experiment)
public Network(ModelFactory modelFactory, DiscreteEventQueue discreteEventQueue, Seq<ModulatedSynapse> modulatedSynapseSeq, Experiment experiment, JpvmInfo info, int base, double minSynapticDelay, SimulatorParser simulatorParser, Seed seed)
public DiscreteEventQueue getDiscreteEventQueue()
public double getLocalTime(int i)
public Slot<FireEvent> getFireEventSlot()
public FireEvent getFirstFireEvent()
public InputEvent getFirstInputEvent()
public PInputEvent getFirstPInputEvent()
public Slot<InputEvent> getInputEventSlot()
public Slot<PInputEvent> getPInputEventSlot()
public void clearQueues()
public void setLocalTime(double localTime, int i)
localTime
- the new value to be usedpublic void stopRun()
public void initNet()
public void init()
public void initMain()
public void pFireProcess(FireEvent firstFireEvent) throws jpvmException, Exception
jpvmException
Exception
@Deprecated public void pMainProcess(FireEvent firstFire, double freq, double weight, Seed seed)
@Deprecated public void inputProcess(InputEvent firstInput)
firstInput
- @Deprecated public void poissonProcess(PInputEvent poiInput)
public void pPoissonProcess(PInputEvent poiInput)
public void pInputProcess(InputEvent firstInputEvent)