Classifiers compare |
At comparison of classifiers the source classifier is considered as the base one (comparison of the information is carried out concerning the source classifier). During the work the palettes, layers, semantics, objects and libraries of source and target classifiers are consistently compared. Results of comparison (mainly messages about discrepancy of the information) are brought into the text file. Comparison of palettes includes: - comparison of quantity of colors in a palette; - comparison of quantity of palettes; - consecutive search of palettes of the source classifier and their comparison with each of palettes of the target classifier. Actually comparison of palettes consists in consecutive comparison of the colors located in palettes on the same places. In a text file of results of comparison non-coincident colors are brought only. Comparison of layers includes: - comparison of quantity of layers; - consecutive search of layers of the source classifier and search of layers with the same name in the target classifier; - printing of missing layers. Comparison of semantics includes: - comparison of quantity of semantics in classifiers; - comparison of semantics of one code; - printing of semantics, absent in the target classifier. Comparison of semantics of one code assumes check on conformity of type of semantics, the name of semantics, and for semantics of type "classifier" the lists of values are in addition compared. Comparison of values lists of semantics of type "classifier" for one code includes: - comparison of quantity of values in the list; - comparison of the name of value for identical codes of value in the list; - printing of elements of the list which are absent in the target classifier. Comparison of objects includes: - comparison of objects quantity in classifiers; - comparison of objects of one code; - printing of the objects which are absent in the target classifier. At comparison of objects of one code independent objects and the objects belonged to a series are separately considered. If objects in the source and target classifiers are independent, i.e. do not belong to series, for them comparison of keys and comparison of codes of semantics appointed for object is carried out. If the object in one of classifiers is independent, and in other classifier belonged to a series for independent object the list of semantics, appointed for object is printed, and for a series of objects the description of a series is printed. If the object in all classifiers is included into a series the description of series from two classifiers is printed. The description of a series includes: - quantity of the objects belonged to a series; - list of semantics, forming a series, with the indication of a code of semantics, of the name of semantics and of value of thresholds. Comparison of libraries includes: - comparison of quantity of libraries; - printing of lists of libraries names of source and target classifiers. |