Demand specification generation method and device, computer equipment and storage medium
By obtaining and matching candidate functional points in the functional point information chain, determining the target functional points, and generating a requirement specification based on their association relationship, the problem of low accuracy in the generation of demand specifications in the prior art is solved, and higher accuracy and logic are achieved.
Patent Information
- Application Number
- CN202411935458.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-04-04
AI Technical Summary
The prior art cannot accurately identify the functional points and their specific descriptions contained in the requirements, resulting in low accuracy in the generation of the requirements specification.
By obtaining the functional point information chain and new demand information, matching candidate functional points, determining the target functional points, and generating a requirement instruction manual based on the target functional points and their association relationship.
The accuracy of the generation of requirements specifications is improved, and by considering the correlation between functional points, the generated requirements specifications are more logical, clear and accurate.
Smart Images

Figure CN119759316A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of document content generation, and in particular to a method, apparatus, computer equipment, storage medium and computer program product for generating a requirement specification. Background Art
[0002] With the continuous iteration of computer application technology and the continuous expansion of enterprise scale, the number of internal information systems in enterprises is growing rapidly, and the number of functional points owned by each information system is also growing rapidly.
[0003] However, the large number of system functional points makes it much more difficult to sort out requirements. Due to the increase in demand, demand analysts need to be able to write requirement specifications more quickly, which increases labor costs. Related technologies are committed to automatically generating requirement specifications, but current related technologies cannot accurately identify the functional points included in the requirements and the specific description of the functional points, resulting in low accuracy in generating requirement specifications. Summary of the invention
[0004] Based on this, it is necessary to provide a method, apparatus, computer device, computer-readable storage medium and computer program product for generating requirements specifications that can improve the accuracy of generating requirements specifications in response to the above technical problems.
[0005] In a first aspect, the present application provides a method for generating a requirements specification, comprising:
[0006] Acquire a function point information chain and new demand information; wherein the function point information chain includes a plurality of candidate function points and association relationship information between the candidate function points;
[0007] According to the newly added demand information, matching the candidate function points in the function point information chain to obtain a target function point;
[0008] A target requirement specification is generated according to the target function point and the association relationship information between different target function points.
[0009] In one embodiment, generating a target requirement specification according to the target function point and the association relationship information between different target function points includes:
[0010] Generate a first draft of the requirements specification according to the target function point and the association relationship information between different target function points;
[0011] Obtain historical requirement specifications according to the target function points;
[0012] A target requirement specification is generated according to the historical requirement specification and the first draft of the requirement specification.
[0013] In one embodiment, generating a draft of the requirements specification according to the target function point and the association relationship information between different target function points includes:
[0014] Matching a target document template according to the target function point;
[0015] A first draft of the requirements specification is generated according to the target document template and the association relationship information between the different target function points.
[0016] In one embodiment, matching the candidate function points in the function point information chain according to the newly added requirement information to obtain the target function point includes:
[0017] According to the newly added requirement information, selecting at least one candidate function point matching the newly added requirement information in the function point information chain;
[0018] The necessary information chain section where the selected candidate function point is located is intercepted, and the candidate function point in the necessary information chain section is used as the target function point.
[0019] In one of the embodiments, selecting at least one candidate function point matching the newly added requirement information in the function point information chain according to the newly added requirement information includes:
[0020] If there is no candidate function point matching the newly added requirement information in the function point information chain, generating a new function point or modifying the corresponding candidate function point according to the newly added requirement information to update the function point information chain;
[0021] A candidate function point matching the newly added requirement information is selected from the updated function point information chain.
[0022] In one embodiment, after generating a new function point or modifying the corresponding candidate function point according to the new requirement information to update the function point information chain, the method further includes:
[0023] The updated content of the function point information chain is stored correspondingly with the associated candidate function points to obtain function point evolution information;
[0024] Responding to the function record access instruction, obtaining the information to be accessed;
[0025] In the function point information chain, the function point evolution information corresponding to the information to be retrieved is retrieved and outputted.
[0026] In a second aspect, the present application also provides a device for generating a demand specification, comprising:
[0027] An information acquisition module, used to acquire a function point information chain and new demand information; wherein the function point information chain includes a plurality of candidate function points and association relationship information between the candidate function points;
[0028] A function matching module, used to match the candidate function points in the function point information chain according to the newly added demand information to obtain a target function point;
[0029] The document generation module is used to generate a target requirement specification according to the target function point and the association relationship information between different target function points.
[0030] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0031] Acquire a function point information chain and new demand information; wherein the function point information chain includes a plurality of candidate function points and association relationship information between the candidate function points;
[0032] According to the newly added demand information, matching the candidate function points in the function point information chain to obtain a target function point;
[0033] A target requirement specification is generated according to the target function point and the association relationship information between different target function points.
[0034] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0035] Acquire a function point information chain and new demand information; wherein the function point information chain includes a plurality of candidate function points and association relationship information between the candidate function points;
[0036] According to the newly added demand information, matching the candidate function points in the function point information chain to obtain a target function point;
[0037] A target requirement specification is generated according to the target function point and the association relationship information between different target function points.
[0038] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0039] Acquire a function point information chain and new demand information; wherein the function point information chain includes a plurality of candidate function points and association relationship information between the candidate function points;
[0040] According to the newly added demand information, matching the candidate function points in the function point information chain to obtain a target function point;
[0041] A target requirement specification is generated according to the target function point and the association relationship information between different target function points.
[0042] The above-mentioned method, device, computer equipment, storage medium and computer program product for generating a requirement specification obtain information about the association relationship between several candidate function points and each candidate function point by acquiring a function point information chain and newly added requirement information, and according to the newly added requirement information, the candidate function points are matched in the function point information chain to obtain the target function point, thereby determining the target function point corresponding to the newly added requirement, and the association relationship between each target function point can be learned according to the function point information chain, and then the target requirement specification can be generated according to the association relationship information between the target function point and different target function points. Therefore, the above-mentioned method can add the consideration of the relationship between different function points in the process of generating the target requirement specification through the function point information chain, thereby improving the accuracy of the requirement specification generation. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 An application environment diagram of a method for generating a requirements specification in an embodiment;
[0045] Figure 2 A flowchart of a method for generating a requirements specification in one embodiment is shown;
[0046] Figure 3 This is a flow chart of step S206 of a method for generating a requirements specification in an embodiment;
[0047] Figure 4 It is a structural block diagram of a device for generating a requirement specification in an embodiment;
[0048] Figure 5 is an internal structure diagram of a computer device in one embodiment;
[0049] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION
[0050] 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.
[0051] The method for generating a demand specification 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 terminal 102 can be used to obtain new demand information, and send the obtained new demand information to the server 104, and the terminal 102 can also be used to display the demand specification generated by the server 104. 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 data storage system can be used to store data such as function point information chains. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0052] In an exemplary embodiment, Figure 2 As shown, a method for generating a requirement specification is provided, and the method is applied to Figure 1 The server 104 in the example is used as an example to illustrate the method, which includes the following steps S202 to S208. Among them:
[0053] Step S202, obtaining the function point information chain and the newly added demand information.
[0054] The function point information chain includes several candidate function points and the association relationship information between the candidate function points. Furthermore, the function point information chain can be regarded as a chain data structure used to record the generation information, iteration and evolution information of the function points during the development and iteration process of the application, and to connect the above information of each function point in series through the association relationship.
[0055] Exemplarily, the server 104 may construct a function point information chain by recording historical requirement specifications, or may obtain a pre-constructed function point information chain from other service ends.
[0056] The newly added demand information may include the demand name, the main functional information involved in the demand, and the application scenario of the demand.
[0057] Exemplarily, the server 104 may obtain the newly added demand information from the terminal 102 , and the newly added demand information may be input by the demand provider through the terminal 102 , or may be automatically generated by other service ends by monitoring the currently developed or iterated application program.
[0058] Step S204, according to the newly added demand information, matching candidate function points in the function point information chain to obtain the target function point.
[0059] The newly added demand information may be information described in natural language, information described in mathematical logic language, or information described in code or encoding form.
[0060] Exemplarily, the server 104 may first identify the information description type of the newly added demand information, and then parse the newly added demand information according to the specific information description type, thereby matching the candidate function points in the function point information chain according to the parsed newly added demand information to obtain the target function point. Furthermore, the server 104 may perform semantic analysis on the newly added demand information described in natural language, and extract the core content of the demand, such as the main functions, key operations, target user scenarios and expected results involved in the newly added demand information, through word segmentation, part-of-speech tagging, syntactic analysis, etc. At the same time, the server 104 may capture other information implied in the text description, such as the priority or scope of application of the function, through contextual semantic analysis.
[0061] Next, the server 104 can perform feature extraction on the parsed demand information, where the features may include keywords of the function, names of modules involved, descriptions of operation procedures, etc. The server 104 can standardize these features and convert them into a unified expression format, such as labels, vectors, or semantic frameworks, so as to be compared with the candidate function points in the function point information chain.
[0062] Subsequently, the server 104 may match the extracted features with the features of each candidate function point in the function point information chain. The server 104 may rely on a semantic similarity calculation method, such as a semantic similarity measurement based on a word vector model, to score each candidate function point by comparing the similarity between the demand features and the candidate function point features, and then evaluate the degree of matching with the newly added demand information. After the matching score calculation is completed, the server 104 may sort the candidate function points and select one or more candidate function points that best meet the requirements as target function points. Furthermore, if there are multiple target function points with similar matching degrees, the server 104 may further analyze the association relationship between these function points to ensure that the selected target function point maintains logical consistency with the existing function points in the function point information chain.
[0063] Exemplarily, the server 104 may also select at least one candidate function point matching the newly added demand information in the function point information chain according to the newly added demand information; intercept the necessary information chain segment where the selected candidate function point is located, and use the candidate function point in the necessary information chain segment as the target function point.
[0064] Among them, the necessary information chain segment means that when one of the candidate function points is the target function point, due to the association relationship between the candidate function points, the other candidate function points therein must also be the target function points. Further, when processing the newly added demand information, the server 104 can accurately locate the candidate function points that match the newly added demand information from the function point information chain, and extract the relevant chain segments, and mark all the candidate function points therein as target function points. For example, "... -> User login -> Login management", "... -> User viewing order -> User management", "Merchant settlement -> Merchant management", "... -> Merchant settlement -> Merchant management", etc. can all be a necessary information chain segment.
[0065] After the server 104 selects several candidate function points with a high degree of match with the newly added demand information according to the aforementioned semantic analysis and feature extraction, the position of these candidate function points in the function point information chain can be tracked. The function point information chain is essentially a structured chain data structure, in which each function point not only contains its own function information, but also records the association relationship with other function points, such as the link information of the preceding dependent function point, the subsequent function point or the parallel function point. The server 104 can traverse the associated function points in the chain forward and backward with the selected candidate function point as the center, and intercept the necessary information chain segment where the candidate function point is located.
[0066] Furthermore, after the target function point is determined, the server 104 can bind the newly added requirement information to the target function point. For example, the specific description, priority, target scenario and other information of the newly added requirement information can be attached to the target function point as metadata, and the function point can be reintegrated with the entire function point information chain to ensure the coherence and integrity of the information chain. This makes the generated requirement specification more accurate and provides complete function tracking and dependency management support for subsequent development iterations.
[0067] Exemplarily, when there are no candidate function points matching the newly added demand information in the function point information chain, the server 104 may generate new function points or modify the corresponding candidate function points based on the newly added demand information to update the function point information chain, and select candidate function points matching the newly added demand information in the updated function point information chain.
[0068] Furthermore, when there is no existing candidate function point in the function point information chain that matches the newly added demand information, the server 104 can adopt a supplementary or adjustment strategy to update the function point information chain to ensure that the newly added demand can be adapted to the function point information chain. First, the server 104 can determine whether the description of the current newly added demand information belongs to a completely new functional scenario, or an enhancement or refinement of an existing function point. If the newly added demand involves a completely new functional scenario, such as a specific operation logic or application scenario that has never appeared in the current function point information chain, the server 104 can directly generate a new function point, and the basic information of this newly added function point, including function name, key description, applicable scenario and priority, can be initialized according to the content of the newly added demand information. At the same time, the function point can be inserted into the function point information chain according to certain rules, and establish a preliminary association relationship with other function points, such as context association or function module association.
[0069] In addition, if the function described in the newly added demand information is an adjustment or supplement to the existing function point, the server 104 can modify the function point according to the newly added demand information by locating the closest candidate function point, such as expanding its function description, adjusting function attributes (such as priority or applicable scenarios), or adding new associations, so that it can better meet the requirements of the newly added demand. After the modification is completed, the server 104 can recalculate the matching degree of the updated function point with the newly added demand information to ensure that the updated result can accurately adapt to the demand.
[0070] Furthermore, after completing the addition or modification of the function point, the server 104 can reorganize the updated function point information chain, and by matching the newly added requirement information with the updated function point, the server 104 can select the candidate function point that best meets the requirement and mark it as the target function point. At the same time, the newly added requirement information will also be associated with the target function point to further improve the record of the function point information chain.
[0071] Step S206: Generate a target requirement specification according to the target function point and the association relationship information between different target function points.
[0072] Exemplarily, first, the server 104 can organize the detailed information of the target function point, including the basic description, applicable scenario, functional target and priority of each function point, and collect the upstream and downstream function point information related to the target function point, and each target function point may be connected with other function points through different types of association relationships, such as dependency, collaboration, and execution order. The server 104 can build a network structure or map between function points based on these association relationships to show the logical connection between each function point, so as to automatically generate a preliminary framework of the requirements specification, wherein the structure of the framework generally includes an overview of the requirements, a detailed description of the function point, the dependency relationship between the function points, the order of function execution or the collaboration mode, etc. The core part of the requirements specification is used to elaborate the implementation details of each target function point and the interaction mode between them, so as to provide clear guidance for the development team. In addition, according to the specific description of the newly added requirements, such as the scenario of the requirements, the expected effect of the function implementation, etc., the server 104 can map this information to the implementation details of the function point. For example, if the requirement involves a new user operation process, the server 104 can describe in detail the operation steps of each function point involved, and emphasize how these function points work together. Furthermore, the requirement specification can also describe the time sequence, dependency, parallelism and other details between the function points. For example, if some function points must be executed after other function points are executed, the specification can clearly mark these sequence relationships. If there is a requirement for parallel processing between function points, the specification can also indicate which function points can be executed in parallel to improve the processing efficiency of the system.
[0073] Furthermore, the server 104 can also store the updated content of the function point information chain in correspondence with the associated candidate function points to obtain function point evolution information, respond to the function record review instruction, obtain the information to be reviewed, and in the function point information chain, retrieve and output the function point evolution information corresponding to the information to be reviewed.
[0074] Exemplarily, the server 104 may store the updated content after each new requirement or modification of a function point in the function point information chain. In the function point information chain, each candidate function point not only records the basic information of the current function, but also stores its evolution history, including requirement changes, function expansions, modification records, etc. These update information may be associated with the life cycle of each function point to form complete function point evolution information. The server 104 may record in detail each modification, enhancement, or addition of a function point, and mark it in chronological order or logical association.
[0075] Next, the server 104 can ensure that the storage of these updated contents is queryable and accessible. When the function point information chain changes, the relevant function point evolution information can be saved in a database or similar storage medium for future query, backtracking or review. For example, the server 104 can record the status changes of each function point at different development stages, including operations such as creation, modification, and deletion of the function point, as well as the demand background, function implementation details, and development decisions behind these changes.
[0076] When it is necessary to access the function point evolution information, the server 104 can respond quickly according to the function record access instruction, wherein the access instruction can specify a specific function point, the version of the function point, or specific demand information related thereto. The server 104 can locate the specific function point and its historical evolution record in the function point information chain by parsing these access instructions, and extract the relevant information for display or return to the requesting party, ensuring that the function point information chain can not only reflect the current demand and the status of the function point, but also provide a full life cycle view of the function point. Each evolution, modification, and expansion of the function point will be recorded by the server 104 to form complete function point evolution information, which provides strong support for subsequent demand management, version control, function tracking, and historical backtracking.
[0077] Furthermore, the access instruction may include a function point identifier or a requirement identifier to be accessed, which is used to help the server identify specific function points or requirement information; it may also include a access time range or version information, which is used to specify which historical stage or version of the evolution information of the function point needs to be viewed. Based on the above information, the server 104 can quickly locate the function point to be accessed in the function point information chain and extract the evolution record of the function point.
[0078] In the above method for generating a requirements specification, by acquiring a function point information chain and new requirements information, several candidate function points and the association relationship information between each candidate function point are obtained, and according to the new requirements information, the candidate function points are matched in the function point information chain to obtain the target function point, thereby determining the target function point corresponding to the new requirements, and being able to know the association relationship between each target function point according to the function point information chain, and then generating a target requirements specification according to the association relationship information between the target function point and different target function points. Therefore, the above method can add considerations for the relationship between different function points in the process of generating the target requirements specification through the function point information chain, thereby improving the accuracy of generating the requirements specification.
[0079] In an exemplary embodiment, Figure 3 As shown, step S206 includes steps S302 to S306. Among them:
[0080] Step S302: Generate a first draft of the requirements specification based on the target function point and the association relationship information between different target function points.
[0081] Exemplarily, the server 104 may match the target document template according to the target function point; and generate a first draft of the requirement specification according to the association relationship information between the target document template and different target function points.
[0082] Furthermore, the server 104 may select a suitable target document template according to the target function point. The target function point may include multiple attributes and associated information, such as function description, application scenario, implementation details, priority, etc. The document template may be a predefined format for describing a specific type of requirement or function point, and the selection of the target document template may be based on the characteristics of the target function point. For example, some function points may require the use of detailed technical document templates, while others may need to be presented in a concise, business-oriented manner.
[0083] Next, the server 104 can generate a first draft of the requirements specification based on the association relationship information between the selected target document template and the target function point. At this point, the server 104 can combine the detailed information of the function point with the structured framework of the document template to automatically fill in the various parts of the template. For example, the template may contain fields such as demand background, functional description, user scenario, expected effect, dependency, and the server will insert the corresponding information in the target function point into these fields. In addition, the server 104 can also appropriately adjust the order and structure of the document content according to the association relationship between the function points to make the requirements specification more logical and clear. For example, some function points may need to be arranged in order of execution, or the relationship with other function points needs to be mentioned when describing a certain function.
[0084] Step S304, obtaining historical requirement specifications according to the target function point.
[0085] Exemplarily, after generating the first draft of the requirements specification, the server 104 may further obtain the historical requirements specification according to the target function point. The historical requirements specification records the requirements, function points and function evolution process of the previous version. By searching the historical requirements specification, the server can find the relevant content and existing standardized descriptions in the previous documents, ensuring that the current requirements specification can maintain consistency and coherence with the previous requirements documents. In addition, the historical requirements specification can also provide background information about the evolution of the function point, which helps to better understand the current implementation of the function point and the past changes, thereby avoiding omissions or duplications.
[0086] Step S306, generating a target requirement specification based on the historical requirement specification and the first draft requirement specification.
[0087] Exemplarily, the server 104 may combine the information in the historical requirements specification with the draft requirements specification, optimize and supplement the content of the draft requirements specification, and generate the target requirements specification. For example, if the historical requirements specification contains certain requirements descriptions, functional implementation details, or user feedback, the server 104 may integrate these contents into the draft requirements specification to ensure that the target requirements specification contains all necessary information. In addition, the server 104 may also compare the historical requirements specification with the draft requirements specification to ensure that the newly generated requirements specification is consistent with the previous document style, avoid inconsistencies in format or language, and make it easier to understand.
[0088] In another exemplary embodiment, the server 104 obtains a function point information chain and newly added demand information; wherein the function point information chain includes a plurality of candidate function points and association relationship information between the candidate function points. If there is no candidate function point matching the newly added demand information in the function point information chain, the server 104 generates a newly added function point or modifies the corresponding candidate function point according to the newly added demand information to update the function point information chain.
[0089] Next, the server 104 selects the candidate function points that match the newly added demand information in the updated function point information chain, and then stores the updated content of the function point information chain and the associated candidate function points in correspondence to obtain the function point evolution information. If the terminal 102 issues a function record retrieval instruction, the server 104 can respond to the function record retrieval instruction, obtain the information to be retrieved, and retrieve and output the function point evolution information corresponding to the information to be retrieved in the function point information chain.
[0090] Subsequently, the server 104 intercepts the necessary information chain segment where the selected candidate function point is located, and uses the candidate function point in the necessary information chain segment as the target function point. The target document template is matched according to the target function point, and then the first draft of the requirement specification is generated according to the association relationship information between the target document template and different target function points. Finally, the server 104 obtains the historical requirement specification according to the target function point, and then generates the target requirement specification according to the historical requirement specification and the first draft of the requirement specification.
[0091] 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 does not have a strict order restriction, 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 to be 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.
[0092] Based on the same inventive concept, the embodiment of the present application also provides a device for generating a requirement specification for implementing the method for generating a requirement specification 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 one or more embodiments of the device for generating a requirement specification provided below can refer to the limitations of the method for generating a requirement specification above, and will not be repeated here.
[0093] In an exemplary embodiment, Figure 4 As shown, a device for generating a demand specification is provided, comprising: an information acquisition module 402, a function matching module 404 and a document generation module 406, wherein:
[0094] The information acquisition module 402 is used to acquire the function point information chain and the newly added demand information; wherein the function point information chain includes a plurality of candidate function points and the association relationship information between the candidate function points;
[0095] Function matching module 404, used to match candidate function points in the function point information chain according to the newly added requirement information to obtain the target function point;
[0096] The document generation module 406 is used to generate a target requirement specification according to the target function point and the association relationship information between different target function points.
[0097] In one embodiment, the document generation module 406 includes:
[0098] A draft generation unit, used for generating a draft of the requirement specification according to the target function point and the association relationship information between different target function points;
[0099] A history acquisition unit, used to acquire history requirement specifications according to target function points;
[0100] The document generation unit is used to generate a target requirement specification based on the historical requirement specification and the first draft of the requirement specification.
[0101] In one of the embodiments, the draft generation unit is specifically used to: match the target document template according to the target function point; and generate a draft of the requirement specification according to the association relationship information between the target document template and different target function points.
[0102] In one of the embodiments, the function matching module 404 is specifically used to: select at least one candidate function point that matches the newly added demand information in the function point information chain according to the newly added demand information; intercept the necessary information chain segment where the selected candidate function point is located, and use the candidate function point in the necessary information chain segment as the target function point.
[0103] In one of the embodiments, based on the newly added demand information, at least one candidate function point matching the newly added demand information is selected in the function point information chain, and the function matching module 404 is also used to: if there is no candidate function point matching the newly added demand information in the function point information chain, generate a new function point or modify the corresponding candidate function point based on the new demand information to update the function point information chain; and select a candidate function point matching the newly added demand information in the updated function point information chain.
[0104] In one of the embodiments, the device is also used to: store the updated content of the function point information chain in correspondence with the associated candidate function points to obtain function point evolution information; obtain the information to be reviewed in response to a function record review instruction; and retrieve and output the function point evolution information corresponding to the information to be reviewed in the function point information chain.
[0105] Each module in the above-mentioned demand specification generating device 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 in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0106] In an exemplary embodiment, a computer device is provided. The computer device may be a server, 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 (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is 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, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as function point information chains. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for generating a requirement specification is implemented.
[0107] 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 6 As 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, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for generating a demand specification 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.
[0108] Those skilled in the art will understand that Figure 6The 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.
[0109] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: obtaining a function point information chain and new demand information; wherein the function point information chain includes a number of candidate function points and association relationship information between each candidate function point; according to the new demand information, matching the candidate function points in the function point information chain to obtain a target function point; and generating a target demand specification according to the target function point and the association relationship information between different target function points.
[0110] In one embodiment, when the processor executes the computer program, the following steps are also implemented: generating a draft of the requirements specification based on the target function point and the association relationship information between different target function points; obtaining the historical requirements specification based on the target function point; generating the target requirements specification based on the historical requirements specification and the draft of the requirements specification.
[0111] In one embodiment, when the processor executes the computer program, the following steps are also implemented: matching the target document template according to the target function point; and generating a first draft of the requirements specification according to the association relationship information between the target document template and different target function points.
[0112] In one embodiment, when the processor executes the computer program, the following steps are also implemented: based on the newly added demand information, at least one candidate function point that matches the newly added demand information is selected in the function point information chain; the necessary information chain segment where the selected candidate function point is located is intercepted, and the candidate function point in the necessary information chain segment is used as the target function point.
[0113] In one embodiment, when the processor executes the computer program, the following steps are also implemented: when there are no candidate function points matching the newly added requirement information in the function point information chain, new function points are generated or the corresponding candidate function points are modified according to the newly added requirement information to update the function point information chain; and candidate function points matching the newly added requirement information are selected in the updated function point information chain.
[0114] In one embodiment, when the processor executes the computer program, the following steps are also implemented: storing the updated content of the function point information chain in correspondence with the associated candidate function points to obtain function point evolution information; obtaining the information to be retrieved in response to the function record retrieval instruction; and retrieving and outputting the function point evolution information corresponding to the information to be retrieved in the function point information chain.
[0115] 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 following steps are implemented: obtaining a function point information chain and new requirement information; wherein the function point information chain includes a number of candidate function points and association relationship information between each candidate function point; according to the new requirement information, matching the candidate function points in the function point information chain to obtain a target function point; and generating a target requirement specification according to the target function point and the association relationship information between different target function points.
[0116] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: generating a draft of the requirements specification based on the target function point and the association relationship information between different target function points; obtaining the historical requirements specification based on the target function point; generating the target requirements specification based on the historical requirements specification and the draft of the requirements specification.
[0117] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: matching the target document template according to the target function point; generating a first draft of the requirements specification according to the association relationship information between the target document template and different target function points.
[0118] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: based on the newly added demand information, at least one candidate function point that matches the newly added demand information is selected in the function point information chain; the necessary information chain segment where the selected candidate function point is located is intercepted, and the candidate function point in the necessary information chain segment is used as the target function point.
[0119] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when there are no candidate function points matching the newly added requirement information in the function point information chain, new function points are generated or the corresponding candidate function points are modified according to the newly added requirement information to update the function point information chain; and candidate function points matching the newly added requirement information are selected in the updated function point information chain.
[0120] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: storing the updated content of the function point information chain in correspondence with the associated candidate function points to obtain function point evolution information; obtaining the information to be retrieved in response to the function record retrieval instruction; and retrieving and outputting the function point evolution information corresponding to the information to be retrieved in the function point information chain.
[0121] In one embodiment, a computer program product is provided, including a computer program, which implements the following steps when executed by a processor: obtaining a function point information chain and new requirement information; wherein the function point information chain includes a number of candidate function points and association relationship information between each candidate function point; according to the new requirement information, matching the candidate function points in the function point information chain to obtain a target function point; and generating a target requirement specification according to the target function point and the association relationship information between different target function points.
[0122] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: generating a draft of the requirements specification based on the target function point and the association relationship information between different target function points; obtaining the historical requirements specification based on the target function point; generating the target requirements specification based on the historical requirements specification and the draft of the requirements specification.
[0123] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: matching the target document template according to the target function point; generating a first draft of the requirements specification according to the association relationship information between the target document template and different target function points.
[0124] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: based on the newly added demand information, at least one candidate function point that matches the newly added demand information is selected in the function point information chain; the necessary information chain segment where the selected candidate function point is located is intercepted, and the candidate function point in the necessary information chain segment is used as the target function point.
[0125] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when there are no candidate function points matching the newly added requirement information in the function point information chain, new function points are generated or the corresponding candidate function points are modified according to the newly added requirement information to update the function point information chain; and candidate function points matching the newly added requirement information are selected in the updated function point information chain.
[0126] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: storing the updated content of the function point information chain in correspondence with the associated candidate function points to obtain function point evolution information; obtaining the information to be retrieved in response to the function record retrieval instruction; and retrieving and outputting the function point evolution information corresponding to the information to be retrieved in the function point information chain.
[0127] 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.
[0128] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods 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 this application can include at least one of non-volatile 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), magnetoresistive 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, etc., but are not limited to this.
[0129] 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 specification.
[0130] 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 generating a requirements specification, characterized in that: The method comprises: Acquire a function point information chain and new demand information; wherein the function point information chain includes a plurality of candidate function points and association relationship information between the candidate function points; According to the newly added demand information, matching the candidate function points in the function point information chain to obtain a target function point; A target requirement specification is generated according to the target function point and the association relationship information between different target function points.
2. The method according to claim 1, characterized in that The generating a target requirement specification according to the target function point and the association relationship information between different target function points includes: Generate a first draft of the requirements specification according to the target function point and the association relationship information between different target function points; Obtain historical requirement specifications according to the target function points; A target requirement specification is generated according to the historical requirement specification and the first draft of the requirement specification.
3. The method according to claim 2, characterized in that The step of generating a first draft of the requirements specification according to the target function point and the association relationship information between different target function points includes: Matching a target document template according to the target function point; A first draft of the requirements specification is generated according to the target document template and the association relationship information between the different target function points.
4. The method according to any one of claims 1 to 3, characterized in that The step of matching the candidate function points in the function point information chain according to the newly added requirement information to obtain the target function point includes: According to the newly added requirement information, selecting at least one candidate function point matching the newly added requirement information in the function point information chain; The necessary information chain section where the selected candidate function point is located is intercepted, and the candidate function point in the necessary information chain section is used as the target function point.
5. The method according to claim 4, characterized in that The selecting, according to the newly added requirement information, at least one candidate function point matching the newly added requirement information in the function point information chain includes: If there is no candidate function point matching the newly added requirement information in the function point information chain, generating a new function point or modifying the corresponding candidate function point according to the newly added requirement information to update the function point information chain; A candidate function point matching the newly added requirement information is selected from the updated function point information chain.
6. The method according to claim 5, characterized in that After generating a new function point or modifying the corresponding candidate function point according to the new requirement information to update the function point information chain, the method further includes: The updated content of the function point information chain is stored correspondingly with the associated candidate function points to obtain function point evolution information; Responding to the function record access instruction, obtaining the information to be accessed; In the function point information chain, the function point evolution information corresponding to the information to be retrieved is retrieved and outputted.
7. A device for generating a demand specification, characterized in that: The device comprises: An information acquisition module, used to acquire a function point information chain and new demand information; wherein the function point information chain includes a plurality of candidate function points and association relationship information between the candidate function points; A function matching module, used to match the candidate function points in the function point information chain according to the newly added demand information to obtain a target function point; The document generation module is used to generate a target requirement specification according to the target function point and the association relationship information between different target function points.
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.