public class MainSimulator extends Object
Modifier and Type | Class and Description |
---|---|
class |
MainSimulator.ToDo
Timer to check progress of the nethosts periodically.
|
Modifier and Type | Field and Description |
---|---|
double |
backFire
Deprecated.
|
int[] |
endIndex
Neuron end index for each of the Net Hosts correponding to one trial
host, endIndex.size is the number of nethost for one trial host
|
Experiment |
experiment
Experiment instance.
|
int |
heapSize
Heapsize for each of the nethosts.
|
Seed |
idum
Seed number used in simulation.
|
JpvmInfo |
info
Information of JPVM
|
double |
minDelay
Minimum synaptic delay
|
File |
modelFile
Simulation XML file
|
jpvmTaskId[][] |
netJpvmTaskIds
Stores all the nethosts, first dimension is trialhosts, second
dimension is nethosts.
|
protected static String |
RESULTS_DIR |
protected static String |
RESULTS_DIR_PREFIX |
int |
seedInt
Seed integer provided by user
|
Constructor and Description |
---|
MainSimulator(Seed idum,
File modelFile,
int heapSize) |
MainSimulator(Seed idum,
String modelFilename,
int heapSize) |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Main method with default values for step debugging.
|
void |
run()
Organize the whole simulation in following steps:
1. start to parse the XML file
2. map cells, finding the numbers of neuron IDs.
3. parse neuronal definitions
4. parse the experiment
5. find the minimum synaptic delay
6. startup the JPVM
7. spawn all the trial hosts
8. spawn all the net hosts
9. fill up the jpvm info structure
10. setup the timing to send check progress message to all the
NetHosts periodically.
11. listing in background to communicate with TrialHosts and NetHosts
to initialize new trials, collect recorded data etc.
12. organize collected data and record it
13. end the simulation
|
protected static final String RESULTS_DIR
protected static final String RESULTS_DIR_PREFIX
public final int heapSize
public int seedInt
public jpvmTaskId[][] netJpvmTaskIds
public int[] endIndex
public Experiment experiment
public double minDelay
@Deprecated public double backFire
public MainSimulator(Seed idum, File modelFile, int heapSize)
public MainSimulator(Seed idum, String modelFilename, int heapSize)
public void run()