Intelligent scheme filling method and device based on programming language and computer equipment
Through the intelligent filling method of the solution based on the programming language, the user-selected solution elements and preset mapping relationships are used to generate the grid system work plan, which solves the problem that traditional technology cannot meet the high-precision needs of the power grid system and achieves the efficient work plan Generation and information accuracy.
Patent Information
- Application Number
- CN202411588986.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-02-14
AI Technical Summary
Traditional technology is difficult to adapt to the needs of large scale and high accuracy requirements in power grid systems, and it is impossible to ensure the accurate and efficient filling of work plan information, which affects the efficiency of work plan generation.
Using the intelligent filling method of the program based on the programming language, the matching target solution elements are obtained by responding to the user's plan element selection operation, and the preset mapping relationship and template are used to generate work plan information to improve the accuracy and generation efficiency of information. .
It realizes efficient generation of work plans, avoids tedious and complex inefficient filling operations, and ensures improvement of the information accuracy and generation efficiency of work plans.
Smart Images

Figure CN119440477A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment, computer-readable storage medium and computer program product for intelligently filling out a solution based on a programming language. Background Art
[0002] The work plan-work ticket model can be used to carry out relevant work processes in the power grid system. That is, the staff will write a corresponding work plan for the specific work, and then go to the site to issue a work ticket to carry out the work. The accuracy of the work plan has an important impact on whether the work process in the power grid system can be carried out smoothly. An accurate work plan can ensure the safety and effectiveness of the work process in the power grid system.
[0003] The traditional technology method of determining work plans cannot adapt to the large volume and high precision requirements of work plans in power grid systems. Moreover, since a large amount of information is involved in the process of determining work plans, the traditional technology method of determining work plans cannot guarantee the accurate and efficient filling of information in the work plans, which is not conducive to improving the efficiency of generating work plans. Summary of the invention
[0004] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product based on a programming language for intelligently filling out plans, which can improve the efficiency of generating work plans in order to solve the above-mentioned technical problems.
[0005] In a first aspect, the present application provides a method for intelligently filling out a solution based on a programming language, comprising:
[0006] In response to a selection operation on at least one solution element, a solution element matching the selection operation is obtained as a target solution element; the target solution element is used to describe at least one of the test equipment, work items, instruments and meters, and work members corresponding to the work solution;
[0007] Determine, according to a preset first mapping relationship and the target solution element, operation requirement information for representing the operation requirement corresponding to the work solution; the preset first mapping relationship is used to represent the correspondence between the solution element and the operation requirement;
[0008] Based on the target solution elements, the operation requirement information and the preset template, work solution information for representing the work solution is generated.
[0009] In one embodiment, generating work plan information for representing the work plan according to the target plan elements, the operation requirement information and the preset template includes:
[0010] Determining solution content information for representing the content of the work solution according to the target solution elements and the operation requirement information;
[0011] The work plan information is generated according to the target plan elements, the operation requirement information, the plan content information and the preset template.
[0012] In one embodiment, generating the work plan information according to the target plan elements, the operation requirement information, the plan content information and the preset template includes:
[0013] Determine the corresponding positions to be filled in the preset template for the target solution elements, the operation requirement information, and the solution content information;
[0014] According to the corresponding positions to be filled in the preset template of the target plan elements, the operation requirement information, and the plan content information, the target plan elements, the operation requirement information, and the plan content information are filled in the preset template one by one to obtain the work plan information.
[0015] In one embodiment, determining the solution content information for characterizing the content of the work solution according to the target solution elements and the operation requirement information includes:
[0016] Acquire a preset second mapping relationship; the preset second mapping relationship is used to represent the correspondence between the content of the work plan and the plan elements and / or the operation requirements corresponding to the work plan;
[0017] According to the preset second mapping relationship, at least one piece of information to be processed is screened out from the target solution elements and / or the operation requirement information;
[0018] The solution content information is determined according to the preset second mapping relationship and the information to be processed.
[0019] In one embodiment, before the step of selecting at least one information to be processed from the target solution elements and / or the operation requirement information, the method further comprises:
[0020] Obtaining content information of at least one candidate solution from a preset database;
[0021] Filtering candidate solution elements and / or candidate operation requirement information corresponding to the candidate solution content information from the preset database;
[0022] The preset second mapping relationship is determined according to the candidate solution content information and the candidate solution elements and / or candidate operation requirement information corresponding to the candidate solution content information.
[0023] In one embodiment, before the step of determining the operation requirement information for characterizing the operation requirement corresponding to the work plan, the method further includes:
[0024] Obtaining at least one candidate job requirement information from a preset database;
[0025] Filtering candidate solution elements corresponding to the candidate operation requirement information from the preset database;
[0026] The preset first mapping relationship is determined according to the candidate operation requirement information and the candidate solution elements corresponding to the candidate operation requirement information.
[0027] In a second aspect, the present application also provides a program intelligent filling device based on a programming language, comprising:
[0028] A selection module is used for, in response to a selection operation on at least one solution element, obtaining a solution element matching the selection operation as a target solution element; the target solution element is used to describe at least one of the test equipment, operation items, instruments and meters, and working members corresponding to the work solution;
[0029] A determination module, used to determine the operation requirement information used to characterize the operation requirement corresponding to the work plan according to a preset first mapping relationship and the target plan element; the preset first mapping relationship is used to characterize the correspondence between the plan element and the operation requirement;
[0030] A generation module is used to generate work plan information for representing the work plan according to the target plan elements, the operation requirement information and the preset template.
[0031] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the above method are implemented.
[0032] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0033] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0034] The above-mentioned intelligent scheme filling method, device, computer equipment, computer-readable storage medium and computer program product based on programming language, by responding to the selection operation for at least one scheme element, obtains the scheme element matching the selection operation as the target scheme element; the target scheme element is used to describe at least one of the test equipment, operation items, instruments and working members corresponding to the work scheme; thereby, based on the user's selection operation, the scheme element selected by the user is accurately obtained, so as to generate a work scheme based on the scheme element selected by the user; according to the preset first mapping relationship and the target scheme element, the operation requirement information used to characterize the operation requirement corresponding to the work scheme is determined; the preset first mapping relationship is used to characterize the correspondence between the scheme element and the operation requirement; thereby, in combination with the preset mapping relationship, the corresponding operation requirement is accurately obtained using the scheme element, so as to generate a work scheme in combination with the operation requirement and the scheme element; according to the target scheme element, the operation requirement information and the preset template, the work scheme information used to characterize the work scheme is generated, so as to efficiently generate the work scheme information used to characterize the corresponding work scheme based on the preset template, according to the scheme element selected by the user and the operation requirement corresponding to the scheme element, so as to avoid cumbersome and inefficient filling operations, and accurately and efficiently write the work scheme based on the scheme element selected by the user and the operation requirement corresponding to the scheme element, thereby improving the generation efficiency of the work scheme. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 An application environment diagram of a method for intelligently filling out a solution based on a programming language in an embodiment;
[0037] Figure 2 A schematic diagram of a flow chart of a method for intelligently filling in a solution based on a programming language in an embodiment;
[0038] Figure 3 A schematic diagram of a method for writing a working scheme in one embodiment;
[0039] Figure 4 A structural block diagram of a program intelligent filling device based on a programming language in one embodiment;
[0040] Figure 5 The figure is a diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0042] The intelligent solution filling method based on programming language provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The terminal 102 responds to the selection operation for at least one solution element, and obtains the solution element that matches the selection operation as the target solution element; the target solution element is used to describe at least one of the test equipment, operation items, instruments and working members corresponding to the work plan; the terminal 102 determines the operation requirement information for characterizing the operation requirements corresponding to the work plan according to the preset first mapping relationship and the target solution element; the preset first mapping relationship is used to characterize the correspondence between the solution element and the operation requirement; the terminal 102 generates the work solution information for characterizing the work plan according to the target solution element, the operation requirement information and the preset template. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart TVs, smart car-mounted devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head mounted device may be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc. The server 104 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0043] In an exemplary embodiment, Figure 2 As shown, a method for intelligently filling out a solution based on a programming language is provided, and the method is described by taking the application of the method to a terminal as an example, including the following steps S202 to S206. Among them:
[0044] Step S202, in response to a selection operation on at least one solution element, a solution element matching the selection operation is obtained as a target solution element; the target solution element is used to describe at least one of the test equipment, work items, instruments and meters, and work members corresponding to the work plan.
[0045] Among them, the program elements may refer to the information that describes the content of the work plan. In practical applications, the program elements may include but are not limited to test equipment, work items, instruments and meters, and work members.
[0046] Among them, the selection operation may refer to an operation triggered by the user for determining at least one specific solution element from a number of solution elements. In actual applications, the selection operation may include but is not limited to the user clicking / selecting a specific "solution element" button on the display interface of the terminal through the terminal.
[0047] Among them, the target plan element is used to describe at least one of the test equipment, work items, instruments and work members corresponding to the work plan.
[0048] As an example, when a user needs to write a work plan in a power grid system, the user can select at least one plan element from a preset database in a preset filling system through a terminal, and then the terminal can respond to the selection operation for at least one plan element and obtain a plan element that matches the selection operation as a target plan element. In actual applications, the target plan element can also be manually input by the user through the terminal. The terminal can also display the target plan element to the user through the display interface of the terminal, and the user can modify the target plan element through the terminal.
[0049] Step S204, determining the operation requirement information for characterizing the operation requirement corresponding to the work plan according to the preset first mapping relationship and the target plan element; the preset first mapping relationship is used to characterize the correspondence between the plan element and the operation requirement.
[0050] Among them, the preset first mapping relationship may refer to information used to characterize the correspondence between scheme elements and job requirements. In actual applications, scheme elements may have corresponding identifiers, and job requirements may also have corresponding identifiers. The preset first mapping relationship may include a first functional relationship. According to the identifier corresponding to the scheme element and the first functional relationship, the identifier that can characterize the specific job requirement can be calculated / determined. At this time, the job requirement corresponding to the calculated identifier can be used as the job requirement information determined by the scheme elements and used to characterize the job requirements corresponding to the work plan.
[0051] The operation requirement information may refer to information used to characterize the operation requirements. In practical applications, the requirements may include but are not limited to safety measures, baseline risks, operation instructions, and types of operations.
[0052] As an example, the scheme elements can be used to determine the job requirements corresponding to the work scheme. Specifically, after the user selects the scheme elements, the user can perform the job requirement generation operation on the display interface of the terminal through the terminal. The terminal can respond to the job requirement generation operation triggered by the user, and filter out the job requirement information used to characterize the job requirements corresponding to the work scheme from the preset database according to the preset first mapping relationship and the target scheme elements. The terminal can also automatically filter out the job requirement information used to characterize the job requirements corresponding to the work scheme from the preset database according to the preset first mapping relationship and the target scheme elements. In a specific implementation, the terminal can display the job requirement information to the user through the display interface of the terminal, and the user can modify the job requirement information through the terminal.
[0053] Step S206, generating work plan information for representing the work plan according to the target plan elements, the operation requirement information and the preset template.
[0054] The preset template may refer to information that is preset and used as a reference for generating work plan information.
[0055] The work plan information may refer to information used to characterize the work plan. In practical applications, the work plan information may be used to guide a specific workflow or determine the operation steps of a specific workflow.
[0056] As an example, the terminal can use the preset template as a reference for generating work plan information, and combine the target plan elements and the job requirement information to generate the work plan information used to characterize the work plan. Specifically, the terminal can first determine other information (such as plan content information) in the preset template except the target plan elements and the job requirement information based on the target plan elements and the job requirement information, and then the terminal can fill in the target plan elements, job requirement information and other information into the preset template one by one to obtain the work plan information.
[0057] In the above-mentioned intelligent scheme filling method based on programming language, by responding to the selection operation for at least one scheme element, a scheme element matching the selection operation is obtained as a target scheme element; the target scheme element is used to describe at least one of the test equipment, work items, instruments and working members corresponding to the work scheme; thereby, based on the user's selection operation, the scheme element selected by the user is accurately obtained, so as to generate a work scheme based on the scheme element selected by the user; according to the preset first mapping relationship and the target scheme element, the operation requirement information used to characterize the operation requirement corresponding to the work scheme is determined; the preset first mapping relationship is used to characterize the correspondence between the scheme element and the operation requirement; thereby, in combination with the preset mapping relationship, the scheme element is used to accurately obtain the corresponding operation requirement, so as to generate a work scheme in combination with the operation requirement and the scheme element; according to the target scheme element, the operation requirement information and the preset template, the work scheme information for characterizing the work scheme is generated, so as to efficiently generate the work scheme information for characterizing the corresponding work scheme based on the preset template, according to the scheme element selected by the user and the operation requirement corresponding to the scheme element, so as to avoid cumbersome and complicated filling operations, and accurately and efficiently write the work scheme based on the scheme element selected by the user and the operation requirement corresponding to the scheme element, thereby improving the generation efficiency of the work scheme.
[0058] In an exemplary embodiment, work plan information for characterizing the work plan is generated based on target plan elements, job requirement information and preset templates, including: determining plan content information for characterizing the content of the work plan based on the target plan elements and job requirement information; generating work plan information based on the target plan elements, job requirement information, plan content information and preset templates.
[0059] Among them, the plan content information may refer to information used to characterize the content of the work plan. In actual applications, the plan content information may include but is not limited to work tasks, work scope, safety measures required for work, scenario-based risks, work preparation and work organization, etc.
[0060] As an example, the terminal can combine the information required to generate the content of the work plan and filter out specific information from the target plan elements and the operation requirement information to determine the work plan information. In actual applications, different plan content information can be determined by specific target plan elements (and operation requirement information), for example: when the plan content information is scenario risk, the scenario risk can be determined by the operation items in the target plan elements and the baseline risk in the operation requirement information; when the plan content information is operation preparation, the operation preparation can be determined by instruments and meters. After determining the plan content information, the terminal can display the plan content information to the user through the display interface of the terminal, and the user can also modify the plan content information through the terminal. After that, the terminal can respond to the plan content generation operation triggered by the user, and filter out the plan content information for representing the content of the work plan from the preset database according to the target plan elements and the operation requirement information. The terminal can also automatically filter out the plan content information for representing the content of the work plan from the preset database according to the target plan elements and the operation requirement information, and then the terminal can fill in the target plan elements, the operation requirement information and the plan content information one by one into the preset template to obtain the work plan information.
[0061] In this embodiment, the plan content information used to characterize the content of the work plan is determined according to the target plan elements and the job requirement information; the work plan information is generated according to the target plan elements, the job requirement information, the plan content information and the preset template. It is possible to first determine the plan content information used to characterize the content of the work plan based on the target plan elements and the job requirement information, and then accurately and efficiently fill in the target plan elements, the job requirement information and the plan content information into the preset template one by one, thereby improving the efficiency of generating the work plan.
[0062] In some embodiments, work plan information is generated based on target plan elements, job requirement information, plan content information and a preset template, including: determining the corresponding positions to be filled in the target plan elements, job requirement information and plan content information in the preset template; filling in the target plan elements, job requirement information and plan content information one by one into the preset template according to the corresponding positions to be filled in the target plan elements, job requirement information and plan content information in the preset template to obtain the work plan information.
[0063] The position to be filled in may refer to information used to characterize the corresponding positions of target solution elements, operation requirement information, and solution content information in the preset template.
[0064] As an example, since a large number of target solution elements, operation requirement information, and solution content information need to be filled in the preset template one by one, the terminal can first determine the corresponding positions to be filled in the target solution elements, operation requirement information, and solution content information in the preset template, and then the terminal can fill in the target solution elements, operation requirement information, and solution content information in the preset template according to the corresponding positions to be filled in the preset template to obtain the work solution information. In actual applications, the terminal can display the work solution information to the user through the terminal's display interface, and the user can modify the work solution information through the terminal to obtain the modified work solution information.
[0065] In this embodiment, by determining the corresponding positions to be filled in the target plan elements, job requirement information, and plan content information in the preset template; according to the corresponding positions to be filled in the target plan elements, job requirement information, and plan content information in the preset template, the target plan elements, job requirement information, and plan content information are filled in the preset template one by one to obtain the work plan information. In combination with the corresponding positions of the target plan elements, job requirement information, and plan content information in the preset template, the target plan elements, job requirement information, and plan content information can be accurately and efficiently filled in the preset template one by one, thereby improving the accuracy of the information in the work plan and the efficiency of generating the work plan.
[0066] In some embodiments, based on the target solution elements and the job requirement information, determining the solution content information used to characterize the content of the work solution includes: obtaining a preset second mapping relationship; the preset second mapping relationship is used to characterize the correspondence between the content of the work solution and the solution elements and / or the job requirements corresponding to the work solution; according to the preset second mapping relationship, filtering out at least one information to be processed from the target solution elements and / or the job requirement information; determining the solution content information based on the preset second mapping relationship and the information to be processed.
[0067] Among them, the preset second mapping relationship may refer to information used to characterize the correspondence between the content of the work plan and the plan elements and / or the job requirements corresponding to the work plan. In actual applications, the plan elements may have corresponding identifiers, the job requirements may have corresponding identifiers, and the content of the work plan may also have corresponding identifiers. The preset second mapping relationship may include a second functional relationship. According to the identifiers corresponding to the plan elements, the identifiers corresponding to the job requirements and the second functional relationship, the identifier that can characterize the content of a specific work plan can be calculated / determined. At this time, the content of the work plan corresponding to the calculated identifier can be used as the plan content information determined by the plan elements and / or the job requirements and used to characterize the content of the work plan.
[0068] The information to be processed may refer to information used to determine the content information of the solution. In practical applications, the information to be processed may include target solution elements. The information to be processed may also include target solution elements and operation requirement information.
[0069] As an example, in order to determine the solution content information, the terminal may first obtain a preset second mapping relationship, and then the terminal may filter out at least one piece of information to be processed from the target solution element and / or the job requirement information according to the preset second mapping relationship, and then the terminal may determine the solution content information according to the preset second mapping relationship and the information to be processed. For example: when the information to be processed is the test equipment and action items in the target solution element, the terminal may determine the work tasks in the solution content information according to the test equipment and action items in the target solution element in combination with the preset second mapping relationship; when the information to be processed is the test equipment and action items in the target solution element, the terminal may also determine the working scope in the solution content information according to the test equipment and action items in the target solution element in combination with the preset second mapping relationship; when the information to be processed is the test equipment in the target solution element and the safety measures in the job requirement information, the terminal may determine the solution content according to the test equipment in the target solution element and the safety measures in the job requirement information in combination with the preset second mapping relationship. The terminal can determine the scenario-based risks in the solution content information according to the safety measures in the work items and work requirement information in combination with the preset second mapping relationship; when the information to be processed is the instruments and meters in the target solution elements, the terminal can determine the job preparation in the solution content information according to the instruments and meters in the target solution elements in combination with the preset second mapping relationship; when the information to be processed is the working members in the target solution elements, the terminal can determine the work organization in the solution content information according to the working members in the target solution elements in combination with the preset second mapping relationship.
[0070] In this embodiment, a preset second mapping relationship is obtained; the preset second mapping relationship is used to characterize the correspondence between the content of the work plan and the plan elements and / or the job requirements corresponding to the work plan; according to the preset second mapping relationship, at least one information to be processed is screened out from the target plan elements and / or the job requirement information; according to the preset second mapping relationship and the information to be processed, the plan content information is determined, and it is possible to combine the mapping relationship and accurately obtain the corresponding plan content information based on the plan elements and / or the job requirements corresponding to the work plan, thereby improving the accuracy of the plan content information, and providing a data basis for the subsequent generation of work plan information according to the target plan elements, job requirement information, plan content information and preset templates, thereby improving the accuracy of the work plan.
[0071] In some embodiments, before the step of filtering out at least one piece of information to be processed from the target solution elements and / or job requirement information, the above method also includes: obtaining at least one candidate solution content information from a preset database; filtering out candidate solution elements and / or candidate job requirement information corresponding to the candidate solution content information from the preset database; and determining a preset second mapping relationship based on the candidate solution content information and the candidate solution elements and / or candidate job requirement information corresponding to the candidate solution content information.
[0072] The preset database may refer to a pre-set database containing a number of program elements, operation requirements and program contents.
[0073] As an example, the accuracy of the preset second mapping relationship is conducive to improving the accuracy of the work plan information. In order to determine the accurate second mapping relationship, for any solution content information in the preset database, the terminal can use the any solution content information as candidate solution content information, and then the terminal can filter out the candidate solution elements and / or candidate job requirement information corresponding to the candidate solution content information from the preset database, and then the terminal can determine the preset second mapping relationship based on the candidate solution content information and the candidate solution elements and / or candidate job requirement information corresponding to the candidate solution content information. In practical applications, the preset second mapping relationship can include a functional relationship, and the functional relationship between the work task R and the test equipment X and the work item X can be expressed as R=R(S,X).
[0074] In this embodiment, by obtaining at least one candidate solution content information from a preset database; screening out candidate solution elements and / or candidate job requirement information corresponding to the candidate solution content information from the preset database; and determining a preset second mapping relationship based on the candidate solution content information and the candidate solution elements and / or candidate job requirement information corresponding to the candidate solution content information, it is possible to analyze the solution content information and the corresponding solution elements and job requirements in the preset database to determine an accurate second mapping relationship, so as to subsequently determine the solution content information based on the second mapping relationship and generate a work plan, thereby improving the accuracy of the work plan.
[0075] In some embodiments, before the step of determining the job requirement information used to characterize the job requirements corresponding to the work plan, the above method also includes: obtaining at least one candidate job requirement information from a preset database; filtering out candidate solution elements corresponding to the candidate job requirement information from the preset database; and determining a preset first mapping relationship based on the candidate job requirement information and the candidate solution elements corresponding to the candidate job requirement information.
[0076] As an example, the accuracy of the preset first mapping relationship is conducive to improving the accuracy of the work plan information. In order to determine the accurate first mapping relationship, for any job requirement information in the preset database, the terminal can use the any job requirement information as candidate job requirement information, and then the terminal can filter out the candidate solution elements corresponding to the candidate job requirement information from the preset database, and determine the preset first mapping relationship based on the candidate job requirement information and the candidate solution elements corresponding to the candidate job requirement information. In practical applications, the preset first mapping relationship can include a functional relationship, and the functional relationship between the work instruction Y1 and the test equipment S can be expressed as Y1=Z1(S).
[0077] In this embodiment, by obtaining at least one candidate job requirement information from a preset database; screening out candidate solution elements corresponding to the candidate job requirement information from the preset database; and determining a preset first mapping relationship based on the candidate job requirement information and the candidate solution elements corresponding to the candidate job requirement information, it is possible to analyze the job requirement information and the corresponding solution elements in the preset database to determine an accurate first mapping relationship, so that the job requirement information can be subsequently determined based on the first mapping relationship and a work plan can be generated, thereby improving the accuracy of the work plan.
[0078] In some embodiments, users can write work plans through the intelligent solution filling system based on programming languages, wherein the intelligent solution filling system based on programming languages is mainly composed of three core parts: user input interface, system database and system programming algorithm. The user input interface includes necessary input nodes such as job type, job task, job preparation, and job organization. The system database is composed of the entire database of job types, test equipment, job projects, instruments, work members, work instructions, baseline risks, and safety measures involved in the power grid. The system programming algorithm is based on the JavaScript programming language, which blocks the user input interface and the system database according to the work plan writing template, and automatically outputs the work plan required by the user. The specific implementation method is as follows: establish a functional relationship between test equipment and safety measures in the system database, that is, one safety measure u corresponds to one test equipment S=f(u); establish a functional relationship between work items and baseline risks in the system database, that is, one baseline risk v corresponds to one work item X=g(v); establish a functional relationship between test equipment and work instructions in the system database, that is, one test equipment S corresponds to a type of work instruction Y1=Z1(S); establish a functional relationship between work types and test equipment in the system database, that is, one test equipment S corresponds to a work type Y2=Z2(S); build a user input interface and establish a secondary interface for options, in which the secondary interface for work tasks is test equipment and work items, the secondary interface for work preparation is instruments and meters, and the secondary interface for work organization is work members; the user selects test equipment S, work item X, instruments and meters b, and work member c to solve the safety measure u=f -1 (S), base risk v = g -1 (X), work instructions Y1=Z1(S), work type Y2=Z2(S), the algorithm generates work tasks R(S,X), work scope F(S,X), work safety measures U(S,u), scenario-based risks V(X,v), work preparation Y3=Z3(b), and work organization Y4=Z4(c); output the final plan according to the work plan template (such as the preset template) based on the test equipment, work items, instruments, work members, and solution results. Figure 3As shown, a flow chart of a work plan writing method is provided. When a user needs to write a work plan, the user can select / input target plan elements such as test equipment, work items, instruments and meters, and work members in the user input interface of the program intelligent filling system based on the programming language through the terminal. Then, the terminal can determine the safety measures, baseline risks, work instructions, work types and other work requirement information based on the target plan elements such as test equipment, work items, instruments and meters, and work members based on the preset functional relationship (such as the first mapping relationship and the second mapping relationship), and determine the work tasks, work scope, work requirements, safety measures, scenario-based risks, work preparation, work organization and other plan content information in combination with the target plan elements and the role requirement information. Then, the terminal can generate a work plan based on the target plan elements, work requirement information, plan content information and the preset template.
[0079] In this embodiment, by using the click-select mode of the system built based on the programming language, the corresponding work scene, test equipment and work project can be simply selected, which can save the tedious manual filling and greatly reduce the problems of missing, wrong filling or inconsistency that are prone to manual filling; based on the block interlocking mode of the system built based on the programming language, after selecting the corresponding work scene, test equipment and work project, the subsequent blocks are automatically generated by the system background, which can avoid filling in professional work ticket safety measures, scenario-based work risks, work steps and other contents for the above-mentioned work scenes, test equipment and work projects, greatly reduce the error rate of work plan writing, and greatly improve work efficiency.
[0080] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0081] Based on the same inventive concept, the embodiment of the present application also provides a device for intelligently filling out a solution based on a programming language for realizing the method for intelligently filling out a solution based on a programming language involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more devices for intelligently filling out a solution based on a programming language provided below can refer to the limitations of the method for intelligently filling out a solution based on a programming language above, and will not be repeated here.
[0082] In an exemplary embodiment, Figure 4 As shown, a program intelligent filling device based on a programming language is provided, comprising: a selection module 402, a determination module 404 and a generation module 406, wherein:
[0083] The selection module 402 is used to respond to a selection operation on at least one solution element and obtain a solution element that matches the selection operation as a target solution element; the target solution element is used to describe at least one of the test equipment, work items, instruments and working members corresponding to the work plan.
[0084] The determination module 404 is used to determine the operation requirement information used to characterize the operation requirements corresponding to the work plan according to the preset first mapping relationship and the target plan elements; the preset first mapping relationship is used to characterize the correspondence between the plan elements and the operation requirements.
[0085] The generating module 406 is used to generate work plan information for representing the work plan according to the target plan elements, the operation requirement information and the preset template.
[0086] In one of the exemplary embodiments, the generation module 406 is specifically used to determine the solution content information used to characterize the content of the work solution based on the target solution elements and the job requirement information; and generate the work solution information based on the target solution elements, the job requirement information, the solution content information and the preset template.
[0087] In one of the exemplary embodiments, the generation module 406 is specifically used to determine the corresponding positions to be filled in the target plan elements, the job requirement information, and the plan content information in the preset template; according to the corresponding positions to be filled in the target plan elements, the job requirement information, and the plan content information in the preset template, the target plan elements, the job requirement information, and the plan content information are filled in the preset template one by one to obtain the work plan information.
[0088] In one of the exemplary embodiments, the generation module 406 is specifically used to obtain a preset second mapping relationship; the preset second mapping relationship is used to characterize the correspondence between the content of the work plan and the plan elements and / or the job requirements corresponding to the work plan; according to the preset second mapping relationship, at least one information to be processed is filtered out from the target plan elements and / or the job requirement information; based on the preset second mapping relationship and the information to be processed, the plan content information is determined.
[0089] In one of the exemplary embodiments, the device also includes a second mapping determination module, which is specifically used to obtain at least one candidate solution content information from a preset database; filter out candidate solution elements and / or candidate job requirement information corresponding to the candidate solution content information from the preset database; and determine the preset second mapping relationship based on the candidate solution content information and the candidate solution elements and / or candidate job requirement information corresponding to the candidate solution content information.
[0090] In one of the exemplary embodiments, the device also includes a first mapping determination module, which is specifically used to obtain at least one candidate job requirement information from a preset database; filter out candidate solution elements corresponding to the candidate job requirement information from the preset database; and determine the preset first mapping relationship based on the candidate job requirement information and the candidate solution elements corresponding to the candidate job requirement information.
[0091] Each module in the above-mentioned intelligent solution filling device based on programming language can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0092] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 5As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for intelligently filling in a program based on a programming language is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0093] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0094] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0095] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0096] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0097] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0098] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0099] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0100] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for intelligently filling out a solution based on a programming language, characterized in that: The method comprises: In response to a selection operation on at least one solution element, a solution element matching the selection operation is obtained as a target solution element; the target solution element is used to describe at least one of the test equipment, work items, instruments and meters, and work members corresponding to the work plan; Determine, according to a preset first mapping relationship and the target solution element, operation requirement information for characterizing the operation requirement corresponding to the work solution; the preset first mapping relationship is used to characterize the correspondence between the solution element and the operation requirement; Based on the target solution elements, the operation requirement information and the preset template, work solution information for representing the work solution is generated.
2. The method according to claim 1, characterized in that: The step of generating work plan information for representing the work plan according to the target plan elements, the operation requirement information and the preset template includes: Determining solution content information for representing the content of the work solution according to the target solution elements and the operation requirement information; The work plan information is generated according to the target plan elements, the operation requirement information, the plan content information and the preset template.
3. The method according to claim 2, characterized in that The step of generating the work plan information according to the target plan elements, the operation requirement information, the plan content information and the preset template includes: Determine the corresponding positions to be filled in the preset template for the target solution elements, the operation requirement information, and the solution content information; According to the corresponding positions to be filled in the preset template of the target plan elements, the operation requirement information, and the plan content information, the target plan elements, the operation requirement information, and the plan content information are filled in the preset template one by one to obtain the work plan information.
4. The method according to claim 2, characterized in that: The step of determining the solution content information for representing the content of the work solution according to the target solution elements and the operation requirement information includes: Acquire a preset second mapping relationship; the preset second mapping relationship is used to represent the correspondence between the content of the work plan and the plan elements and / or the operation requirements corresponding to the work plan; According to the preset second mapping relationship, at least one piece of information to be processed is screened out from the target solution elements and / or the operation requirement information; The solution content information is determined according to the preset second mapping relationship and the information to be processed.
5. The method according to claim 4, characterized in that Before the step of selecting at least one piece of information to be processed from the target solution elements and / or the operation requirement information, the method further comprises: Obtaining content information of at least one candidate solution from a preset database; Filtering candidate solution elements and / or candidate operation requirement information corresponding to the candidate solution content information from the preset database; The preset second mapping relationship is determined according to the candidate solution content information and the candidate solution elements and / or candidate operation requirement information corresponding to the candidate solution content information.
6. The method according to claim 1, characterized in that Before the step of determining the operation requirement information for characterizing the operation requirement corresponding to the work plan, the method further includes: Obtaining at least one candidate job requirement information from a preset database; Filtering candidate solution elements corresponding to the candidate operation requirement information from the preset database; The preset first mapping relationship is determined according to the candidate operation requirement information and the candidate solution elements corresponding to the candidate operation requirement information.
7. A program intelligent filling device based on programming language, characterized in that: The device comprises: A selection module is used to, in response to a selection operation on at least one solution element, obtain a solution element matching the selection operation as a target solution element; the target solution element is used to describe at least one of the test equipment, work items, instruments and meters, and work members corresponding to the work plan; A determination module, used to determine the operation requirement information used to characterize the operation requirement corresponding to the work plan according to a preset first mapping relationship and the target plan element; the preset first mapping relationship is used to characterize the correspondence between the plan element and the operation requirement; A generation module is used to generate work plan information for representing the work plan according to the target plan elements, the operation requirement information and the preset template.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.