#include <amygdala/netloader.h>
Public Methods | |
| NetLoader (Network *_net) | |
| ~NetLoader () | |
| void | RegisterNeuronClass (NeuronFactoryBase *factory) |
| void | LoadXML (const char *filename) |
| void | SaveXML (string filename) |
| Layer * | BuildLayer (int size, int startNrnId, LayerConstants layerConst, string neuronType) |
| void | SAXStartElement1 (const char *name, const char **attrs) |
| void | SAXEndElement1 (const char *name) |
| void | SAXStartElement2 (const char *name, const char **attrs) |
| void | SAXEndElement2 (const char *name) |
| void | SAXError () |
Protected Methods | |
| void | WriteSynapses (FILE *netFile, Neuron *preNrn) |
| void | SaveLayers (FILE *netFile) |
| string | LayerTypeStr (LayerType lType) |
| void | SAXPass (const char *filename, int pass) |
| void | ParseLayerConstants (LayerConstants *layerConst, char **name, const char **attrs) |
Protected Attributes | |
| hash_map< const char *, NeuronFactoryBase *, hash< const char * >, eqstr > | registry |
| Network * | net |
| Layer * | currLayer |
| AmIdInt | currNeuron |
| unsigned int | saxErrors |
|
||||||||||||||||||||
|
Build a Layer that is composed of one particular Neuron type |
|
|
|
|
|
Load a Network from a file
|
|
|
Register a new NeuronFactory |
|
|
Put all layers into the DOM tree |
|
|
save a single Network Instance to a file.
|
|
|
a SAX callback - don't use this function |
|
|
a SAX callback - don't use this function |
|
|
handles all SAX errors - don't use this function |
|
||||||||||||
|
Loading is done in 2 passes: in the first pass we instantiate all layers and neurons. In the second we connect them. |
|
||||||||||||
|
a SAX callback - don't use this function |
|
||||||||||||
|
a SAX callback - don't use this function |
|
||||||||||||
|
put the weights into the DOM tree |
|
|
The network object we're working on |
|
|
all known NeuronFactorys get registered here. The registry can hold unknown factories regiestered by the user's application |
1.2.14 written by Dimitri van Heesch,
© 1997-2002