#include <amygdala/node.h>
Public Methods | |
~Node () | |
void | Run (unsigned int maxRunTime) |
MpNetwork * | MakeNetwork (int instId) |
void | ConnectNeurons (AmIdInt preInstId, AmIdInt preNId, AmIdInt postInstId, AmIdInt postNId, float weight, AmTimeInt delay) |
void | UdpListener (int port) |
unsigned int | GetMaxRunTime () |
bool | NNthreadSleep (unsigned int simTime) |
void | NNthreadWakeUp () |
void | Save (string filename) |
void | ConnectLayers (AmIdInt preInstance, AmIdInt preLayer, AmIdInt postInstance, AmIdInt postLayer, GaussConnectType parms, float pctInhibitory=0.0) |
void | Load (string filename) |
void | DeleteInstance (AmIdInt instId) |
Network * | GetNetwork (AmIdInt instId) |
hash_map< AmIdInt, Instance * >::iterator | instance_begin () |
hash_map< AmIdInt, Instance * >::iterator | instance_end () |
Instance * | GetInstance (AmIdInt instId) |
Static Public Methods | |
Node * | GetNodeRef () |
Protected Attributes | |
hash_map< AmIdInt, Instance * > | instances |
unsigned int | maxRunTime |
int | sleepers |
int | NNthreads |
pthread_mutex_t | mut_sleeper |
pthread_cond_t | cond_sleeper |
Static Protected Attributes | |
Node | theNode |
|
Connect 2 layers of different network instances
|
|
connect two neurons, possibly on different instances, possibly on different nodes
|
|
Delete an Instance. Note that synapses to neurons within this instance are not removed in other Instances |
|
|
|
|
|
|
|
|
|
|
|
Load an Amygdala SMP network |
|
create a Network instance
|
|
a thread goes to sleep here. The last thread cannot go to sleep. In case we are the last, false is returned. |
|
wake up all sleeping network threads |
|
run all instances
|
|
Save to a file. The file will get a .amg appended if it doesn't end on .amg. It will be a gzipped file for each Instance. All gzipped files will be tarred.
|
|
turn on listening on port for incoming spikes
|
|
Maps instance IDs to Instance objects. |
|
the maximum time the networks of this node run |
|
number of NN threads. This will remain constant after the simulation starts On SMP only, sleepers == threads indicate that we can go to the next timestep of the simulation |
|
number of threads that went to sleep after emptying their spike input buffers. This doesn't mean that such a thread is simply waiting for the next timestep. If more requests become available through the still active threads a sleeping thread must be woken up. |
|
The one and only node object |