Menu Content/Inhalt
Start arrow HS Class Editor arrow HS CE - Articles arrow Class Editor and HSOK in use
Class Editor and HSOK in use Print
21 June 2007

Class Editor and HSOK in use

Class Editor was used for the first time to automatically create classes representing the EU Customs Tariff based on original data in XML files (approx. 1.5 GB). After the process of file analysis, the Class Editor produced the documentation for over 200 classes. The whole process took 20 minutes (on a PC compatible with a 900 MHz clock and 256 MB of RAM) and the generated code had 12000 lines. It seems that manually writing this code without making any errors for such a large number of classes would be impossible.

Unfortunately data in XML files are not always precisely projecting structures described in paper documentation (if such exists). For example type and size of fields can be recognized if those fields appear in scanned data files. Sometimes some fields are empty or just ommited so a user should do a manual review of the generated documentation. In the above example it took us about 2 hours to do it.

Thanks to accessible information about internal structure and actual content of objects we can automatically project them into database structures. In case of the customs tariff the read/write procedures operate only on classes that inherit from THSObject and THSListOfObjects and the database itself is being restructured automatically in case of classes structure changes.

The example described above shows that HSOK and the Class Editor are speeding up significantly the process of software development, especially in case of frequent data format changes. Besides ready to use source code can be used without additional changes by other programmers, which applications need to access customs tariff. We would like to emphasize the fact that without this tool Huzar Software company with the current potential could not have prepared on time neither the access to the EU Customs Tariff (currently 380 classes), nor communication with systems NCTS, CELINA, INFOP and OSOZ (currently 490 classes).

We have been using class editor for a few years now. Currently our software uses about 1400 classes based on HSOK. Managing this without the Class Editor would be really difficult.