#include <ClassLoader.h>
Public Member Functions | |
| ClassLoader (DBInterface *netDBInter) | |
| ~ClassLoader () | |
| string | getConnGrpParameterTableName (unsigned int connGrpID) |
| string | getNeuronParameterTableName (unsigned short neuronType) |
| Neuron * | getNewNeuron (unsigned short neuronType) |
| Synapse * | getNewSynapse (unsigned short synapseType) |
Private Member Functions | |
| ClassLoader (const ClassLoader &) | |
| ClassLoader | operator= (const ClassLoader &) |
| void | loadNeuronClasses () |
| void | loadSynapseClasses () |
Private Attributes | |
| DBInterface * | networkDBInterface |
| map< unsigned short, CreateNeuronFunctionType > | neuronFunctionMap |
| map< unsigned short, CreateSynapseFunctionType > | synapseFunctionMap |
| map< unsigned short, string > | neuronParameterTableMap |
| map< unsigned int, string > | synapseParameterTableMap |
Definition at line 50 of file ClassLoader.h.
|
|
Constructor. Definition at line 62 of file ClassLoader.cpp. References loadNeuronClasses(), loadSynapseClasses(), and networkDBInterface. |
|
|
Destructor. Definition at line 73 of file ClassLoader.cpp. |
|
|
Declare copy constructor private so it cannot be used inadvertently. |
|
|
Returns the name of the parameter table for a given connection group. Definition at line 85 of file ClassLoader.cpp. References synapseParameterTableMap, synapseTypeNotFoundException, and SpikeStreamSimulation::systemError(). Referenced by SpikeStreamSimulation::loadSynapseParameters(). |
|
|
Returns the parameter table for a given neuron type. Definition at line 98 of file ClassLoader.cpp. References neuronParameterTableMap, neuronTypeNotFoundException, and SpikeStreamSimulation::systemError(). Referenced by SpikeStreamSimulation::loadNeuronParameters(). |
|
|
Creates a new neuron of the specified type. Definition at line 111 of file ClassLoader.cpp. References Neuron::getDescription(), neuronFunctionMap, neuronTypeNotFoundException, and SpikeStreamSimulation::systemError(). Referenced by SpikeStreamSimulation::loadNeurons(). |
|
|
Creates a new synapse of the specified type. Definition at line 127 of file ClassLoader.cpp. References Synapse::getDescription(), synapseFunctionMap, synapseTypeNotFoundException, and SpikeStreamSimulation::systemError(). Referenced by SpikeStreamSimulation::loadSynapses(). |
|
|
Loads all the neuron classes from libraries and stores function pointers to the method that creates them so that they can be created easily on demand. Definition at line 149 of file ClassLoader.cpp. References Neuron::getDescription(), networkDBInterface, neuronFunctionMap, neuronParameterTableMap, spikestreamRootNotFoundException, and SpikeStreamSimulation::systemError(). Referenced by ClassLoader(). |
|
|
Loads all the synapse classes from libraries and stores function pointers to the method that creates them so that they can be created easily on demand. Definition at line 232 of file ClassLoader.cpp. References Synapse::getDescription(), networkDBInterface, synapseFunctionMap, synapseParameterTableMap, and SpikeStreamSimulation::systemError(). Referenced by ClassLoader(). |
|
|
Declare assignment private so it cannot be used inadvertently. |
|
|
Hold reference to dbinterface. Definition at line 64 of file ClassLoader.h. Referenced by ClassLoader(), loadNeuronClasses(), and loadSynapseClasses(). |
|
|
Map holding function pointers that create neurons of each type. Definition at line 67 of file ClassLoader.h. Referenced by getNewNeuron(), and loadNeuronClasses(). |
|
|
Map holding details about neuron parameter tables. Definition at line 73 of file ClassLoader.h. Referenced by getNeuronParameterTableName(), and loadNeuronClasses(). |
|
|
Map holding function pointers that create synapses of each type. Definition at line 70 of file ClassLoader.h. Referenced by getNewSynapse(), and loadSynapseClasses(). |
|
|
Map holding details about synapse parameter tables. Definition at line 76 of file ClassLoader.h. Referenced by getConnGrpParameterTableName(), and loadSynapseClasses(). |
1.4.4