[go: up one dir, main page]

CN118259874A - Analysis method, system and electronic equipment for product design - Google Patents

Analysis method, system and electronic equipment for product design Download PDF

Info

Publication number
CN118259874A
CN118259874A CN202410261146.5A CN202410261146A CN118259874A CN 118259874 A CN118259874 A CN 118259874A CN 202410261146 A CN202410261146 A CN 202410261146A CN 118259874 A CN118259874 A CN 118259874A
Authority
CN
China
Prior art keywords
basic object
information
latest
current basic
result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410261146.5A
Other languages
Chinese (zh)
Inventor
晏永年
檀海松
王来
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yinghuochong Information Technology Shanghai Co ltd
Original Assignee
Yinghuochong Information Technology Shanghai Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yinghuochong Information Technology Shanghai Co ltd filed Critical Yinghuochong Information Technology Shanghai Co ltd
Priority to CN202410261146.5A priority Critical patent/CN118259874A/en
Publication of CN118259874A publication Critical patent/CN118259874A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides an analysis method, a system and electronic equipment for product design, which relate to the technical field of computers and comprise the steps of obtaining a current basic object submitted by a modification user, wherein the current basic object comprises one of latest code information and latest visual frame information; collecting the basic object of the previous version and the latest associated information; comparing the versions of the current basic object and the basic object of the previous version to generate a version comparison result; mapping comparison is carried out based on the version comparison result and the latest association information, so that a preliminary modification result is obtained; and inputting the current basic object and the preliminary modification result into a difference analysis model to obtain a target analysis result, determining a difference relation between the current basic object and the related object of the previous version, and displaying modification content to a target user so as to improve the high efficiency of product design communication.

Description

Analysis method, system and electronic equipment for product design
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, a system, and an electronic device for analyzing a product design.
Background
Software product design links often face challenges in demand delivery and collaboration. In practice, the demander often has perceptual, specific expectations that may be difficult to capture comprehensively and accurately by the developer during the product design phase; meanwhile, because the understanding of each party to the product design details may be different, a great deal of communication and coordination are required, and further the software product design link is difficult to advance efficiently.
Based on this situation, some demanding parties will draw interface prototypes on them and attach some event response user's operating logic, which can then be converted directly to front-end code delivery developers. Not only does this increase the learning costs of the demander, but the converted front-end code may lose some detail or introduce unnecessary errors.
Therefore, an analysis method, system and electronic device for product design are needed.
Disclosure of Invention
The specification provides an analysis method, a system and electronic equipment for product design, which are characterized in that a current basic object is compared twice, a target analysis result is obtained based on a mapping comparison result and a difference analysis model, the difference relation between the current basic object and a related object of a previous version is determined, and modified content is displayed to a target user, so that the efficiency of product design communication is improved.
The analysis method of the product design provided by the application adopts the following technical scheme that:
acquiring a current basic object submitted by a modification user, wherein the current basic object comprises one of latest code information and latest visual frame information;
Collecting the basic object of the previous version and the latest associated information; the latest association information includes: association information between the basic object of the previous version and the associated object of the previous version;
comparing the versions of the current basic object and the basic object of the previous version to generate a version comparison result;
mapping comparison is carried out based on the version comparison result and the latest association information, so that a preliminary modification result is obtained;
And inputting the current basic object and the preliminary modification result into a difference analysis model to obtain a target analysis result, and determining a difference relation between the current basic object and the related object of the previous version.
Optionally, the mapping comparison is performed based on the version comparison result and the latest association information to obtain a preliminary modification result, including:
Obtaining variation information of the current basic object based on the version comparison result;
and judging whether the change information influences the related object of the previous version or not based on the latest related information, and generating the preliminary modification result.
Optionally, the inputting the current basic object and the preliminary modification result into a differential analysis model to obtain a target analysis result includes:
performing sweep analysis on the current basic object based on the type of the current basic object;
And summarizing the preliminary modification result and the sweep analysis result to obtain the target analysis result.
Optionally, the performing sweep analysis on the current basic object based on the type of the current basic object includes:
if the current basic object is the latest code information, carrying out static analysis on the current basic object to obtain a preliminary analysis result;
and dynamically analyzing the current basic object, and updating the preliminary analysis result based on a dynamic analysis result to obtain the sweep analysis result.
Optionally, the performing sweep analysis on the current basic object based on the type of the current basic object includes:
And if the current basic object is the latest visual frame information, carrying out static analysis on the current basic object, and searching for an explicit connection association relationship in the latest visual frame information to obtain the sweep analysis result.
Optionally, the visual frame information includes key information blocks and call relations of the key information blocks.
Optionally, the method further comprises: modifying the visual frame information;
Optionally, the modifying the visual frame information includes:
dividing the key information block;
and/or grouping the key information blocks according to the categories of the key information blocks;
And/or layering the key information blocks.
The analysis system for product design provided by the application adopts the following technical scheme that:
The acquisition module is used for acquiring a current basic object submitted by a modification user, wherein the current basic object comprises one of latest code information and latest visual frame information;
the acquisition module is used for acquiring the basic object of the previous version and the latest association information; the latest association information includes: association information between the basic object of the previous version and the associated object of the previous version;
The version comparison module is used for comparing the versions of the current basic object and the basic object of the previous version to generate a version comparison result;
The mapping comparison module is used for carrying out mapping comparison based on the version comparison result and the latest association information to obtain a preliminary modification result;
and the analysis module is used for inputting the current basic object and the preliminary modification result into a difference analysis model to obtain a target analysis result, and determining the difference relation between the current basic object and the related object of the previous version.
Optionally, the mapping comparison module includes:
The first comparison sub-module is used for obtaining the change information of the current basic object based on the version comparison result;
And the second comparison sub-module is used for judging whether the change information influences the related object of the previous version or not based on the latest related information, and generating the preliminary modification result.
Optionally, the analysis module includes:
The sweep analysis sub-module is used for carrying out sweep analysis on the current basic object based on the type of the current basic object;
And the summarizing and analyzing sub-module is used for summarizing the preliminary modification result and the sweep analysis result to obtain the target analysis result.
Optionally, the sweep analysis sub-module includes:
the code analysis unit is used for carrying out static analysis on the current basic object if the current basic object is the latest code information to obtain a preliminary analysis result;
And the dynamic analysis unit is used for dynamically analyzing the current basic object, updating the preliminary analysis result based on the dynamic analysis result and obtaining the sweep analysis result.
Optionally, the sweep analysis sub-module includes:
And if the current basic object is the latest visual frame information, carrying out static analysis on the current basic object, and searching for an explicit connection association relationship in the latest visual frame information to obtain the sweep analysis result.
Optionally, the visual frame information includes key information blocks and call relations of the key information blocks.
Optionally, the method further comprises: the modification module is used for modifying the visual frame information;
Optionally, the modification module includes:
the first modification submodule is used for dividing the key information block;
A second modification sub-module, configured to group the key information blocks according to the category of the key information blocks;
and the third modification submodule is used for layering the key information blocks.
The specification also provides an electronic device, wherein the electronic device includes:
A processor; and
A memory storing computer executable instructions that, when executed, cause the processor to perform any of the methods described above.
The present specification also provides a computer readable storage medium storing one or more programs which when executed by a processor implement any of the methods described above.
In the application, the current basic object submitted by the modification user is obtained, wherein the current basic object comprises one of the latest code information and the latest visual frame information; collecting the basic object of the previous version and the latest associated information; comparing the versions of the current basic object and the basic object of the previous version to generate a version comparison result; mapping comparison is carried out based on the version comparison result and the latest association information, so that a preliminary modification result is obtained; and inputting the current basic object and the preliminary modification result into a difference analysis model to obtain a target analysis result, determining a difference relation between the current basic object and the related object of the previous version, and displaying modification content to a target user so as to improve the high efficiency of product design communication.
Drawings
FIG. 1 is a schematic diagram of an analysis method for product design according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of visual frame information provided in an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an analysis system for product design according to an embodiment of the present disclosure;
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a computer readable medium according to an embodiment of the present disclosure.
Detailed Description
The following description is presented to enable one of ordinary skill in the art to make and use the invention. The preferred embodiments in the following description are by way of example only and other obvious variations will occur to those skilled in the art. The basic principles of the invention defined in the following description may be applied to other embodiments, variations, modifications, equivalents, and other technical solutions without departing from the spirit and scope of the invention.
Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art. The same reference numerals in the drawings denote the same or similar elements, components or portions, and thus a repetitive description thereof will be omitted.
The features, structures, characteristics or other details described in a particular embodiment do not exclude that may be combined in one or more other embodiments in a suitable manner, without departing from the technical idea of the invention.
In the description of specific embodiments, features, structures, characteristics, or other details described in the present invention are provided to enable one skilled in the art to fully understand the embodiments. It is not excluded that one skilled in the art may practice the present invention without one or more of the specific features, structures, characteristics, or other details.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The term "and/or" and/or "includes all combinations of any one or more of the associated listed items.
Fig. 1 is a schematic diagram of an analysis method for product design according to an embodiment of the present disclosure, where the method includes:
s1, acquiring a current basic object submitted by a modification user, wherein the current basic object comprises one of latest code information and latest visual frame information;
Collecting the basic object of the previous version and the latest associated information; the latest association information includes: association information between the basic object of the previous version and the associated object of the previous version;
S2, comparing the current basic object with the basic object of the previous version to generate a version comparison result;
S3, mapping comparison is carried out based on the version comparison result and the latest associated information, and a preliminary modification result is obtained;
S4, inputting the current basic object and the preliminary modification result into a difference analysis model to obtain a target analysis result, and determining a difference relation between the current basic object and the related object of the previous version.
With the development of the Internet and the rise of the mobile Internet, most of goods and services related to life and work of people can be obtained through the Internet, and the trend not only promotes the explosive growth of Internet application, but also promotes the generation of a plurality of software products based on different technical architectures.
Because of the inherent quick and efficient properties of the internet, in order to better adapt to the current market environment, the software products are required to be changed along with market trends, user preferences, technical progress and the like, the iteration period is compressed, and quick upgrading and updating are completed as soon as possible.
However, the software development and testing links in the iteration cycle are relatively fixed in time (basically proportional to the workload of the iteration content) since only a single job (development or testing job) investment is required. In the front-end product design link, the cooperation of multiple parties such as non-developer (demand party/product design party), developer and the like, particularly the repeated communication party, can be agreed, so that the final business objective is realized. Therefore, the product design link is a link which is difficult to effectively control the aging.
Moreover, when the non-developer and the developer communicate in detail, the non-developer is generally a non-developer, so the non-developer cannot directly view and adjust codes; and the developer cannot directly modify the visual interface based on the modification intention of the user. If the requirement analyst or other personnel such as product designer are introduced to interface the two parties through translation, distortion and sample losing of the translation process can occur. Therefore, high-efficiency propulsion is difficult to realize in the actual links of the products.
Because of the different concerns of the parties, the gap between the ideas of the demanding parties and the final output of the developing parties, especially the information transfer between the user operation interface and interaction, needs an effective and efficient method to be filled.
Based on the above, in order to be suitable for viewing and modifying of developers and non-developers respectively, the invention provides an analysis method of product design, and the association relation between code information and visual frame information is combined to form an integral two-sided form, so that one side of the two sides is changed by any one side, and the two sides are presented on the other side after being submitted, and instant communication, modification and rapid consistency of all sides are realized through the real-time translation. Specifically, the method specifically comprises the following steps:
s1, acquiring a current basic object submitted by a modification user, wherein the current basic object comprises one of latest code information and latest visual frame information;
Collecting the basic object of the previous version and the latest associated information; the latest association information includes: association information between the basic object of the previous version and the associated object of the previous version;
In one embodiment of the present description, the application scenario may be a software design that requires customization by a developer (a demander/product designer) by a non-developer. In the design process, a developer needs to deeply communicate with a non-developer, and the actual requirements of specific functions, interface design, user experience and the like of software implementation are defined, and the target requirements are determined based on the actual requirements.
S11, acquiring a current basic object and a basic object of a previous version;
After the target requirement is determined, the developer writes the program according to the target requirement to obtain the code information of the initial version (V1.0.0). Mapping conversion is performed according to the code information of the initial version (V1.0.0), and the visualization framework information of the initial version (V1.0.0) is generated.
Wherein the code information includes specific software code. The visualization framework information may be a collection of views, templates, static files for implementing a single application, i.e. the visualization framework information is preferably a blueprint.
The current basic object includes one of the latest code information and the latest visualization framework information.
In one embodiment of the present disclosure, the developer may further update the code information of the previous version according to a non-developer adjustment scheme to generate the latest code information. At this time, the user is modified as a developer, and the target user is a non-developer. After the update, the developer uploads/submits the latest code information, which is acquired as the current basic object by the present invention. At this time, the basic object of the previous version is the code information of the previous version.
In another embodiment of the present description, the non-developer may make adjustments based on the previous version of the visualization framework information to generate the latest visualization framework information. At this time, the modification user is a non-developer, and the target user is a developer. After the adjustment, the non-developer uploads/submits the latest visual frame information, which is acquired as the current basic object by the invention. At this time, the basic object of the previous version is the visual frame information of the previous version. The visual frame information of the previous version is generated after mapping conversion of the code information of the previous version.
The invention is also provided with a version control library for recording and storing all versions of code information and all versions of visual frame information. The visual frame information is generated by mapping conversion based on the code information of the same edition. Therefore, the code information of the same version corresponds to the visualization framework information.
After the current basic object is obtained, the basic object of the previous version can be found out from the version control library based on the identification information of the current basic object, the type of the current basic object and the version number information of the current basic object. The code information of each version and the identification information of the visual frame information of each version are the same aiming at the same user requirement.
S12, acquiring the latest association information;
because of the mapping relation between the code information and the visual frame information, the modification of any party is finally reflected to the other party through the mapping relation, and the latest association information needs to be acquired in order to enable the specific modification content to be clear later.
The latest association information includes: association information between the base object of the previous version and the associated object of the previous version. Wherein, when the basic object is code information, the associated object is visual frame information corresponding to the code information; when the basic object is the visual frame information, the associated object is code information corresponding to the visual frame information.
That is, if the current basic object is the version information of V1.0.1, the latest association information is the association information between the code information of V1.0.0 and the visualization framework information of V1.0.0.
In one embodiment of the present specification, a mapping relation library is provided for recording the association information of each version. Wherein, the association information includes: mapping relation between the code information and the corresponding visual frame information.
The determination of the association information is mainly realized based on mapping conversion, and the steps mainly comprise:
Acquiring code information; specifically, the code information includes Html code, dynamic Javascript code, and Css code. Wherein the Html code contains individual regions or elements of the page that are static, which are used to generate a tree-like "skeleton" of the visual frame information. Javascript code is a structure based on code objects such as functions or classes; css codes are typically tree-type hierarchies.
Identifying key labels in the code information; specifically, the key labels include a first label, a second label and a third label. In one embodiment of the present description, the first tag is a tag related to an HTML structure, the first tag including: root tag < html >, header tag < head >, body tag < body >, block level tag < div >, link tag < link >. The second label includes: javaScript keywords. The third tag includes: CSS structure.
Dividing code information based on the first label, the second label and the third label to obtain a plurality of key information blocks; and classifying the element content corresponding to the key label. In one embodiment of the present disclosure, if the type of the key tag is the first tag, the element content corresponding to the key tag is considered to be Html static content. And if the type of the key label is the second label, identifying the element content corresponding to the key label as JavaScript dynamic content. And if the type of the key label is a third label, the element content corresponding to the key label is considered as CSS dynamic content.
Wherein each key information block includes one of first static information, second dynamic information, and third dynamic information. Wherein the first static information comprises Html static content. The second dynamic information includes Javascript dynamic content. The third dynamic information includes Css dynamic content.
Determining a calling relation between key information blocks; the calling relation comprises the following steps: a containment or reference relationship between the first static information; inclusion, reference, action relationships associated with the second dynamic information; and the third dynamic information is related to the containing, quote and action relation. Wherein the action relationship is generally that dynamic content points to static content.
In a specific embodiment of the present specification, the containing or referencing relationship between the first static information specifically includes: an inclusion relationship or a reference relationship between the Html static content and the Html static content.
The containing, referencing and acting relation related to the second dynamic information specifically comprises: an inclusion relationship or a reference relationship between the Html static content and the Javascript dynamic content; interaction relation between Html static content and Javascript dynamic content.
The containing, referring and acting relation related to the third dynamic information specifically comprises: an inclusion or reference relationship between the Html static content and the Css dynamic content; interaction relationship between Html static content and Css dynamic content.
And constructing the visual frame information based on the calling relation of the key information blocks. That is, the visualization framework information includes key information blocks and call relations of the key information blocks.
In one embodiment of the present disclosure, each key information block serves as a node, and as shown in fig. 2, a green node represents first static information, i.e., html static content; blue nodes represent second dynamic information, namely Javascript dynamic content; the yellow node represents the third dynamic information, css dynamic content.
Solid lines of different colors represent inclusion or reference relationships in the structure of the visual frame information, wherein solid green lines represent inclusion or reference relationships between Html static content; the blue solid line represents containment or reference relationships associated with Javascript dynamic content; the yellow solid line represents the inclusion or reference relationship associated with Css dynamic content.
The dashed lines of different colors represent the effect relationship of dynamic content on static content, wherein the blue solid line represents the effect relationship related to Javascript dynamic content, which is generally pointed to by Javascript dynamic content to Html static content; the yellow solid line represents the effect relationship associated with Css dynamic content, which is generally pointed to by Css dynamic content to Html static content.
And determining the mapping relation between the code information and the corresponding visual frame information based on the corresponding relation between the code information and the key information block, and constructing a mapping table as the association information.
S2, comparing the current basic object with the basic object of the previous version to generate a version comparison result;
Version comparison is the comparison of the current version (new version) and the previous version (old version) of the same object. In one embodiment of the present disclosure, the current basic object and the basic object of the previous version are compared in version, and whether the current basic object and the basic object of the previous version have differences is determined. In particular, differences between file content, metadata changes, or structural changes may be checked to compare the differences.
If the current basic object is the same as the basic object of the previous version, the current basic object is unchanged compared with the basic object of the previous version, and subsequent operation is not needed.
If there is a difference between the current basic object and the basic object of the previous version, the current basic object is determined to be a new iteration version of the basic object of the previous version, the current basic object is stored in a version control library, and the subsequent comparison and analysis of the current basic object is continued.
S3, mapping comparison is carried out based on the version comparison result and the latest associated information, and a preliminary modification result is obtained;
The mapping comparison is the comparison of mapping relations based on the version comparison, and is used for determining that the visual frame information or the code information itself version change affects the other object change so as to determine the influence on the visual frame information caused by the code information change and how the visual frame information change is reflected in the code information.
In one embodiment of the present specification, the change information of the current basic object is obtained based on the version comparison result. The change information includes: the current base object is compared with the content newly added, deleted and modified by the base object of the previous version.
Based on the latest association information, whether the change information affects the association object of the previous version is judged, and a preliminary modification result is generated.
S4, inputting the current basic object and the preliminary modification result into a difference analysis model to obtain a target analysis result, and determining a difference relation between the current basic object and the related object of the previous version.
Because of the mutual mapping relation between the visual framework information and the code information, the modification of a non-developer or a developer can be finally reflected in the change of the code, and each modification except for changing the key information block corresponding to the code: other critical information blocks may also be affected, i.e. other critical information blocks referring to "change code corresponding critical information blocks" may also be affected. In order to obtain the overall modification result, it is also necessary to carry out sweep analysis on the current basic object.
S41, carrying out sweep analysis on the current basic object based on the type of the current basic object;
S411, if the current basic object is the latest visual frame information, carrying out static analysis on the current basic object, searching for an explicit connection association relation in the latest visual frame information, obtaining a sweep analysis result, and determining other parts of the blueprint affected by the fluctuation linkage at a certain position; wherein the explicit link association relationship comprises an inclusion or reference relationship in the structure of the visual frame information.
In one embodiment of the present description, calling relationships between key information blocks are extracted, and component connection relationships between key information blocks are determined based on starting points and ending points of reference, inclusion, and action relationships.
S412, if the current basic object is the latest code information, performing static analysis and dynamic analysis on the current basic object to obtain a sweep analysis result.
S412-1, if the current basic object is the latest code information, performing static analysis on the current basic object, and determining other parts of the code, which change and influence somewhere, through analyzing the explicit calling relation of the code, so as to obtain a preliminary analysis result. In one embodiment of the present description, the development code in the current basic object is traversed, all function calls are searched, and the function call relationship between the functions is constructed.
S412-2, dynamically analyzing the current basic object, and updating the preliminary analysis result based on the dynamic analysis result to obtain a sweep analysis result;
It is contemplated that if the runtime dynamically generated code calls other existing code, such as an Eval function using Javascript, its parameters are dynamically executed as code and call other existing code, dynamic analysis is required at the code runtime. In one embodiment of the present disclosure, a code instrumentation technique is used to insert a probe code into each part of a front-end code packet before operation, and when the code is operated, the probe code is jointly operated, and current position information is sent to a server through a callback mechanism, and then the server is used to complete and perfect an original code calling relationship by comprehensively comparing and analyzing with an original code structure, and update a first analysis result.
Specifically, if the current basic object is code information, adding a distinguishing identifier into the current basic object; when the development code in the current basic object runs, the calling relation of the dynamic code is determined through the sequence association of the caller and the callee in the determined code by the information returned by the probe code, and the implicit calling relation of the code is different from the explicit calling relation obtained by the static analysis.
The dynamic analysis and the static analysis can be combined to analyze the explicit call relation of the code and the implicit call relation and the sweep range of the code completely, but the result can be obtained only when the code is operated, and the integrity degree of the code operation range containing the probe also influences the integrity degree of the final result.
The invention further generates the visual frame information by carrying out reverse engineering on codes conforming to Html, css, javascript specifications, taking keywords in the codes as cores and reading and analyzing the codes to obtain the structure of the codes, and definitely modifies the code information in a visual mode, thereby reducing the communication cost and time of all parties and improving the communication efficiency of product design links.
S42, summarizing the preliminary modification result and the sweep analysis result to obtain the target analysis result.
The preliminary modification result represents the content of the direct modification of the current basic object, and the sweep analysis result represents the change swept by the modification of the current basic object.
Displaying the target analysis result to a user for viewing to prompt for changed contents, wherein the changed contents comprise: directly modified content and variations thereto to facilitate further adjustments.
After each version iteration cycle is completed, subsequent version modifications and iterations may continue.
In one embodiment of the present disclosure, the method may be based on a code side, so that a developer may modify and submit the latest code information, and view a target analysis result corresponding to the latest visualization framework information, from which a modification intention of a non-developer is known.
The method can be based on the blueprint side, is convenient for a non-developer to modify and submit the latest visual frame information, and checks the target analysis result corresponding to the latest code information to see whether the modification of the developer meets the requirement.
Regarding the blueprint side, in order to facilitate modification by non-developers, a modification module is further provided, by which the visual frame information is modified. The method specifically comprises the following steps: modify the key information blocks and/or modify the mapping.
Wherein modifying the key information block comprises: dividing the key information block; in one embodiment of the present specification, the number of times the code content in the key information block is modified is counted, and the code content whose number of times is adjusted is greater than a first preset threshold value is marked as a first code content, wherein the first code content is a code content that is frequently modified. Code content whose adjustment number is smaller than a second preset threshold value is marked as second code content, wherein the second code content is code content that is not frequently modified. For the key information block containing the first code content and the second code content, the key information block is divided, and the first code content and the second code content are separated, so that the management and maintenance are more convenient. By segmentation and marking, it is determined which code portions are constantly fluctuating and which are relatively stable, thereby optimizing the maintenance/modification/maintenance strategy.
Modifying the key information block further comprises: grouping key information blocks; in one embodiment of the present disclosure, the key information blocks are grouped according to the category of the key information blocks, which changes the structure of the visual frame information, and replaces a plurality of fine-grained key information blocks with key information blocks having larger granularity, so as to facilitate management.
Modifying the key information block further comprises: layering the key information blocks; in one embodiment of the present disclosure, key information blocks are managed and displayed hierarchically according to standards such as functions, structure levels, and the like, and when a certain layer is displayed, key information blocks of other layers are hidden, so as to improve the simplicity of an interface. For example, the top layer region or element in the Html code is layer 1, then the region or element contained in the Html code is layer 2, and so on, so that key information blocks and relations thereof in different layers can be respectively checked.
The visualized frame information needs to be initialized according to the code information in the primary analysis, namely, the blueprint is initialized.
Recording the modification step in the process of modifying the visual frame information by a non-developer; and carrying out anomaly detection on the modified visual frame information, and sending an alarm prompt when call relation modification occurs so as to avoid misoperation of a non-developer. Specifically, the call relation modification includes: the calling relation among the key information blocks changes, and the original calling relation of the key information blocks is removed.
The invention is also provided with a reset module, when the visual frame information is changed more disorderly due to misuse of the grouping and layering, or the prior version state is difficult to restore through the undo operation, the current visual frame information can be reset through the reset module, and the visual frame information is restored in version.
Of course, if there are more versions and the explanatory text at the time of submission is not detailed, the non-developer may not remember which version to fall back to before, and it is possible to reconstruct the visual frame information by performing mapping conversion from the code side.
The method of the invention can be realized: both developing and non-developing personnel can see the good and familiar results of the developing personnel, so that the intention of the opposite party can be clearly known, and the common targets of the two parties are not required to be gradually approximated through repeated iteration of a plurality of rounds as before. The design intention or development realization feasibility of many products can be directly modified into the interface or interaction effect required by the user by hands, so that the other party can obtain the design intention or development realization feasibility clearly and accurately, the defect that the user's intention is expressed through a language and the information attenuation and even deformation in the information transmission process can be understood by the other party in the traditional product design communication process is overcome, and the communication and confirmation process of the product design process is simplified and efficient.
The invention does not make a set of visual development framework for replacing the front-end codes, which can be used by product designers, because the alternative products can reflect the software development flow in a visual (non-code) way and still lead the learning curve of the product designers to be steep. Further, most serious is the inability to be compatible with and updated with the existing mainstream code development framework: if a development framework compatible with a general development framework such as exact. Js is hard to develop, the upgrade of the subsequent version of the framework will cause the problem of the compatibility of the original version, and various main development frameworks exist in the market and cannot develop the compatibility one by one.
The enhanced mechanism is independent of the development framework and is compatible with the final target code generated by the development framework, namely, the version update frequency of the Html, css, javascript industry basic specification to which the target code belongs is much lower than that of the development framework, so that the blueprint mechanism exists in parallel with the front-end code development framework and can fully utilize the new version and new characteristics continuously pushed by the development framework under the condition that the target code specification is unchanged.
FIG. 3 is a schematic structural diagram of an analysis system for product design according to an embodiment of the present disclosure, the system comprising:
The acquisition module is used for acquiring a current basic object submitted by a modification user, wherein the current basic object comprises one of latest code information and latest visual frame information;
the acquisition module is used for acquiring the basic object of the previous version and the latest association information; the latest association information includes: association information between the basic object of the previous version and the associated object of the previous version;
The version comparison module is used for comparing the versions of the current basic object and the basic object of the previous version to generate a version comparison result;
The mapping comparison module is used for carrying out mapping comparison based on the version comparison result and the latest association information to obtain a preliminary modification result;
and the analysis module is used for inputting the current basic object and the preliminary modification result into a difference analysis model to obtain a target analysis result, and determining the difference relation between the current basic object and the related object of the previous version.
Optionally, the mapping comparison module includes:
The first comparison sub-module is used for obtaining the change information of the current basic object based on the version comparison result;
And the second comparison sub-module is used for judging whether the change information influences the related object of the previous version or not based on the latest related information, and generating the preliminary modification result.
Optionally, the analysis module includes:
The sweep analysis sub-module is used for carrying out sweep analysis on the current basic object based on the type of the current basic object;
And the summarizing and analyzing sub-module is used for summarizing the preliminary modification result and the sweep analysis result to obtain the target analysis result.
Optionally, the sweep analysis sub-module includes:
the code analysis unit is used for carrying out static analysis on the current basic object if the current basic object is the latest code information to obtain a preliminary analysis result;
And the dynamic analysis unit is used for dynamically analyzing the current basic object, updating the preliminary analysis result based on the dynamic analysis result and obtaining the sweep analysis result.
Optionally, the sweep analysis sub-module includes:
And if the current basic object is the latest visual frame information, carrying out static analysis on the current basic object, and searching for an explicit connection association relationship in the latest visual frame information to obtain the sweep analysis result.
Optionally, the visual frame information includes key information blocks and call relations of the key information blocks.
Optionally, the method further comprises: the modification module is used for modifying the visual frame information;
Optionally, the modification module includes:
the first modification submodule is used for dividing the key information block;
A second modification sub-module, configured to group the key information blocks according to the category of the key information blocks;
and the third modification submodule is used for layering the key information blocks.
The functions of the apparatus according to the embodiments of the present invention have been described in the foregoing method embodiments, so that the descriptions of the embodiments are not exhaustive, and reference may be made to the related descriptions in the foregoing embodiments, which are not repeated herein.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. A method of analyzing a product design, comprising:
acquiring a current basic object submitted by a modification user, wherein the current basic object comprises one of latest code information and latest visual frame information;
Collecting the basic object of the previous version and the latest associated information; the latest association information includes: association information between the basic object of the previous version and the associated object of the previous version;
comparing the versions of the current basic object and the basic object of the previous version to generate a version comparison result;
mapping comparison is carried out based on the version comparison result and the latest association information, so that a preliminary modification result is obtained;
And inputting the current basic object and the preliminary modification result into a difference analysis model to obtain a target analysis result, and determining a difference relation between the current basic object and the related object of the previous version.
2. The method of claim 1, wherein said mapping based on said version comparison result and said latest association information to obtain a preliminary modification result comprises:
Obtaining variation information of the current basic object based on the version comparison result;
and judging whether the change information influences the related object of the previous version or not based on the latest related information, and generating the preliminary modification result.
3. The method of claim 1, wherein said inputting the current basic object and the preliminary modification result into a differential analysis model to obtain a target analysis result comprises:
performing sweep analysis on the current basic object based on the type of the current basic object;
And summarizing the preliminary modification result and the sweep analysis result to obtain the target analysis result.
4. A method of analyzing a product design according to claim 3, wherein said performing a sweep analysis on said current base object based on a type of said current base object comprises:
if the current basic object is the latest code information, carrying out static analysis on the current basic object to obtain a preliminary analysis result;
and dynamically analyzing the current basic object, and updating the preliminary analysis result based on a dynamic analysis result to obtain the sweep analysis result.
5. A method of analyzing a product design according to claim 3, wherein said performing a sweep analysis on said current base object based on a type of said current base object comprises:
And if the current basic object is the latest visual frame information, carrying out static analysis on the current basic object, and searching for an explicit connection association relationship in the latest visual frame information to obtain the sweep analysis result.
6. The method of claim 1, wherein the visual framework information includes key information blocks and calling relationships for the key information blocks.
7. The method of analysis of a product design of claim 6, further comprising: modifying the visual frame information;
The modification of the visual frame information comprises:
dividing the key information block;
and/or grouping the key information blocks according to the categories of the key information blocks;
And/or layering the key information blocks.
8. An analysis system for product design, comprising:
The acquisition module is used for acquiring a current basic object submitted by a modification user, wherein the current basic object comprises one of latest code information and latest visual frame information;
the acquisition module is used for acquiring the basic object of the previous version and the latest association information; the latest association information includes: association information between the basic object of the previous version and the associated object of the previous version;
The version comparison module is used for comparing the versions of the current basic object and the basic object of the previous version to generate a version comparison result;
The mapping comparison module is used for carrying out mapping comparison based on the version comparison result and the latest association information to obtain a preliminary modification result;
and the analysis module is used for inputting the current basic object and the preliminary modification result into a difference analysis model to obtain a target analysis result, and determining the difference relation between the current basic object and the related object of the previous version.
9. An electronic device, wherein the electronic device comprises:
A processor; and
A memory storing computer executable instructions that, when executed, cause the processor to perform the method of any of claims 1-7.
10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-7.
CN202410261146.5A 2024-03-07 2024-03-07 Analysis method, system and electronic equipment for product design Pending CN118259874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410261146.5A CN118259874A (en) 2024-03-07 2024-03-07 Analysis method, system and electronic equipment for product design

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410261146.5A CN118259874A (en) 2024-03-07 2024-03-07 Analysis method, system and electronic equipment for product design

Publications (1)

Publication Number Publication Date
CN118259874A true CN118259874A (en) 2024-06-28

Family

ID=91612238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410261146.5A Pending CN118259874A (en) 2024-03-07 2024-03-07 Analysis method, system and electronic equipment for product design

Country Status (1)

Country Link
CN (1) CN118259874A (en)

Similar Documents

Publication Publication Date Title
Poldrack et al. AI-assisted coding: Experiments with GPT-4
US20240070487A1 (en) Systems and methods for enriching modeling tools and infrastructure with semantics
JP7398068B2 (en) software testing
CN110928772B (en) A test method and device
EP3433732B1 (en) Converting visual diagrams into code
US7480893B2 (en) Rule-based system and method for checking compliance of architectural analysis and design models
Balci Requirements for model development environments
EP2228726B1 (en) A method and system for task modeling of mobile phone applications
Nusrat et al. How developers optimize virtual reality applications: A study of optimization commits in open source unity projects
EP2557499A1 (en) A system and method for automatic impact variable analysis and field expansion in mainframe systems
US20120317543A1 (en) Computer aided visualization of a business object model lifecycle
US7203671B1 (en) System and method for validating the technical correctness of an OLAP reporting project
CN117389541B (en) Configuration system and device for generating template based on dialogue retrieval
CN114238463A (en) Calculation engine control method and device for distributed index calculation
CN118760612A (en) Code processing methods and code repair testing methods
US20070033212A1 (en) Semantic model development and deployment
CN114168565B (en) Backtracking test method, device and system of business rule model and decision engine
US11526429B1 (en) Identifying critical methods and critical paths in software code
US11119899B2 (en) Determining potential test actions
CN113900956A (en) Test case generation method, device, computer equipment and storage medium
Konur Towards Light‐Weight Probabilistic Model Checking
CN116016270B (en) Switch test management method, device, electronic device and storage medium
CN115292418B (en) Cross-system business process automatic processing method and system
CN118259874A (en) Analysis method, system and electronic equipment for product design
CN116483707A (en) Test method, test device, test apparatus, test program, and test program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination