A method for processing attribute data of secondary development function library of digital platform of coal preparation plant
By displaying and processing attribute items and segmented scripts in the coal preparation plant digital platform and updating the attribute threshold range, the problem of low secondary development efficiency in the existing technology is solved, and more efficient attribute data processing and operation efficiency is achieved.
Patent Information
- Application Number
- CN202410975242.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-07-19
AI Technical Summary
The secondary development efficiency of the existing coal preparation plant digital platform is low, and a large number of high-technicians need to manually add the underlying code, resulting in high development costs and low operation efficiency.
When receiving the access request from the development function library, all attribute items are displayed, and segmented scripts are retrieved and output when the coefficient value exceeds the threshold range, detect the linkage attributes of the object selected by the moving cursor, update the attribute threshold range, extract and disassemble Split script files, determine the correlation attributes, bind code objects, generate target attribute items, output attribute adjustment range and warning information.
It greatly reduces the development complexity and code volume, improves the operation efficiency of the coal preparation digital platform, ensures the accuracy and security of the attribute item configuration, and reduces the requirements for the business capabilities of development users.
Smart Images

Figure CN118519621B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to an attribute data processing method of a secondary development function library of a digital platform of a coal preparation plant. Background Art
[0002] With the rapid development of big data technology, in order to speed up the production efficiency of heavy industry, the coal mining industry has also begun to introduce data processing technology into the production process. For example, coal preparation plants monitor and manage data throughout the entire coal preparation process based on digital platforms.
[0003] At present, the digital platform of the existing coal preparation plant has an open source function, and the developers of the coal preparation plant can carry out secondary development on the digital platform to add different new functions that meet the needs of coal preparation. At this time, the attribute data of different functions in the function library of the digital platform are configured in sequence by the developers according to the needs, and a large number of highly skilled personnel need to be arranged to add the underlying code, which greatly increases the development cost and reduces the operating efficiency of the digital platform. Summary of the invention
[0004] In view of this, the present invention provides an attribute data processing method for a secondary development function library of a digital platform of a coal preparation plant, the main purpose of which is to solve the existing technical problem of low operating efficiency of the digital platform of a coal preparation plant.
[0005] According to one aspect of the present invention, a method for processing attribute data of a secondary development function library of a coal preparation plant digital platform is provided, comprising:
[0006] When receiving an access request to a development function library, displaying all attribute items of the development function library, and when a coefficient value received through the attribute item exceeds an attribute threshold range, calling and outputting a segmentation script of a function attribute;
[0007] When it is detected that the selected object of the moving cursor in the segmented script is a bound coal preparation operation linkage attribute, the target attribute item of the coal preparation operation linkage attribute is retrieved, and the attribute adjustment range corresponding to the target attribute item is output, wherein the coal preparation operation linkage attribute is an attribute configured as a joint operation during the coal preparation operation process;
[0008] If the received adjustment value of the target attribute item is within the attribute adjustment range, and the coefficient value is less than the safe operation multiple of the attribute threshold range, the attribute threshold range of the attribute item is updated and configured.
[0009] Furthermore, before calling the target attribute item of the coal preparation operation linkage attribute, the method further includes:
[0010] Extracting script files of all attribute items, and splitting the script files according to the functional features corresponding to the attribute items to obtain segmented scripts of different functional attributes;
[0011] Traversing the overlapping scripts in all segmented scripts, and determining the association attribute corresponding to the functional attribute based on the overlapping scripts;
[0012] If the correlation attribute matches the preset coal preparation joint operation feature, the code object in the overlapping script is bound to the correlation attribute and configured as a coal preparation operation linkage attribute.
[0013] Further, the traversing the overlapping scripts in all segmented scripts and determining the association attribute corresponding to the functional attribute based on the overlapping scripts includes:
[0014] Counting the number of identifiers and the number of logic functions in the segment script according to the preset code segment identifiers and the preset code logic functions;
[0015] If the number of identifiers and the number of logical functions do not match the script logic number of the segmented script, the segmented script is divided into overlapping scripts according to the preset number of identifiers and the number of logical functions, and the overlapping functional attributes obtained by identifying the overlapping scripts are determined as mutually related correlation attributes.
[0016] Furthermore, the method further comprises:
[0017] Extracting script files of all attribute items, and extracting segmented scripts with the same functional attributes in the script files;
[0018] If there are correlation attributes matching the preset coal preparation operation attribute library in the segmented script, the code objects in the segmented script are respectively bound to the correlation attributes and configured as coal preparation operation linkage attributes.
[0019] Furthermore, before calling the target attribute item of the coal preparation operation linkage attribute and outputting the attribute adjustment range corresponding to the target attribute item, the method further includes:
[0020] Generate a target attribute item of the coal preparation operation linkage attribute, and associate the target attribute item with a mark, so that when the target attribute item is retrieved for output, associated operation information is indicated;
[0021] The operation parameter extreme value of the target attribute item during the joint operation is obtained, and the attribute adjustment range matching the operation parameter extreme value is determined based on a preset extreme value adjustment mapping relationship, so as to output the attribute adjustment range after determining the target attribute item.
[0022] Furthermore, the method further comprises:
[0023] If the received adjustment value of the target attribute item is not within the attribute adjustment range, and / or the coefficient value is greater than or equal to the safe operation multiple of the attribute threshold range, the attribute item adjustment warning information is generated to instruct the user to update the coefficient value.
[0024] According to another aspect of the present invention, a property data processing system of a secondary development function library of a coal preparation plant digital platform is provided, comprising:
[0025] A calling module, used for displaying all attribute items of the development function library when receiving an access request of the development function library, and calling and outputting a segmented script of the function attribute when a coefficient value received through the attribute item exceeds an attribute threshold range;
[0026] an output module, for, when it is detected that the selected object of the moving cursor in the segmented script is bound to a coal preparation operation linkage attribute, calling a target attribute item of the coal preparation operation linkage attribute, and outputting an attribute adjustment range corresponding to the target attribute item, wherein the coal preparation operation linkage attribute is an attribute configured as a joint operation during the coal preparation operation;
[0027] An updating module is used to update the attribute threshold range of the attribute item if the received adjustment value of the target attribute item is within the attribute adjustment range and the coefficient value is less than the safe operation multiple of the attribute threshold range.
[0028] Furthermore, the system further comprises:
[0029] A splitting module is used to extract script files of all attribute items, and split the script files according to the functional features corresponding to the attribute items to obtain segmented scripts of different functional attributes;
[0030] A determination module, configured to traverse overlapping scripts in all segmented scripts, and determine a correlation attribute corresponding to the functional attribute based on the overlapping scripts;
[0031] A configuration module is used to bind the code object in the overlapping script with the correlation attribute if the correlation attribute matches the preset coal preparation joint operation feature, and configure it as a coal preparation operation linkage attribute.
[0032] Furthermore, the determination module includes:
[0033] A counting unit, used for counting the number of identifiers and the number of logic functions in the segment script according to preset code segment identifiers and preset code logic functions;
[0034] An identification unit is used to divide the segmented script into overlapping scripts according to a preset number of the identification number and the number of logic functions if the number of identifications and the number of logic functions do not match the script logic number of the segmented script, and to identify the overlapping functional attributes obtained in the overlapping scripts as mutually related correlation attributes.
[0035] Furthermore, the system further comprises:
[0036] An extraction module, used to extract script files of all attribute items, and extract segmented scripts with the same functional attributes in the script files;
[0037] The binding module is used to bind the code objects in the segmented script to the association attributes respectively if there are association attributes matching the preset coal preparation operation attribute library in the segmented script, and configure them as coal preparation operation linkage attributes.
[0038] Furthermore, the system further comprises:
[0039] A first generating module is used to generate a target attribute item of the coal preparation operation linkage attribute, and associate the target attribute item with a mark, so that when the target attribute item is retrieved for output, associated operation information is indicated;
[0040] The acquisition module is used to obtain the extreme value of the operation parameter of the target attribute item when performing a joint operation, and determine the attribute adjustment range that matches the extreme value of the operation parameter based on a preset extreme value adjustment mapping relationship, so as to output the attribute adjustment range after determining the target attribute item.
[0041] Furthermore, the system further comprises:
[0042] The second generation module is used to generate the attribute item adjustment warning information to instruct the user to update the coefficient value if the received adjustment value of the target attribute item is not within the attribute adjustment range, and / or the coefficient value is greater than or equal to the safe operation multiple of the attribute threshold range.
[0043] According to another aspect of the present invention, there is provided a storage medium storing at least one executable instruction, wherein the executable instruction enables a processor to execute operations corresponding to the attribute data processing method of the secondary development function library of the digital platform of a coal preparation plant as described above.
[0044] According to another aspect of the present invention, there is provided a terminal, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0045] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the attribute data processing method of the secondary development function library of the above-mentioned coal preparation plant digital platform.
[0046] By means of the above technical solution, the technical solution provided by the embodiment of the present invention has at least the following advantages:
[0047] The invention provides an attribute data processing method for a secondary development function library of a coal preparation plant digital platform. Compared with the prior art, the embodiment of the present invention displays all attribute items of the development function library when receiving an access request to the development function library, and calls and outputs the segmented script of the function attribute when the coefficient value received through the attribute item exceeds the attribute threshold range; when it is detected that the selected object of the moving cursor in the segmented script is a bound coal preparation operation linkage attribute, the target attribute item of the coal preparation operation linkage attribute is called, and the attribute adjustment range corresponding to the target attribute item is output; if the adjustment value of the received target attribute item is within the attribute adjustment range, and the coefficient value is less than the safe operation multiple of the attribute threshold range, the attribute threshold range of the attribute item is updated and configured, and a visual function library attribute item display interface is provided to the development user, and when the attribute item configuration exceeds the attribute threshold range, the coefficient value is further verified based on the attribute adjustment range of the target attribute item that has an operation linkage relationship with the current attribute item, which fully integrates the linkage and constraint relationship between various equipment operations, greatly reduces the requirements on the business capabilities of the development user, reduces the complexity and code amount of the attribute item configuration, and at the same time, ensures the accuracy and security of the attribute item configuration, thereby effectively improving the efficiency of the digital platform operation of the coal preparation plant.
[0048] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0050] Figure 1 A flow chart of a method for processing attribute data of a secondary development function library of a coal preparation plant digital platform provided by an embodiment of the present invention is shown;
[0051] Figure 2A flow chart of another attribute data processing method of a secondary development function library of a coal preparation plant digital platform provided by an embodiment of the present invention is shown;
[0052] Figure 3 A block diagram showing the composition of an attribute data processing system of a secondary development function library of a coal preparation plant digital platform provided by an embodiment of the present invention;
[0053] Figure 4 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0054] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0055] The embodiment of the present invention provides a method for processing attribute data of a secondary development function library of a coal preparation plant digital platform, such as Figure 1 As shown, the method includes:
[0056] 101. When receiving an access request to a development function library, all attribute items of the development function library are displayed, and when a coefficient value received through the attribute item exceeds an attribute threshold range, a segmented script of a function attribute is retrieved and output.
[0057] In the embodiment of the present invention, the digital platform of the coal preparation plant is a platform for comprehensive monitoring, optimization and management of the production process of the coal preparation plant through digital and information means. The realization of its different functions needs to rely on a large number of function development scripts. When the developers of the coal preparation plant need to conduct secondary development of the functions of the digital platform of the coal preparation plant in order to meet the coal preparation needs, they can access the development function library to achieve the addition or parameter adjustment of one or more functions. When the developer requests to access the development function library, the current execution subject retrieves all the attribute item data of the development function library and displays all the attribute items of the development function library to the user interaction interface for the user to select the function items that need to be developed. Among them, the developer can access the development function library by logging into the development function library or clicking the interactive control in the development main interface, or it can be other customized methods, which are not specifically limited in the embodiment of the present invention. The current execution subject can be a local server or a cloud server of the digital platform of the coal preparation plant, which is not specifically limited in the embodiment of the present invention.
[0058] When the developer selects a certain attribute item through the display interface of all attribute items and configures the coefficient value for this attribute item, the current execution subject will receive the coefficient value input for this attribute item. Among them, the coefficient value is the operating parameter of the control object (coal preparation process equipment) corresponding to the attribute item, such as the speed of the conveyor belt, the speed of the centrifuge, the feeding speed of the coal feeder, and the crank speed of the feeding chassis. The attribute threshold range is a pre-set operating parameter range of the control object corresponding to the attribute item. This range is not used to characterize the limit operating parameters of the corresponding control object, but is set by comprehensively considering the overall operation and deployment of multiple devices to meet the numerical range under the mutual constraints and restrictions of the operation of each device. When the coefficient value input of a certain attribute item exceeds the attribute threshold range, it is necessary to further confirm whether the coefficient value configuration of this attribute item can meet the operating restrictions of other control objects. Therefore, the segmented script of the corresponding functional attribute of this attribute item is called, and output and displayed to the user interaction interface for further confirmation by the development user. When the coefficient value input of a certain attribute item is within the attribute threshold range, the original coefficient value in the attribute item can be updated according to the input coefficient value.
[0059] It should be noted that the secondary development process of the function library is mostly the process of adjusting the parameters of the function attributes. However, due to the large number of function attribute items, there are a large number of corresponding code scripts. Through visual interaction, when the development user has the need to access the development function library, the function library attribute items and the segmented scripts corresponding to the attribute items are displayed, which greatly saves the development user's time in finding code scripts and avoids large-scale code modifications, thus realizing low-code in the secondary development process of the function library, thereby improving the efficiency of attribute data processing in the secondary development process of the function library.
[0060] 102. When it is detected that the selected object of the moving cursor in the segmented script is bound to the coal preparation operation linkage attribute, the target attribute item of the coal preparation operation linkage attribute is retrieved, and the attribute adjustment range corresponding to the target attribute item is output.
[0061] In an embodiment of the present invention, the coal preparation operation linkage attribute is an attribute configured as a joint operation during the coal preparation operation. For example, during the coal preparation operation, there is mutual restriction and coordination between output and input in the operation execution process of device A and device B, then device A and device B can be configured as coal preparation operation linkage attributes. The associated attribute is the coal preparation operation linkage attribute, then the segmented script contains the declaration of different code objects under the attribute item and the assigned coefficient values. For example, the speed of the centrifuge is identified as V1, int V1 = 8000rpm; / / declare an integer variable named V1 and assign it a value of 8000rpm. Among them, different code objects in the segmented script are respectively associated with corresponding attribute types, namely, bound coal preparation operation linkage attributes and unbound coal preparation operation linkage attributes. When the development user needs to modify a parameter variable, the corresponding code object is selected by cursor selection. When the current execution subject detects that the development user has selected a code object in the segmented script through the cursor selection as the selected object, the attribute type of the selected code object is determined. If it is a bound coal preparation operation linkage attribute, it indicates that the assignment of this code object is also associated with the corresponding values of other attribute items. In this case, the attribute item with which there is an operation linkage relationship is used as the target attribute item, and the attribute adjustment range of the target attribute item is called.
[0062] It should be noted that the coal preparation process is a production line process in which multiple devices cooperate in sequence and restrict each other. For example, the feeding speed of the coal feeder needs to match the operating speed of the desludging screen, and the output rate of the main cyclone and the secondary cyclone needs to match the rotation speed of the next-stage centrifuge. By binding the coal preparation operation linkage attribute to the code object of the attribute item in the segmented script, when the development user needs to update and assign the parameter variable corresponding to the code object, the target attribute item with the operation linkage relationship with the current configuration attribute item can be called, and the attribute adjustment range corresponding to the target attribute item can be displayed, which greatly reduces the development difficulty and improves the convenience of development. At the same time, it ensures the accuracy of the development process, thereby effectively improving the efficiency of digital platform operation.
[0063] 103. If the received adjustment value of the target attribute item is within the attribute adjustment range, and the coefficient value is less than the safe operation multiple of the attribute threshold range, then update the attribute threshold range of the attribute item.
[0064] In an embodiment of the present invention, the adjustment value of the target attribute item is a value determined by adjusting the coefficient value of the currently selected attribute item. The specific determination method can be obtained by matching the preset operation linkage relationship set, and the operation linkage relationship set includes the attribute items with operation linkage and the mapping relationship between different parameter values. For example, attribute item C and attribute item D (target attribute item) are attributes of operation linkage. When the coefficient value of attribute item C is c, the adjustment value of attribute item D can be determined to be d through the mapping relationship. Of course, it can also be calculated through the preset function of operation linkage, that is, the relationship function is configured according to the operation linkage relationship of attribute item C and attribute item D. When the coefficient value of attribute item C is determined, the adjustment value of attribute item D can be calculated according to this function. In the case where the adjustment value is within the attribute adjustment range, it indicates that the coefficient value configured by the currently configured attribute item will not cause the operating parameters of the control object of the operation linkage to exceed the safe operation parameter range, and then further determine the degree to which the coefficient value is greater than the attribute threshold range. If the coefficient value is less than the safe operation multiple of the attribute threshold range, it indicates that although the coefficient value exceeds the currently set attribute threshold range, it can meet the safe operation requirements, then the attribute threshold range of the currently configured attribute item is updated and configured to meet the configuration needs of the development user. Specifically, the coefficient value can be used as the maximum value of the attribute threshold range to update the maximum value of the attribute threshold range. Among them, the safe operation multiple of the attribute threshold range is used to characterize the limit coefficient value range of safe operation. Different attribute threshold ranges correspond to different safe operation multiples. When the attribute threshold range is updated, the safe operation multiple is also updated accordingly to ensure that the attribute item configuration does not exceed the safe operation range, and the original coefficient value in the attribute item is updated according to the input coefficient value.
[0065] It should be noted that by determining the rationality of the adjustment value of the target attribute that has an operational linkage relationship with the current configuration attribute item, it can effectively avoid the problem that the development user ignores the linkage relationship between equipment operations during the development process, which leads to development failure, greatly shortens the development time, and ensures the accuracy of the development configuration. Updating the attribute threshold range can make the attribute threshold range more consistent with the current equipment operation status, facilitate the subsequent development configuration process, and further improve the flexibility and convenience of the secondary development of the coal preparation plant digital platform.
[0066] In an embodiment of the present invention, for further explanation and limitation, as Figure 2 As shown, before the step of retrieving the target attribute item of the coal preparation operation linkage attribute, the method further includes:
[0067] 201. Extract script files of all attribute items, and split the script files according to functional features corresponding to the attribute items to obtain segmented scripts of different functional attributes.
[0068] 202. Traverse the overlapping scripts in all segmented scripts, and determine the association attribute corresponding to the functional attribute based on the overlapping scripts.
[0069] 203. If the correlation attribute matches the preset coal preparation joint operation feature, the code object in the overlapping script is bound to the correlation attribute and configured as a coal preparation operation linkage attribute.
[0070] In an embodiment of the present invention, in order to determine the operational linkage relationship between different attribute items, the script files of all attribute items are extracted, and the script files are split into multiple segmented scripts of corresponding functional features according to the functional features corresponding to the attribute items, so as to determine which attribute items are a pair of associated attributes according to the overlapping content between the scripts. Among them, overlapping scripts are code segments with the same content between segmented scripts. For example, the segmented script E corresponding to the feeding functional feature of the coal feeder contains both the code object declaration of the feeding speed of the coal feeder and the code object declaration of the running speed of the desludging screen; the segmented script G corresponding to the desludging functional feature of the desludging screen contains both the code object declaration of the running speed of the desludging screen and the code object declaration of the feeding speed of the coal feeder, then the segmented script E and the code object declaration of the running speed of the desludging screen and the code object declaration of the feeding speed of the coal feeder in the segmented script G are overlapping scripts. The attribute items corresponding to the segmented scripts with overlapping scripts are a pair of associated attributes. In order to ensure the accuracy of the corresponding relationship of the correlation attributes, after determining the correlation attributes, the correlation attributes are verified based on the preset coal preparation joint operation characteristics. If the correlation attributes match the preset coal preparation joint operation characteristics, it means that this pair of correlation attributes meets the joint operation characteristics, then the two attribute items can be bound, and the coal preparation operation linkage attributes are associated with the corresponding code objects. Among them, the preset coal preparation joint operation characteristics are configured according to actual production experience, and the association relationship between attribute items with operation linkage relationship exists.
[0071] It should be noted that since each device in the coal preparation process does not operate in isolation, the segmented script corresponding to a certain functional feature will also contain a code segment of at least one other functional attribute to achieve linkage control of multiple devices. Therefore, through overlapping scripts, the linkage attributes between devices can be captured, thereby determining the correlation attributes, and further ensuring the accuracy of the correlation between attribute items through the verification of the preset coal preparation joint operation characteristics.
[0072] In one embodiment of the present invention, for further explanation and limitation, the step of traversing the overlapping scripts in all segmented scripts and determining the association attribute corresponding to the functional attribute based on the overlapping scripts includes:
[0073] Counting the number of identifiers and the number of logic functions in the segment script according to the preset code segment identifiers and the preset code logic functions;
[0074] If the number of identifiers and the number of logical functions do not match the script logic number of the segmented script, the segmented script is divided into overlapping scripts according to the preset number of identifiers and the number of logical functions, and the overlapping functional attributes obtained by identifying the overlapping scripts are determined as mutually related correlation attributes.
[0075] In an embodiment of the present invention, in order to ensure the accuracy of the relevance attribute, the overlapping scripts are divided according to the preset code segmentation identifier and the preset code logic function, and the relevance attribute is determined according to the overlapping scripts. Among them, the preset code segmentation identifier is an identifier that characterizes the completion of the current segment code, such as indentation, line break, blank line and curly bracket "{}". The preset code logic function includes characters that may appear in the code to execute the function, such as if, else, or, and, etc. According to the preset code segmentation identifier and the preset code logic function, the number of identifiers and the number of logic functions in the segment script are identified by a string recognition method. If the identified number of identifiers and the number of logic functions match the script logic number of the segment script, the overlapping scripts are directly divided from the segment script according to the number of identifiers and the number of logic functions; if the number of identifiers and the number of logic functions do not match the script logic number, considering that the identification of the number of identifiers and the number of logic functions is inaccurate, the overlapping scripts are divided from the segment script according to the preset number corresponding to the number of identifiers and the number of logic functions. Among them, the script logic number is the number of complete logics combined by the logic function characters. For example, the logic function characters if and else constitute a script logic; if the number of identifiers is 5, the number of conditional logic functions is 9, and the script logic is 5, then the number of identifiers and the number of logic functions do not match the script logic number; if the number of identifiers is 5, the number of conditional logic functions is 10, and the script logic is 5, then the number of identifiers and the number of logic functions match the script logic number. The preset number is the number of logic functions and the number of identifiers that match the script logic number, that is, the number of logic functions and the number of identifiers that are normal and reasonable according to the script logic number. After determining the overlapping script, if the overlapping script includes the running speed of the desludging screen and the feeding speed of the coal feeder, the correlation attribute of the running speed of the desludging screen and the feeding speed of the coal feeder is determined. By binding the correlation attributes by dividing the overlapping scripts, there is no need to pre-identify the correlation attributes. In application scenarios where the number of attribute items is large and the correlation relationship between the attribute items is relatively flexible, the attribute items with correlation can still be accurately and reliably identified, and the applicable scenarios are relatively wide.
[0076] In an embodiment of the present invention, for further explanation and limitation, the method further includes:
[0077] Extracting script files of all attribute items, and extracting segmented scripts with the same functional attributes in the script files;
[0078] If there are correlation attributes matching the preset coal preparation operation attribute library in the segmented script, the code objects in the segmented script are respectively bound to the correlation attributes and configured as coal preparation operation linkage attributes.
[0079] In an embodiment of the present invention, as another way to determine the correlation attribute, a coal preparation operation attribute library is pre-constructed, and attribute items with correlation attributes are identified; when there is a correlation attribute matching the preset coal preparation operation attribute library in the segmented script, the code object corresponding to the current attribute item and the correlation attribute associated with it are bound, and the current attribute is configured as a coal preparation operation linkage attribute, so that when the development user selects the code object bound to the coal preparation operation linkage attribute in the segmented script, that is, when the code object bound to the coal preparation operation linkage attribute is the selected object, the target attribute item is retrieved and displayed. By pre-constructing the coal preparation operation attribute library, the overlapping script division of the segmented code is avoided, and the amount of data processing in the process of binding the coal preparation operation linkage attribute is reduced. However, since the coal preparation operation attribute library needs to be pre-constructed, the workload of manual identification in the early stage is large, and the flexibility is low. This method is more suitable for application scenarios with a small number of attribute items and relatively fixed correlation attributes.
[0080] In one embodiment of the present invention, for further explanation and limitation, before the step of retrieving the target attribute item of the coal preparation operation linkage attribute and outputting the attribute adjustment range corresponding to the target attribute item, the method further includes:
[0081] Generate a target attribute item of the coal preparation operation linkage attribute, and associate the target attribute item with a mark, so that when the target attribute item is retrieved for output, associated operation information is indicated;
[0082] The operation parameter extreme value of the target attribute item during the joint operation is obtained, and the attribute adjustment range matching the operation parameter extreme value is determined based on a preset extreme value adjustment mapping relationship, so as to output the attribute adjustment range after determining the target attribute item.
[0083] In an embodiment of the present invention, another selected correlation attribute that is mutually correlated with the coal preparation operation linkage attribute is determined as the target attribute item of the current attribute item, that is, a pair of attribute items that are mutually correlated attributes, and are mutually target attribute items. After determining the target attribute item, the target attribute item and the operation information of the corresponding control object are associated and marked. Specifically, the mutually correlated correlation attributes can be marked with the same color or the same symbol, so that when the target attribute item is output, the operation information corresponding to the target attribute item can be synchronously indicated in the three-dimensional diagram of the coal preparation process equipment. Further, in order to determine the attribute adjustment range of the target attribute item, the operation parameter extreme value of the target attribute item when performing the joint operation is obtained, including the operation parameter maximum value and the operation parameter minimum value, and the attribute adjustment range matching the current operation parameter extreme value is identified from the preset extreme value adjustment mapping relationship. Among them, the preset extreme value adjustment mapping relationship includes the pre-configured mapping relationship between different operation parameter extreme values and different attribute adjustment ranges. The extreme values of the operating parameters are determined for the joint operating relationship in the current coal preparation generation process, and meet the mutual constraints between the current associated attribute items when the linkage operation occurs. Therefore, the attribute adjustment range that meets the linkage operation constraints can be determined. By matching the attribute adjustment range with the extreme values of the operating parameters of the target attribute item during the joint operation, the attribute adjustment range can better meet the constraint relationship between the attribute items under the current linkage operation, thereby making the constraint of the attribute adjustment range on the coefficient value more accurate.
[0084] In an embodiment of the present invention, for further explanation and limitation, the method further includes:
[0085] If the received adjustment value of the target attribute item is not within the attribute adjustment range, and / or the coefficient value is greater than or equal to the safe operation multiple of the attribute threshold range, the attribute item adjustment warning information is generated to instruct the user to update the coefficient value.
[0086] In an embodiment of the present invention, it may also happen that the adjustment value of the received target attribute item is not within the attribute adjustment range, and the coefficient value is greater than or equal to the safe operation multiple of the attribute threshold range. If any one of the above two situations occurs, or both situations occur at the same time, it indicates that the coefficient value of the currently configured attribute item does not meet the safe operation conditions of the coal preparation equipment, and attribute item adjustment warning information is generated to instruct the development user to update and correct the input coefficient value so that the coefficient value meets the safe operation conditions of the coal preparation equipment, thereby completing the configuration of the attribute item.
[0087] The invention provides an attribute data processing method for a secondary development function library of a coal preparation plant digital platform. Compared with the prior art, the embodiment of the present invention displays all attribute items of the development function library when receiving an access request to the development function library, and calls and outputs the segmented script of the function attribute when the coefficient value received through the attribute item exceeds the attribute threshold range; when it is detected that the selected object of the moving cursor in the segmented script is a bound coal preparation operation linkage attribute, the target attribute item of the coal preparation operation linkage attribute is called, and the attribute adjustment range corresponding to the target attribute item is output; if the adjustment value of the received target attribute item is within the attribute adjustment range, and the coefficient value is less than the safe operation multiple of the attribute threshold range, the attribute threshold range of the attribute item is updated and configured, and a visual function library attribute item display interface is provided to the development user, and when the attribute item configuration exceeds the attribute threshold range, the coefficient value is further verified based on the attribute adjustment range of the target attribute item that has an operation linkage relationship with the current attribute item, which fully integrates the linkage and constraint relationship between various equipment operations, greatly reduces the requirements on the business capabilities of the development user, reduces the complexity and code amount of the attribute item configuration, and at the same time, ensures the accuracy and security of the attribute item configuration, thereby effectively improving the efficiency of the digital platform operation of the coal preparation plant.
[0088] Furthermore, as a response to the above Figure 1 The implementation of the method shown in the figure, the embodiment of the present invention provides an attribute data processing system for the secondary development function library of the digital platform of the coal preparation plant, such as Figure 3 As shown, the system includes:
[0089] The calling module 31 is used to display all the attribute items of the development function library when receiving the access request of the development function library, and to call and output the segmented script of the function attribute when the coefficient value received through the attribute item exceeds the attribute threshold range;
[0090] The output module 32 is used for, when it is detected that the selected object of the moving cursor in the segmented script is bound to the coal preparation operation linkage attribute, calling the target attribute item of the coal preparation operation linkage attribute, and outputting the attribute adjustment range corresponding to the target attribute item, wherein the coal preparation operation linkage attribute is an attribute configured as a joint operation during the coal preparation operation process;
[0091] The updating module 33 is configured to update the attribute threshold range of the attribute item if the received adjustment value of the target attribute item is within the attribute adjustment range and the coefficient value is less than the safe operation multiple of the attribute threshold range.
[0092] Furthermore, the system further comprises:
[0093] A splitting module is used to extract script files of all attribute items, and split the script files according to the functional features corresponding to the attribute items to obtain segmented scripts of different functional attributes;
[0094] A determination module, configured to traverse overlapping scripts in all segmented scripts, and determine a correlation attribute corresponding to the functional attribute based on the overlapping scripts;
[0095] A configuration module is used to bind the code object in the overlapping script with the correlation attribute if the correlation attribute matches the preset coal preparation joint operation feature, and configure it as a coal preparation operation linkage attribute.
[0096] Furthermore, the determination module includes:
[0097] A counting unit, used for counting the number of identifiers and the number of logic functions in the segment script according to preset code segment identifiers and preset code logic functions;
[0098] An identification unit is used to divide the segmented script into overlapping scripts according to a preset number of the identification number and the number of logic functions if the number of identifications and the number of logic functions do not match the script logic number of the segmented script, and to identify the overlapping functional attributes obtained in the overlapping scripts as mutually related correlation attributes.
[0099] Furthermore, the system further comprises:
[0100] An extraction module, used to extract script files of all attribute items, and extract segmented scripts with the same functional attributes in the script files;
[0101] The binding module is used to bind the code objects in the segmented script to the association attributes respectively if there are association attributes matching the preset coal preparation operation attribute library in the segmented script, and configure them as coal preparation operation linkage attributes.
[0102] Furthermore, the system further comprises:
[0103] A first generating module is used to generate a target attribute item of the coal preparation operation linkage attribute, and associate the target attribute item with a mark, so that when the target attribute item is retrieved for output, associated operation information is indicated;
[0104] The acquisition module is used to obtain the extreme value of the operation parameter of the target attribute item when performing a joint operation, and determine the attribute adjustment range that matches the extreme value of the operation parameter based on a preset extreme value adjustment mapping relationship, so as to output the attribute adjustment range after determining the target attribute item.
[0105] Furthermore, the system further comprises:
[0106] The second generation module is used to generate the attribute item adjustment warning information to instruct the user to update the coefficient value if the received adjustment value of the target attribute item is not within the attribute adjustment range, and / or the coefficient value is greater than or equal to the safe operation multiple of the attribute threshold range.
[0107] The invention provides an attribute data processing system for a secondary development function library of a coal preparation plant digital platform. Compared with the prior art, the embodiment of the present invention displays all attribute items of the development function library when receiving an access request to the development function library, and calls and outputs the segmented script of the function attribute when the coefficient value received through the attribute item exceeds the attribute threshold range; when it is detected that the selected object of the moving cursor in the segmented script is a bound coal preparation operation linkage attribute, the target attribute item of the coal preparation operation linkage attribute is called, and the attribute adjustment range corresponding to the target attribute item is output; if the adjustment value of the received target attribute item is within the attribute adjustment range, and the coefficient value is less than the safe operation multiple of the attribute threshold range, the attribute threshold range of the attribute item is updated and configured, and a visual function library attribute item display interface is provided to the development user, and when the attribute item configuration exceeds the attribute threshold range, the coefficient value is further verified based on the attribute adjustment range of the target attribute item that has an operation linkage relationship with the current attribute item, which fully integrates the linkage and constraint relationship between various equipment operations, greatly reduces the requirements on the business capabilities of the development user, reduces the complexity and code amount of the attribute item configuration, and at the same time, ensures the accuracy and security of the attribute item configuration, thereby effectively improving the efficiency of the digital platform operation of the coal preparation plant.
[0108] According to one embodiment of the present invention, a storage medium is provided, wherein the storage medium stores at least one executable instruction, and the computer executable instruction can execute the attribute data processing method of the secondary development function library of the coal preparation plant digital platform in any of the above method embodiments.
[0109] Figure 4 A schematic diagram of the structure of a terminal provided according to an embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the terminal.
[0110] like Figure 4 As shown, the terminal may include: a processor (processor) 402 , a communication interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .
[0111] The processor 402 , the communication interface 404 , and the memory 406 communicate with each other via a communication bus 408 .
[0112] The communication interface 404 is used to communicate with other devices such as clients or other servers.
[0113] The processor 402 is used to execute the program 410, and specifically can execute the relevant steps in the above-mentioned attribute data processing method embodiment of the secondary development function library of the digital platform of the coal preparation plant.
[0114] Specifically, the program 410 may include program codes, which include computer operation instructions.
[0115] The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the terminal may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0116] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0117] The program 410 may be specifically configured to enable the processor 402 to perform the following operations:
[0118] When receiving an access request to a development function library, displaying all attribute items of the development function library, and when a coefficient value received through the attribute item exceeds an attribute threshold range, calling and outputting a segmentation script of a function attribute;
[0119] When it is detected that the selected object of the moving cursor in the segmented script is a bound coal preparation operation linkage attribute, the target attribute item of the coal preparation operation linkage attribute is retrieved, and the attribute adjustment range corresponding to the target attribute item is output, wherein the coal preparation operation linkage attribute is an attribute configured as a joint operation during the coal preparation operation process;
[0120] If the received adjustment value of the target attribute item is within the attribute adjustment range, and the coefficient value is less than the safe operation multiple of the attribute threshold range, the attribute threshold range of the attribute item is updated and configured.
[0121] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing system, they can be concentrated on a single computing system, or distributed on a network composed of multiple computing systems, and optionally, they can be implemented by a program code executable by a computing system, so that they can be stored in a storage system and executed by the computing system, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0122] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for processing attribute data of a secondary development function library of a coal preparation plant digital platform, characterized in that: include: When receiving an access request to a development function library, displaying all attribute items of the development function library, and when a coefficient value received through the attribute item exceeds an attribute threshold range, calling and outputting a segmentation script of a function attribute; When it is detected that the selected object of the moving cursor in the segmented script is a bound coal preparation operation linkage attribute, the target attribute item of the coal preparation operation linkage attribute is retrieved, and the attribute adjustment range corresponding to the target attribute item is output, wherein the coal preparation operation linkage attribute is an attribute configured as a joint operation during the coal preparation operation process; If the received adjustment value of the target attribute item is within the attribute adjustment range, and the coefficient value is less than the safe operation multiple of the attribute threshold range, updating the attribute threshold range of the attribute item; Before calling the target attribute item of the coal preparation operation linkage attribute, the method further includes: Extracting script files of all attribute items, and splitting the script files according to the functional features corresponding to the attribute items to obtain segmented scripts of different functional attributes; Traversing the overlapping scripts in all segmented scripts, and determining the association attribute corresponding to the functional attribute based on the overlapping scripts; If the correlation attribute matches the preset coal preparation joint operation feature, the code object in the overlapping script is bound to the correlation attribute and configured as a coal preparation operation linkage attribute.
2. The method according to claim 1, characterized in that The traversing of the overlapping scripts in all segmented scripts and determining the association attribute corresponding to the functional attribute based on the overlapping scripts includes: Counting the number of identifiers and the number of logic functions in the segment script according to the preset code segment identifiers and the preset code logic functions; If the number of identifiers and the number of logical functions do not match the script logic number of the segmented script, the segmented script is divided into overlapping scripts according to the preset number of identifiers and the number of logical functions, and the overlapping functional attributes obtained by identifying the overlapping scripts are determined as mutually related correlation attributes.
3. The method according to claim 1, characterized in that: The method further comprises: Extracting script files of all attribute items, and extracting segmented scripts with the same functional attributes in the script files; If there are correlation attributes matching the preset coal preparation operation attribute library in the segmented script, the code objects in the segmented script are respectively bound to the correlation attributes and configured as coal preparation operation linkage attributes.
4. The method according to claim 1, characterized in that: Before calling the target attribute item of the coal preparation operation linkage attribute and outputting the attribute adjustment range corresponding to the target attribute item, the method further includes: Generate a target attribute item of the coal preparation operation linkage attribute, and associate the target attribute item with a mark, so that when the target attribute item is retrieved for output, associated operation information is indicated; The operation parameter extreme value of the target attribute item during the joint operation is obtained, and the attribute adjustment range matching the operation parameter extreme value is determined based on a preset extreme value adjustment mapping relationship, so as to output the attribute adjustment range after determining the target attribute item.
5. The method according to claim 1, characterized in that The method further comprises: If the received adjustment value of the target attribute item is not within the attribute adjustment range, and / or the coefficient value is greater than or equal to the safe operation multiple of the attribute threshold range, the attribute item adjustment warning information is generated to instruct the user to update the coefficient value.
6. An attribute data processing system for the secondary development function library of a coal preparation plant digital platform, characterized in that: include: A calling module, used for displaying all attribute items of the development function library when receiving an access request of the development function library, and calling and outputting a segmented script of the function attribute when a coefficient value received through the attribute item exceeds an attribute threshold range; an output module, for, when it is detected that the selected object of the moving cursor in the segmented script is bound to a coal preparation operation linkage attribute, calling a target attribute item of the coal preparation operation linkage attribute, and outputting an attribute adjustment range corresponding to the target attribute item, wherein the coal preparation operation linkage attribute is an attribute configured as a joint operation during the coal preparation operation; An updating module, configured to update the attribute threshold range of the attribute item if the received adjustment value of the target attribute item is within the attribute adjustment range and the coefficient value is less than the safe operation multiple of the attribute threshold range; The system further comprises: A splitting module is used to extract script files of all attribute items, and split the script files according to the functional features corresponding to the attribute items to obtain segmented scripts of different functional attributes; A determination module, configured to traverse overlapping scripts in all segmented scripts, and determine a correlation attribute corresponding to the functional attribute based on the overlapping scripts; A configuration module is used to bind the code object in the overlapping script with the correlation attribute if the correlation attribute matches the preset coal preparation joint operation feature, and configure it as a coal preparation operation linkage attribute.
7. A storage medium storing at least one executable instruction, wherein the executable instruction enables a processor to execute operations corresponding to the attribute data processing method of the secondary development function library of the digital platform of a coal preparation plant as described in any one of claims 1-5.
8. A terminal, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute an operation corresponding to the attribute data processing method of the secondary development function library of the coal preparation plant digital platform as described in any one of claims 1-5.
Citation Information
Patent Citations
Data processing method and device, equipment and medium
CN114579107A
Data processing method and device, electronic equipment and storage medium
CN115878647A
Business form processing method and device, equipment and storage medium
CN116306489A
Data processing method and device of application component and data processing system
CN116755719A
Configuration method and device for data interaction script between systems
CN118069212A
