Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

MpNetwork Class Reference

#include <amygdala/mpnetwork.h>

Inheritance diagram for MpNetwork:

Network List of all members.

Public Methods

 MpNetwork (Instance *inst)
 ~MpNetwork ()
InstanceGetInstance ()
bool ConnectNeurons (Instance *presynInst, AmIdInt presynNId, AmIdInt postsynNId, float weight, AmTimeInt delay)
vector< Synapse * > * GetAxon (unsigned int instId, unsigned int nId)

Protected Methods

void IncrementSimTime ()

Protected Attributes

Instanceinstance
hash_map< unsigned int, hash_map<
unsigned int, vector< Synapse * > * > * > 
axonMap

Detailed Description

Multi processor extensions to Network. Normally there is only one Network object. In a MP environment we split a complete NN into several Network objects which run in different threads or even different boxes to take advantage of multiple CPUs.
Author:
Rüdiger Koch <rkoch@rkoch.org>


Constructor & Destructor Documentation

MpNetwork::MpNetwork Instance   inst
 

Parameters:
inst  the Amygdala instance this MpNetwork object will be assiciated to


Member Function Documentation

bool MpNetwork::ConnectNeurons Instance   presynInst,
AmIdInt    presynNId,
AmIdInt    postsynNId,
float    weight,
AmTimeInt    delay
 

create a synapse between neurons of two different Amygdala instances

Parameters:
presynInst  a remote instance ID
presynNId  a remote neuron ID which is valid in the presynInst
postsynNId  a neuron ID valid in this MpNetwork instance
weight  the weight of the synapse

vector< Synapse *>* MpNetwork::GetAxon unsigned int    instId,
unsigned int    nId
 

Returns:
the axon vector of the neuron nId of the remote instance instId
Parameters:
instId  the remote instance ID
nId  the remote nId

Instance* MpNetwork::GetInstance  
 

Returns:
a reference to the associated instance

void MpNetwork::IncrementSimTime   [protected, virtual]
 

Increment the simTime variable to the next time step. In multithreaded mode, simTime is not incremented until all Nodes have called IncrementSimTime().

Reimplemented from Network.


Member Data Documentation

hash_map<unsigned int, hash_map<unsigned int, vector< Synapse* > *> *> MpNetwork::axonMap [protected]
 

remote_instId->remoteNid->axon(virtual presyn nId, postSyn Neuron Pointer) each vector represents an axon. The pair holds a virtual nId which is used to access the dendrite of the postsynaptic neuron.

Instance* MpNetwork::instance [protected]
 

the associated instance


The documentation for this class was generated from the following file:
Generated on Wed Sep 4 02:30:36 2002 for Amygdala by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002