Main Page | Namespace List | Alphabetical List | Class List | Directories | File List | Class Members | File Members

ConnectionType Class Reference

#include <ConnectionType.h>

List of all members.

Static Public Member Functions

static unsigned short * getAllTypes ()
static char * getDescription (unsigned short)
static unsigned short * getInterLayerTypes ()
static unsigned short * getIntraLayerTypes ()
static void getParameters (map< string, string > &, unsigned short)
static unsigned short getType (string)
static void printParameters ()

Static Public Attributes

static const int NumberTypes = NUM_CONNECTION_TYPES
static const int NumberIntraTypes = NUMBER_INTRA_TYPES
static const int NumberInterTypes = NUMBER_INTER_TYPES
static const unsigned short SimpleCortex = SIMPLE_CORTEX_VALUE
static const unsigned short UnstructuredExInhibIntra = UNSTRUCTURED_EX_INHIB_INTRA_VALUE
static const unsigned short OnCentreOffSurround = ON_CENTRE_OFF_SURROUND_VALUE
static const unsigned short OffCentreOnSurround = OFF_CENTRE_ON_SURROUND_VALUE
static const unsigned short Unstructured = UNSTRUCTURED_VALUE
static const unsigned short UnstructuredExInhibInter = UNSTRUCTURED_EX_INHIB_INTER_VALUE
static const unsigned short Topographic = TOPOGRAPHIC_VALUE
static const unsigned short SIMNOSComponent = SIMNOS_COMPONENT_VALUE
static const unsigned short Virtual = VIRTUAL_VALUE
static const unsigned short TempVirtual = TEMP_VIRTUAL_VALUE


Detailed Description

Class that holds different connection group types, covering the different connection topologies that are possible. The topology defines how the connections will be arranged.

Two types of connection types are defined within this file:

>> Intra layer connection types apply to neurons that are connecting to other neurons in the same layer. >> Inter layer connection types apply to neurons that are connecting to other neurons in different layers.

The specification of the type includes an identifier, description and list of parameters with their default values. The methods implmenting these connections can be found in "ConnectionManager.cpp" There are also dependent methods in "ConnectionPropertiesDialog.cpp" which use the type to check the size of the layers to see if they match before creating the connection. Any changes to this file should be reflected there as well.

The parameters should all be doubles between -100000 and 100000. This makes error checkeing easier, but can be changed if necessary. FIXME SHOULD REALLY ADD A THIRD TYPE CALLED 'OTHER' THAT CAN BE APPLIED WITHIN AND BETWEEN LAYERS OR BOTH.

Definition at line 247 of file ConnectionType.h.


Member Function Documentation

unsigned short * ConnectionType::getAllTypes  )  [static]
 

Returns an array containing all of the type values. NOTE Potential memory leaks here since a reference is being returned to a dynamically allocated array.

Definition at line 38 of file ConnectionType.cpp.

References NumberTypes, OffCentreOnSurround, OnCentreOffSurround, SIMNOSComponent, SimpleCortex, TempVirtual, Topographic, Unstructured, UnstructuredExInhibInter, UnstructuredExInhibIntra, and Virtual.

char * ConnectionType::getDescription unsigned short  type  )  [static]
 

Returns a cstring description of the type.

Definition at line 55 of file ConnectionType.cpp.

References OFF_CENTRE_ON_SURROUND_DESC, OffCentreOnSurround, ON_CENTRE_OFF_SURROUND_DESC, OnCentreOffSurround, SIMNOS_COMPONENT_DESC, SIMNOSComponent, SIMPLE_CORTEX_DESC, SimpleCortex, TEMP_VIRTUAL_DESC, TempVirtual, Topographic, TOPOGRAPHIC_DESC, Unstructured, UNSTRUCTURED_DESC, UNSTRUCTURED_EX_INHIB_INTER_DESC, UNSTRUCTURED_EX_INHIB_INTRA_DESC, UnstructuredExInhibInter, UnstructuredExInhibIntra, Virtual, and VIRTUAL_DESC.

unsigned short * ConnectionType::getInterLayerTypes  )  [static]
 

Returns all of the inter layer type values. NOTE the calling method should delete the dynamically allocated array that is returned here to avoid a memory leak.

Definition at line 75 of file ConnectionType.cpp.

References NumberInterTypes, OffCentreOnSurround, OnCentreOffSurround, SIMNOSComponent, TempVirtual, Topographic, Unstructured, UnstructuredExInhibInter, and Virtual.

unsigned short * ConnectionType::getIntraLayerTypes  )  [static]
 

Returns all the intra layer type values. NOTE Potential memory leaks here since a reference is being returned to a dynamically allocated array.

Definition at line 92 of file ConnectionType.cpp.

References NumberIntraTypes, SimpleCortex, and UnstructuredExInhibIntra.

void ConnectionType::getParameters map< string, string > &  parameterMap,
unsigned short  connType
[static]
 

Returns the parameters associated with a particular connection type.

Definition at line 101 of file ConnectionType.cpp.

References NUM_OFF_CENTRE_ON_SURROUND_PARAM, NUM_ON_CENTRE_OFF_SURROUND_PARAM, NUM_SIMNOS_COMPONENT_PARAM, NUM_SIMPLE_CORTEX_PARAM, NUM_TOPOGRAPHIC_PARAM, NUM_UNSTRUCTURED_EX_INHIB_INTER_PARAM, NUM_UNSTRUCTURED_EX_INHIB_INTRA_PARAM, NUM_UNSTRUCTURED_PARAM, OFF_CENTRE_ON_SURROUND_PARAM, OffCentreOnSurround, ON_CENTRE_OFF_SURROUND_PARAM, OnCentreOffSurround, SIMNOS_COMPONENT_PARAM, SIMNOSComponent, SIMPLE_CORTEX_PARAM, SimpleCortex, TempVirtual, Topographic, TOPOGRAPHIC_PARAM, Unstructured, UNSTRUCTURED_EX_INHIB_INTER_PARAM, UNSTRUCTURED_EX_INHIB_INTRA_PARAM, UNSTRUCTURED_PARAM, UnstructuredExInhibInter, UnstructuredExInhibIntra, and Virtual.

unsigned short ConnectionType::getType string  connType  )  [static]
 

Returns the type value when given the type description.

Definition at line 163 of file ConnectionType.cpp.

References OFF_CENTRE_ON_SURROUND_DESC, OffCentreOnSurround, ON_CENTRE_OFF_SURROUND_DESC, OnCentreOffSurround, SIMNOS_COMPONENT_DESC, SIMNOSComponent, SIMPLE_CORTEX_DESC, SimpleCortex, TEMP_VIRTUAL_DESC, TempVirtual, Topographic, TOPOGRAPHIC_DESC, UNDEFINED_TYPE, Unstructured, UNSTRUCTURED_DESC, UNSTRUCTURED_EX_INHIB_INTER_DESC, UNSTRUCTURED_EX_INHIB_INTRA_DESC, UnstructuredExInhibInter, UnstructuredExInhibIntra, Virtual, and VIRTUAL_DESC.

void ConnectionType::printParameters  )  [static]
 

Debugging method to check that parameter definitions are working ok.

Definition at line 189 of file ConnectionType.cpp.

References NUM_OFF_CENTRE_ON_SURROUND_PARAM, NUM_ON_CENTRE_OFF_SURROUND_PARAM, NUM_SIMNOS_COMPONENT_PARAM, NUM_SIMPLE_CORTEX_PARAM, NUM_TOPOGRAPHIC_PARAM, NUM_UNSTRUCTURED_EX_INHIB_INTER_PARAM, NUM_UNSTRUCTURED_EX_INHIB_INTRA_PARAM, NUM_UNSTRUCTURED_PARAM, OFF_CENTRE_ON_SURROUND_DESC, OFF_CENTRE_ON_SURROUND_PARAM, ON_CENTRE_OFF_SURROUND_DESC, ON_CENTRE_OFF_SURROUND_PARAM, SIMNOS_COMPONENT_DESC, SIMNOS_COMPONENT_PARAM, SIMPLE_CORTEX_DESC, SIMPLE_CORTEX_PARAM, TEMP_VIRTUAL_DESC, TOPOGRAPHIC_DESC, TOPOGRAPHIC_PARAM, UNSTRUCTURED_DESC, UNSTRUCTURED_EX_INHIB_INTER_DESC, UNSTRUCTURED_EX_INHIB_INTER_PARAM, UNSTRUCTURED_EX_INHIB_INTRA_DESC, UNSTRUCTURED_EX_INHIB_INTRA_PARAM, UNSTRUCTURED_PARAM, and VIRTUAL_DESC.


Member Data Documentation

const int ConnectionType::NumberInterTypes = NUMBER_INTER_TYPES [static]
 

Number of types of connection betwen two layers.

Definition at line 261 of file ConnectionType.h.

Referenced by getInterLayerTypes().

const int ConnectionType::NumberIntraTypes = NUMBER_INTRA_TYPES [static]
 

Number of types of connection within a single layer.

Definition at line 258 of file ConnectionType.h.

Referenced by getIntraLayerTypes().

const int ConnectionType::NumberTypes = NUM_CONNECTION_TYPES [static]
 

Number of types of connection.

Definition at line 255 of file ConnectionType.h.

Referenced by getAllTypes().

const unsigned short ConnectionType::OffCentreOnSurround = OFF_CENTRE_ON_SURROUND_VALUE [static]
 

Off centre on surround connection.

Definition at line 277 of file ConnectionType.h.

Referenced by getAllTypes(), getDescription(), getInterLayerTypes(), getParameters(), and getType().

const unsigned short ConnectionType::OnCentreOffSurround = ON_CENTRE_OFF_SURROUND_VALUE [static]
 

On centre off surround connection.

Definition at line 273 of file ConnectionType.h.

Referenced by getAllTypes(), getDescription(), getInterLayerTypes(), getParameters(), and getType().

const unsigned short ConnectionType::SIMNOSComponent = SIMNOS_COMPONENT_VALUE [static]
 

SIMNOS component connection.

Definition at line 289 of file ConnectionType.h.

Referenced by getAllTypes(), getDescription(), getInterLayerTypes(), getParameters(), and getType().

const unsigned short ConnectionType::SimpleCortex = SIMPLE_CORTEX_VALUE [static]
 

Simple cortex connection.

Definition at line 266 of file ConnectionType.h.

Referenced by getAllTypes(), getDescription(), getIntraLayerTypes(), getParameters(), and getType().

const unsigned short ConnectionType::TempVirtual = TEMP_VIRTUAL_VALUE [static]
 

Temporary virtual connection.

Definition at line 295 of file ConnectionType.h.

Referenced by getAllTypes(), getDescription(), getInterLayerTypes(), getParameters(), and getType().

const unsigned short ConnectionType::Topographic = TOPOGRAPHIC_VALUE [static]
 

Topographic connection.

Definition at line 286 of file ConnectionType.h.

Referenced by getAllTypes(), getDescription(), getInterLayerTypes(), getParameters(), and getType().

const unsigned short ConnectionType::Unstructured = UNSTRUCTURED_VALUE [static]
 

Unstructured connection.

Definition at line 280 of file ConnectionType.h.

Referenced by getAllTypes(), getDescription(), getInterLayerTypes(), getParameters(), and getType().

const unsigned short ConnectionType::UnstructuredExInhibInter = UNSTRUCTURED_EX_INHIB_INTER_VALUE [static]
 

Unstructured excitatory/ inhibitory connection.

Definition at line 283 of file ConnectionType.h.

Referenced by getAllTypes(), getDescription(), getInterLayerTypes(), getParameters(), and getType().

const unsigned short ConnectionType::UnstructuredExInhibIntra = UNSTRUCTURED_EX_INHIB_INTRA_VALUE [static]
 

Unstructured excitatory/ inhibitory connection.

Definition at line 269 of file ConnectionType.h.

Referenced by getAllTypes(), getDescription(), getIntraLayerTypes(), getParameters(), and getType().

const unsigned short ConnectionType::Virtual = VIRTUAL_VALUE [static]
 

Virtual connection.

Definition at line 292 of file ConnectionType.h.

Referenced by getAllTypes(), getDescription(), getInterLayerTypes(), getParameters(), and getType().


The documentation for this class was generated from the following files:
Generated on Mon Sep 3 22:18:50 2007 for SpikeStream Library by  doxygen 1.4.4