| Unit: | SDL_kohonen | | Class: | TKohonen | | Declaration: | function ReadFromOpenXMLFile (var InFile : TextFile; DataID: string): boolean; |
The function ReadFromOpenXMLFile reads the network data from the current position of the file InFile. If the parameter DataID is empty, the first <kohonen> tag is evaluated and read into the network. If DataID is not
empty, the entire rest of the open file InFile is read until a <kohonen> tag is found whose attribute "id " matches DataID (the recognition of the "id " attribute is not case-sensitive). The function ReadFromOpenXMLFile returns TRUE if both a valid starting tag <kohonen> and a valid end tag </kohonen> has been found and the network has
been updated.
| Hint 2: |
The XML description of the network data has to follow a certain order: the size of the Kohonen map and the number of input sensors have to precede all other data of the control. |
| Hint 3: |
ReadFromOpenXMLFile is by a factor of 5 faster than ReadFromXMLStream. Thus you should use ReadFromOpenXMLFile when reading large networks with more than approx. 10000 cells (SizeX x SizeY x NrInSens). |
|