CN117472375A - Interactive page generation method, device, equipment and medium based on simulation programming - Google Patents

Interactive page generation method, device, equipment and medium based on simulation programming Download PDF

Info

Publication number
CN117472375A
CN117472375A CN202311496184.0A CN202311496184A CN117472375A CN 117472375 A CN117472375 A CN 117472375A CN 202311496184 A CN202311496184 A CN 202311496184A CN 117472375 A CN117472375 A CN 117472375A
Authority
CN
China
Prior art keywords
simulation
target
programming
codes
current
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
CN202311496184.0A
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.)
Honghu Wanlian Jiangsu Technology Development Co ltd
Original Assignee
Honghu Wanlian Jiangsu Technology Development 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 Honghu Wanlian Jiangsu Technology Development Co ltd filed Critical Honghu Wanlian Jiangsu Technology Development Co ltd
Priority to CN202311496184.0A priority Critical patent/CN117472375A/en
Publication of CN117472375A publication Critical patent/CN117472375A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Architecture (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an interactive page generation method, device, equipment and medium based on simulation programming. The method comprises the following steps: obtaining a target simulation demand corresponding to the current simulation operation; generating an imaging simulation block corresponding to the target simulation demand based on the bottom layer graphic framework, and generating a building block code corresponding to the target simulation demand based on the bottom layer coding framework; wherein, the building block codes comprise script programming codes and object programming codes; and combining and processing script programming codes in the imaging simulation block and the building block codes to generate a simulation interaction page corresponding to the current simulation operation. Through the technical scheme of the invention, the interaction between hardware simulation and a programming interface can be realized, the interaction simulation can be carried out on the components and the use scene of the hardware, and the debugging and testing efficiency of the hardware program is improved.

Description

Interactive page generation method, device, equipment and medium based on simulation programming
Technical Field
The present invention relates to the field of simulation technologies, and in particular, to a method, an apparatus, a device, and a medium for generating an interactive page based on simulation programming.
Background
The current graphical programming platform has single implementation function of hardware simulation interactive programming, and generally adopts simple buttons to execute text effect display or sounding simulation.
However, in an actual teaching scenario, there may be a situation that the number of hardware development boards is small, so that students cannot observe the effect of the hardware program in the hardware development boards, and the debugging efficiency of the hardware program is reduced. Therefore, how to interact with the programming interface through hardware simulation and improve the testing efficiency of the hardware program is a problem to be solved in the present day.
Disclosure of Invention
The invention provides an interactive page generation method, device, equipment and medium based on simulation programming, which can solve the problems of single implementation function of hardware simulation interactive programming and lower debugging efficiency of hardware programs.
According to one aspect of the invention, there is provided an interactive page generation method based on simulation programming, including:
obtaining a target simulation demand corresponding to the current simulation operation;
generating an imaging simulation block corresponding to the target simulation demand based on a bottom layer graphic framework, and generating a building block code corresponding to the target simulation demand based on a bottom layer coding framework; wherein the building block codes comprise script programming codes and object programming codes;
and combining and processing script programming codes in the imaging simulation block and the building block codes to generate a simulation interaction page corresponding to the current simulation operation.
According to another aspect of the present invention, there is provided an interactive page generating apparatus based on simulation programming, including:
the demand acquisition module is used for acquiring target simulation demands corresponding to the current simulation operation;
the demand simulation module is used for generating an imaging simulation block corresponding to the target simulation demand based on the bottom layer graphic framework and generating a building block code corresponding to the target simulation demand based on the bottom layer coding framework; wherein the building block codes comprise script programming codes and object programming codes;
and the page generation module is used for combining and processing script programming codes in the imaging simulation block and the building block codes to generate a simulation interaction page corresponding to the current simulation operation.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the interactive page generation method based on simulation programming according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the interactive page generation method based on simulation programming according to any embodiment of the present invention when executed.
According to the technical scheme, the target simulation requirements corresponding to the current simulation operation are obtained, further, the imaging simulation block corresponding to the target simulation requirements is generated based on the bottom layer graphic framework, the building block codes corresponding to the target simulation requirements are generated based on the bottom layer coding framework, finally, script programming codes in the imaging simulation block and the building block codes are combined and processed, and the simulation interaction page corresponding to the current simulation operation is generated, so that the problems that in the prior art, the implementation function of hardware simulation interaction programming is single, the adjustment and measurement efficiency of a hardware program is low are solved, interaction between hardware simulation and a programming interface can be achieved, interactive simulation can be conducted on components and use scenes of hardware, and the adjustment and measurement efficiency of the hardware program is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an interactive page generation method based on simulation programming according to a first embodiment of the present invention;
FIG. 2 is a flowchart of an interactive page generation method based on simulation programming according to a second embodiment of the present invention;
FIG. 3 is a flow chart of an alternative interactive page generation method based on simulation programming provided in accordance with a second embodiment of the present invention;
FIG. 4 is a schematic diagram of an interactive page based on simulation programming according to a second embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an interactive page generating device based on simulation programming according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device implementing an interactive page generation method based on simulation programming according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "target," "current," and the like in the description and claims of the present invention and the above-described drawings are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a simulation programming-based interactive page generation method according to an embodiment of the present invention, where the method may be applied to a case of performing interactive simulation on a hardware component and a usage scenario, and the method may be performed by a simulation programming-based interactive page generation device, where the simulation programming-based interactive page generation device may be implemented in a form of hardware and/or software, and the simulation programming-based interactive page generation device may be configured in an electronic device, and may be configured in a computer device, for example. As shown in fig. 1, the method includes:
s110, obtaining a target simulation requirement corresponding to the current simulation operation.
The current simulation operation may refer to an operation that needs to perform analog simulation on a device in a hardware development board. In an alternative embodiment, the current simulation operation includes: light emitting diode simulation, gyroscope simulation, pin and level simulation, light induction simulation, gesture light induction simulation, sound effect simulation, button touch simulation and steering engine simulation.
The target simulation requirement may refer to an actual simulation requirement of the current simulation operation. For example, if the current simulation operation is a light emitting diode simulation, the corresponding target simulation requirement may be that the light emitting diode at the set position needs to be lighted. If the current simulation operation is a gyroscope simulation, the corresponding target simulation requirement can be whether the current hardware development board needs to be detected horizontally or the angle of the current hardware development board needs to be detected. If the current simulation operation is pin and level simulation, the corresponding target simulation requirement can be whether the pin and level of the set position to be tested are electrified or not. If the current simulation operation is light induction simulation, the corresponding target simulation requirement can be the light intensity of the current environment to be detected. If the current simulation operation is gesture light sensation simulation, the corresponding target simulation requirement can be the light sensation effect of the gesture to be detected. If the current simulation operation is sound effect simulation, the corresponding target simulation requirement can be that the sound change in the current environment needs to be detected. If the current simulation operation is button touch simulation, the corresponding target simulation requirement can be that image simulation is required to be performed on the set button. If the current simulation operation is steering engine simulation, the corresponding target simulation requirement can be that the display direction of the steering engine needs to be simulated.
It should be noted that, in the embodiment of the present invention, the target simulation requirements may also include simulation of temperature, rotation angle, compass orientation, and the like.
S120, generating an imaging simulation block corresponding to the target simulation demand based on a bottom layer graphic framework, and generating a building block code corresponding to the target simulation demand based on a bottom layer coding framework; wherein the building block code comprises script programming code and object programming code.
The bottom layer graphic framework can refer to a platform used for constructing a programming page in a preset bottom layer framework. Illustratively, the underlying graphic framework may be "vue +nodejs+elementui". The imaging simulation block may refer to a programming simulation interface generated by the underlying graphics framework in accordance with the target simulation requirements.
The bottom coding framework can refer to a platform for performing hardware development board simulation in a preset bottom framework. Illustratively, the underlying coding framework may be "Blockly". Script programming code may refer to code corresponding to a target simulation requirement generated using a script programming language. Object programming code may refer to code corresponding to a target simulation requirement generated using an object programming language. Building block code may refer to instructions for writing script code in a script area. Typically, the individual block codes are interconnected vertically like a puzzle, where each data type has its own shape and a specially shaped slot is inserted therein, which prevents grammar errors.
S130, combining and processing script programming codes in the imaging simulation block and the building block codes to generate a simulation interaction page corresponding to the current simulation operation.
Wherein the combining process may refer to an operation of combining the display. The imaging simulation block is displayed and the script programming codes in the building block codes are displayed, and the imaging simulation block and the script programming codes are arranged according to a set page layout mode. The simulated interactive page may refer to a final generated page containing a hardware simulation and programming interface.
In an optional implementation manner, after the combining processes the script programming codes in the imaging simulation block and the building block codes to generate a simulation interaction page corresponding to the current simulation operation, the method further includes: and burning the object programming codes in the building block codes to target development boards corresponding to the current simulation operation.
Wherein, the target development board may refer to a hardware development board in actual programming.
Specifically, if the target development board exists, script programming codes in the imaging simulation block and the building block codes can be combined and processed, after a simulation interaction page corresponding to the current simulation operation is generated, the target development board is connected through a data line, and the object programming codes in the generated building block codes are burnt into the target development board corresponding to the current simulation operation, so that the actual hardware development board is adjusted and tested.
According to the technical scheme, the target simulation requirements corresponding to the current simulation operation are obtained, further, the imaging simulation block corresponding to the target simulation requirements is generated based on the bottom layer graphic framework, the building block codes corresponding to the target simulation requirements are generated based on the bottom layer coding framework, finally, script programming codes in the imaging simulation block and the building block codes are combined and processed, and the simulation interaction page corresponding to the current simulation operation is generated, so that the problems that in the prior art, the implementation function of hardware simulation interaction programming is single, the adjustment and measurement efficiency of a hardware program is low are solved, interaction between hardware simulation and a programming interface can be achieved, interactive simulation can be conducted on components and use scenes of hardware, and the adjustment and measurement efficiency of the hardware program is improved.
Example two
Fig. 2 is a flowchart of an interactive page generating method based on simulation programming according to a second embodiment of the present invention, where the embodiment is based on the foregoing embodiment, and in this embodiment, the refining of an operation for obtaining a target simulation requirement corresponding to a current simulation operation may specifically include: and acquiring an actual simulation operation corresponding to the target development board, taking the actual simulation operation as a current simulation operation, and acquiring a target simulation requirement corresponding to the current simulation operation. And adding the operation after generating the simulated interaction page corresponding to the current simulation operation by combining script programming codes in the imaging simulation block and the building block codes, wherein the method specifically comprises the following steps of: triggering and starting the simulation interaction page to realize simulation interaction of the target development board. As shown in fig. 2, the method includes:
s210, acquiring actual simulation operation corresponding to a target development board, taking the actual simulation operation as current simulation operation, and acquiring target simulation requirements corresponding to the current simulation operation.
The actual simulation operation may refer to a test requirement that needs to be met in a test process of an actual hardware development board.
Specifically, the current simulation operation which needs to be met by the hardware simulation and programming interface can be determined according to the actual simulation operation corresponding to the target development board, and further, the corresponding target simulation requirement is determined according to the current simulation operation, so that an effective basis is provided for the follow-up operation.
S220, acquiring a target component corresponding to the component requirement in the bottom layer graphic framework based on the component requirement in the target simulation requirement.
The component requirements may refer to component attribute requirements included in the target simulation requirements. By way of example, the type of component, the number of components, and the like may be included. The target components may refer to individual components in the underlying graphics framework that meet the component requirements. For example, if the target simulation requirement is that the led at the set position needs to be lit, the target component may be the led.
S230, based on the simulation requirements in the target simulation requirements, combining and processing the target component to generate an imaging simulation block corresponding to the target simulation requirements.
The simulation requirement may refer to a component logic simulation requirement included in the target simulation requirement. By way of example, the placement location of the target component, trigger logic for the target component, and the like may be included. Specifically, if the target simulation requirement is that the light emitting diode at the set position needs to be turned on, the simulation requirement may be the set position corresponding to the target component and the lighting logic.
S240, processing the target simulation requirement based on the script programming language code, and generating script programming codes corresponding to the target simulation requirement.
Wherein the scripting programming language may refer to an object-oriented scripting language. Illustratively, in an embodiment of the present invention, the script programming language may be a JavaScript language.
S250, processing the target simulation requirement based on the object programming language code, and generating an object programming code corresponding to the target simulation requirement.
Wherein the object programming language may refer to an object oriented dynamic type language. By way of example, the object programming language in embodiments of the present invention may be the Python language.
S260, combining and processing the script programming codes and the object programming codes to generate building block codes corresponding to the target simulation requirements.
S270, displaying and processing the imaging simulation block to generate a programmable page corresponding to the current simulation operation.
The display processing may refer to an operation of performing analog display on the imaging analog block. For example, a rendering display may be used. A programmable page may refer to a page that contains a programming interface.
S280, displaying and processing script programming codes in the building block codes, and generating a development board simulation page corresponding to the current simulation operation.
Wherein a development board simulation page may refer to a page containing hardware simulations.
And S290, combining and displaying the programmable page and the development board simulation page, and generating a simulation interaction page corresponding to the current simulation operation.
And S2100, triggering and starting the simulation interaction page to realize simulation interaction of the target development board.
The trigger start may refer to a start operation generated according to a trigger instruction.
Specifically, after the simulated interactive page is generated, the simulated interactive page needs to be triggered and started according to a trigger instruction initiated by a user, and then the simulated interaction of the target development board is realized according to the target simulation requirement corresponding to the current simulation operation.
According to the technical scheme, the actual simulation operation corresponding to the target development board is used as the current simulation operation, the target simulation requirement corresponding to the current simulation operation is obtained, further, the target assembly corresponding to the assembly requirement in the bottom layer graphic framework is obtained based on the assembly requirement in the target simulation requirement, the imaging simulation block corresponding to the target simulation requirement is generated by combining the target assembly based on the simulation requirement in the target simulation requirement, the target simulation requirement is processed based on the script programming language coding, the script programming code corresponding to the target simulation requirement is generated, the target simulation requirement is processed based on the object programming language coding, the object programming code corresponding to the target simulation requirement is generated, the script programming code and the object programming code are combined, the building block code corresponding to the target simulation requirement is generated, further, the programmable page corresponding to the current simulation operation is generated by displaying the script programming code in the building block code, the development board simulation page corresponding to the current simulation operation is generated, the script programming page corresponding to the script programming operation is combined, the script programming page corresponding to the current simulation operation is generated, finally, the script programming page corresponding to the script programming operation is triggered, the interaction simulation page is realized, the interaction between the simulation page and the hardware is realized, the interaction between the simulation program and the interaction hardware can be realized, and the interaction is realized, and the interaction hardware can be realized, and the interaction can be realized, and the simulation hardware can be realized.
FIG. 3 is a flowchart of an alternative interactive page generation method based on simulation programming according to an embodiment of the present invention. Specifically, first, an actual simulation operation corresponding to a target development board is used as a current simulation operation, a target simulation requirement corresponding to the current simulation operation is obtained, then, a bottom layer frame comprising a bottom layer graphic frame and a bottom layer coding frame is introduced, an imaging simulation block corresponding to the target simulation requirement is generated based on the bottom layer graphic frame, building block codes comprising script programming codes and object programming codes corresponding to the target simulation requirement are generated based on the bottom layer coding frame, further, a programmable page corresponding to the current simulation operation is generated by displaying the imaging simulation block, a script programming code in the building block codes is displayed, a development board simulation page corresponding to the current simulation operation is generated, and the programmable page and the development board simulation page are combined and displayed, so that a simulation interaction page corresponding to the current simulation operation is generated. In addition, if the target development board exists, script programming codes in the imaging simulation block and the building block codes can be combined and processed, after a simulation interaction page corresponding to the current simulation operation is generated, the target development board is connected through a data line, and the object programming codes in the generated building block codes are burnt into the target development board corresponding to the current simulation operation.
FIG. 4 is a schematic diagram of an interactive page based on simulation programming according to an embodiment of the present invention. Specifically, the left side of the interactive page is a development board simulation page containing hardware simulation, wherein the development board simulation page contains component requirements and simulation requirements in target simulation requirements corresponding to a target development board. For example, if the target simulation requirement is that the light emitting diode at the set position needs to be lightened to form a heart shape, the heart-shaped lightened light emitting diode can be displayed in the development board simulation page.
To the right of the interactive page is a programmable page containing a programming interface. The device comprises component logic simulation requirements in target simulation requirements corresponding to the target development board. For example, if the target simulation requirement is that the led at the set position needs to be turned on to form a heart shape, the programmable page may include a graphic that needs to be displayed when the trigger is started.
It should be noted that, in this embodiment, the development board simulation page is preferably disposed on the left side of the interactive page, and the programmable page is disposed on the right side of the interactive page, and the position modification of the development board simulation page and the programmable page may also be performed according to the actual application requirement, which is not particularly limited in the embodiment of the present invention.
Example III
Fig. 5 is a schematic structural diagram of an interactive page generating device based on simulation programming according to a third embodiment of the present invention. As shown in fig. 5, the apparatus includes: a demand acquisition module 310, a demand simulation module 320, and a page generation module 330;
the demand acquisition module 310 is configured to acquire a target simulation demand corresponding to a current simulation operation;
the requirement simulation module 320 is configured to generate an imaging simulation block corresponding to the target simulation requirement based on the bottom layer graphics framework, and generate a building block code corresponding to the target simulation requirement based on the bottom layer coding framework; wherein the building block codes comprise script programming codes and object programming codes;
and the page generation module 330 is configured to combine and process script programming codes in the imaging simulation block and the building block codes, and generate a simulation interaction page corresponding to the current simulation operation.
According to the technical scheme, the target simulation requirements corresponding to the current simulation operation are obtained, further, the imaging simulation block corresponding to the target simulation requirements is generated based on the bottom layer graphic framework, the building block codes corresponding to the target simulation requirements are generated based on the bottom layer coding framework, finally, script programming codes in the imaging simulation block and the building block codes are combined and processed, and the simulation interaction page corresponding to the current simulation operation is generated, so that the problems that in the prior art, the implementation function of hardware simulation interaction programming is single, the adjustment and measurement efficiency of a hardware program is low are solved, interaction between hardware simulation and a programming interface can be achieved, interactive simulation can be conducted on components and use scenes of hardware, and the adjustment and measurement efficiency of the hardware program is improved.
Optionally, the requirement acquisition module 310 may specifically be configured to: acquiring actual simulation operation corresponding to a target development board, taking the actual simulation operation as current simulation operation, and acquiring a target simulation requirement corresponding to the current simulation operation;
the interactive page generating device based on simulation programming can further comprise: and the interaction realizing module is used for triggering and starting the simulation interaction page after the script programming codes in the imaging simulation block and the building block codes are processed in a combined way to generate the simulation interaction page corresponding to the current simulation operation, so as to realize the simulation interaction of the target development board.
Optionally, the requirement modeling module 320 may specifically be configured to:
acquiring a target component corresponding to the component requirement in a bottom layer graphic framework based on the component requirement in the target simulation requirement;
and based on the simulation requirements in the target simulation requirements, combining and processing the target component to generate an imaging simulation block corresponding to the target simulation requirements.
Optionally, the requirement modeling module 320 may specifically be configured to:
processing the target simulation demand based on script programming language coding, and generating script programming codes corresponding to the target simulation demand;
processing the target simulation requirement based on the object programming language code, and generating an object programming code corresponding to the target simulation requirement;
and combining and processing the script programming code and the object programming code to generate the building block code corresponding to the target simulation requirement.
Optionally, the page generating module 330 may specifically be configured to:
displaying and processing the imaging simulation block to generate a programmable page corresponding to the current simulation operation;
displaying and processing script programming codes in the building block codes to generate a development board simulation page corresponding to the current simulation operation;
and merging and displaying the programmable page and the development board simulation page, and generating a simulation interaction page corresponding to the current simulation operation.
Optionally, the interactive page generating device based on simulation programming may further include: and the burning processing module is used for burning the object programming codes in the building block codes to the target development board corresponding to the current simulation operation after the script programming codes in the imaging simulation block and the building block codes are processed in a combined mode and the simulation interaction page corresponding to the current simulation operation is generated.
Optionally, the current simulation operation includes: light emitting diode simulation, gyroscope simulation, pin and level simulation, light induction simulation, gesture light induction simulation, sound effect simulation, button touch simulation and steering engine simulation.
The interactive page generating device based on the simulation programming provided by the embodiment of the invention can execute the interactive page generating method based on the simulation programming provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
Example IV
Fig. 6 shows a schematic diagram of an electronic device 410 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the electronic device 410 includes at least one processor 420, and a memory, such as a Read Only Memory (ROM) 430, a Random Access Memory (RAM) 440, etc., communicatively coupled to the at least one processor 420, wherein the memory stores computer programs executable by the at least one processor, and the processor 420 may perform various suitable actions and processes according to the computer programs stored in the Read Only Memory (ROM) 430 or the computer programs loaded from the storage unit 490 into the Random Access Memory (RAM) 440. In RAM440, various programs and data required for the operation of electronic device 410 may also be stored. The processor 420, ROM 430, and RAM440 are connected to each other by a bus 450. An input/output (I/O) interface 460 is also connected to bus 450.
Various components in the electronic device 410 are connected to the I/O interface 460, including: an input unit 470 such as a keyboard, a mouse, etc.; an output unit 480 such as various types of displays, speakers, and the like; a storage unit 490, such as a magnetic disk, an optical disk, or the like; and a communication unit 4100, such as a network card, modem, wireless communication transceiver, etc. The communication unit 4100 allows the electronic device 410 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunications networks.
Processor 420 may be a variety of general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of processor 420 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 420 performs the various methods and processes described above, such as interactive page generation methods based on simulation programming.
The method comprises the following steps:
obtaining a target simulation demand corresponding to the current simulation operation;
generating an imaging simulation block corresponding to the target simulation demand based on a bottom layer graphic framework, and generating a building block code corresponding to the target simulation demand based on a bottom layer coding framework; wherein the building block codes comprise script programming codes and object programming codes;
and combining and processing script programming codes in the imaging simulation block and the building block codes to generate a simulation interaction page corresponding to the current simulation operation.
In some embodiments, the interactive page generation method based on simulation programming may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 490. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 410 via the ROM 430 and/or the communication unit 4100. When the computer program is loaded into RAM440 and executed by processor 420, one or more steps of the interactive page generation method described above based on simulation programming may be performed. Alternatively, in other embodiments, processor 420 may be configured to perform the simulation programming-based interactive page generation method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. The interactive page generation method based on simulation programming is characterized by comprising the following steps of:
obtaining a target simulation demand corresponding to the current simulation operation;
generating an imaging simulation block corresponding to the target simulation demand based on a bottom layer graphic framework, and generating a building block code corresponding to the target simulation demand based on a bottom layer coding framework; wherein the building block codes comprise script programming codes and object programming codes;
and combining and processing script programming codes in the imaging simulation block and the building block codes to generate a simulation interaction page corresponding to the current simulation operation.
2. The method of claim 1, wherein the obtaining the target simulation requirement corresponding to the current simulation operation comprises:
acquiring actual simulation operation corresponding to a target development board, taking the actual simulation operation as current simulation operation, and acquiring a target simulation requirement corresponding to the current simulation operation;
after the script programming codes in the imaging simulation block and the building block codes are processed in a combined mode to generate a simulation interaction page corresponding to the current simulation operation, the method further comprises the following steps:
triggering and starting the simulation interaction page to realize simulation interaction of the target development board.
3. The method of claim 1, wherein the generating the imaged simulation block corresponding to the target simulation requirement based on the underlying graphics framework comprises:
acquiring a target component corresponding to the component requirement in a bottom layer graphic framework based on the component requirement in the target simulation requirement;
and based on the simulation requirements in the target simulation requirements, combining and processing the target component to generate an imaging simulation block corresponding to the target simulation requirements.
4. The method of claim 1, wherein the generating the building block code corresponding to the target simulation requirement based on the underlying coding framework comprises:
processing the target simulation demand based on script programming language coding, and generating script programming codes corresponding to the target simulation demand;
processing the target simulation requirement based on the object programming language code, and generating an object programming code corresponding to the target simulation requirement;
and combining and processing the script programming code and the object programming code to generate the building block code corresponding to the target simulation requirement.
5. The method of claim 1, wherein the combining processes script programming code in the imaged analog block and the building block code to generate the analog interaction page corresponding to the current simulation operation comprises:
displaying and processing the imaging simulation block to generate a programmable page corresponding to the current simulation operation;
displaying and processing script programming codes in the building block codes to generate a development board simulation page corresponding to the current simulation operation;
and merging and displaying the programmable page and the development board simulation page, and generating a simulation interaction page corresponding to the current simulation operation.
6. The method of claim 1, further comprising, after the combining processes script programming code in the imaged analog block and the building block code to generate an analog interaction page corresponding to a current simulation operation:
and burning the object programming codes in the building block codes to target development boards corresponding to the current simulation operation.
7. The method of claim 1, wherein the current simulation operation comprises: light emitting diode simulation, gyroscope simulation, pin and level simulation, light induction simulation, gesture light induction simulation, sound effect simulation, button touch simulation and steering engine simulation.
8. An interactive page generating device based on simulation programming, comprising:
the demand acquisition module is used for acquiring target simulation demands corresponding to the current simulation operation;
the demand simulation module is used for generating an imaging simulation block corresponding to the target simulation demand based on the bottom layer graphic framework and generating a building block code corresponding to the target simulation demand based on the bottom layer coding framework; wherein the building block codes comprise script programming codes and object programming codes;
and the page generation module is used for combining and processing script programming codes in the imaging simulation block and the building block codes to generate a simulation interaction page corresponding to the current simulation operation.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the simulation programming based interactive page generation method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the simulation programming based interactive page generation method of any one of claims 1-7 when executed.
CN202311496184.0A 2023-11-10 2023-11-10 Interactive page generation method, device, equipment and medium based on simulation programming Pending CN117472375A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311496184.0A CN117472375A (en) 2023-11-10 2023-11-10 Interactive page generation method, device, equipment and medium based on simulation programming

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311496184.0A CN117472375A (en) 2023-11-10 2023-11-10 Interactive page generation method, device, equipment and medium based on simulation programming

Publications (1)

Publication Number Publication Date
CN117472375A true CN117472375A (en) 2024-01-30

Family

ID=89637696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311496184.0A Pending CN117472375A (en) 2023-11-10 2023-11-10 Interactive page generation method, device, equipment and medium based on simulation programming

Country Status (1)

Country Link
CN (1) CN117472375A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117852486A (en) * 2024-03-04 2024-04-09 上海楷领科技有限公司 Chip two-dimensional model online interaction method, device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117852486A (en) * 2024-03-04 2024-04-09 上海楷领科技有限公司 Chip two-dimensional model online interaction method, device and storage medium

Similar Documents

Publication Publication Date Title
US11816915B2 (en) Human body three-dimensional key point detection method, model training method and related devices
CN117472375A (en) Interactive page generation method, device, equipment and medium based on simulation programming
CN111488740B (en) Causal relationship judging method and device, electronic equipment and storage medium
CN108882025B (en) Video frame processing method and device
CN113359995B (en) Man-machine interaction method, device, equipment and storage medium
US20230029359A1 (en) Method and apparatus for testing ai chip computing performance, and non-transitory computer-readable storage medium
CN111915712B (en) Illumination rendering method and device, computer readable medium and electronic equipment
US9092909B2 (en) Matching a system calculation scale to a physical object scale
CN113453073A (en) Image rendering method and device, electronic equipment and storage medium
CN117312140A (en) Method and device for generating test case, electronic equipment and storage medium
WO2024088141A1 (en) Special-effect processing method and apparatus, electronic device, and storage medium
CN113332714A (en) Light supplementing method and device for game model, storage medium and computer equipment
CN115423919B (en) Image rendering method, device, equipment and storage medium
CN115147547B (en) Human body reconstruction method and device
CN115481594B (en) Scoreboard implementation method, scoreboard, electronic equipment and storage medium
CN116628167B (en) Response determination method and device, electronic equipment and storage medium
CN115185494A (en) Modeling simulation method and device of vehicle functional architecture, electronic equipment and medium
CN117032653A (en) Gesture programming method and device based on hong Monte system, electronic equipment and medium
CN116245982A (en) Animation file generation method and device, electronic equipment and storage medium
CN117608589A (en) Code generation method, device, electronic equipment and storage medium
CN115510207A (en) Knowledge tag identification and power grid scene question and answer method, device, equipment and medium
CN117933350A (en) Multi-agent reinforcement learning system, method, electronic device and storage medium
CN116071422A (en) Method and device for adjusting brightness of virtual equipment facing meta-universe scene
CN117033188A (en) Interface designer testing method and device, storage medium and computer equipment
CN116450131A (en) Form page generation method and device, electronic equipment and storage medium

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