CN115220809A - Scene switching method, computer device and readable storage medium - Google Patents

Scene switching method, computer device and readable storage medium Download PDF

Info

Publication number
CN115220809A
CN115220809A CN202210756601.XA CN202210756601A CN115220809A CN 115220809 A CN115220809 A CN 115220809A CN 202210756601 A CN202210756601 A CN 202210756601A CN 115220809 A CN115220809 A CN 115220809A
Authority
CN
China
Prior art keywords
scene
configuration
target
type
combination
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
CN202210756601.XA
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.)
Our United Corp
Original Assignee
Our United Corp
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 Our United Corp filed Critical Our United Corp
Priority to CN202210756601.XA priority Critical patent/CN115220809A/en
Publication of CN115220809A publication Critical patent/CN115220809A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

The application discloses a scene switching method, computer equipment and a readable storage medium, wherein the scene switching method comprises the following steps: constructing a scene configuration combination, wherein the scene configuration combination comprises scene objects corresponding to configuration targets, each scene object has at least two configuration states, and the combination of the configuration states of the scene objects is used for determining different scenes; acquiring the configuration state of the scene object in a target scene to update the scene configuration combination, wherein the target scene is one of the different scenes; and executing the updated platform code under the scene configuration combination to switch to the target scene.

Description

Scene switching method, computer device and readable storage medium
Technical Field
The present application relates to the field of image processing, and in particular, to a scene switching method, a computer device, and a readable storage medium.
Background
With the diversification of radiotherapy product types, one set of software platform codes is difficult to adapt to various scenes.
Taking an image guidance system (software) in radiotherapy as an example, since different types of image guidance systems are adapted to different types of radiotherapy products (i.e., product scenarios) or application platforms (i.e., application scenarios), when different products or application scenarios are switched, developers need to change or recompile software platform codes of the image guidance system.
However, switching between product or application scenarios by modifying software platform code or recompiling takes a long time and is prone to errors.
Disclosure of Invention
The embodiment of the application provides a scene switching method, a computer device and a readable storage medium, which can switch different products or application scenes on the premise of using a set of platform codes, shorten switching time and are not easy to generate errors.
In one aspect, the present application provides a scene switching method, including: constructing a scene configuration combination, wherein the scene configuration combination comprises scene objects corresponding to configuration targets, each scene object has at least two configuration states, and the combination of the configuration states of the scene objects is used for determining different scenes; acquiring the configuration state of the scene object in a target scene to update the scene configuration combination, wherein the target scene is one of the different scenes; and executing the updated platform code under the scene configuration combination to switch to the target scene.
In some embodiments of the present application, the scene object includes a first type of scene object and/or a second type of scene object, where a configuration status of the first type of scene object is used to indicate that a configuration target is physical hardware or non-physical hardware, and a configuration status of the second type of scene object is used to indicate an attribute of the configuration target.
In some embodiments of the present application, the obtaining a configuration state of the scene object in the target scene includes: and under the condition that the target scene is a real-machine scene, acquiring the configuration state of the first type of scene object, wherein the configuration state of the first type of scene object indicates that the configuration target is entity hardware.
In some embodiments of the present application, the scene object of the first configuration target corresponding to the scene object of the first type further includes the scene object of the second type, and the obtaining the configuration state of the scene object in the target scene further includes: and acquiring a second configuration state of the second type of scene object corresponding to the first configuration target, wherein the second configuration state is used for indicating that the attribute of the first configuration target is a target attribute.
In some embodiments of the present application, the obtaining a configuration state of the scene object in the target scene includes: and under the condition that the target scene is a simulated scene, acquiring the configuration states of the first type of scene objects, wherein at least one configuration state in the configuration states of the first type of scene objects indicates that the configuration target is non-entity hardware.
In some embodiments of the present application, the obtaining a configuration state of the scene object in the target scene includes: constructing a corresponding relation between a scene and a combination of configuration states of the scene objects in the scene configuration combination; acquiring a target scene; and acquiring the configuration state of the scene object in the target scene according to the corresponding relation.
In some embodiments of the present application, the first type of scene object is generated by a producer mode and the second type of scene object is generated by a factory mode.
In some embodiments of the present application, the method is applied in an image guidance system for radiation therapy.
In another aspect, the present application further provides a computer device, including: one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the scene switching method of any one of the first aspects.
In a third aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is loaded by a processor to execute the steps in the scene switching method according to any one of the first aspect.
The scene switching method of the embodiment of the application can pre-construct a scene configuration combination, wherein the scene configuration combination comprises scene objects corresponding to configuration targets, and each scene object has at least two configuration states, so that different scenes can be determined by the combination of different configuration states of the scene objects; when the method is used, the configuration state of a scene object in a target scene in different scenes is firstly obtained to update the scene configuration combination, and then the platform code under the scene configuration combination is executed, so that the target scene can be switched on the premise of using one set of platform code without changing or recompiling the software platform code, the scene switching time is shortened, and errors are not easy to generate.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an embodiment of a scene switching method provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of another embodiment of a scene switching method provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of another embodiment of a scene switching method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an embodiment of a computer device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on those shown in the drawings, merely for convenience of description and simplicity of description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered limiting of the present application. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or to implicitly indicate the number of technical features indicated. Thus, features defined as "first", "second", "third" may explicitly or implicitly include one or more of the described features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes are not set forth in detail in order to avoid obscuring the description of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
It should be noted that, since the method in the embodiment of the present application is executed in a computer device, processing objects of each computer device all exist in the form of data or information, for example, time, which is substantially time information, and it is understood that, in the subsequent embodiments, if size, number, position, and the like are mentioned, corresponding data exist so as to be processed by the computer device, and details are not described herein.
Generally, different types of radiotherapy products can achieve radiotherapy treatment on a patient or radiotherapy treatment under image guidance, but the types, manufacturers, models and the like of hardware (such as an accelerator, a detector, a bulb, a controller and the like) adapted for each type of radiotherapy product are different, and for example, the detector type adapted for the product 1 comprises a KV detector and a MV detector, wherein the KV detector and the MV detector are both a type A1 detector of the manufacturer a, and the detector type adapted for the product 2 comprises a KV detector and a MV detector, wherein the KV detector is a type A2 detector of the manufacturer a, and the MV detector is a type B1 detector of the manufacturer B. Thus, a developer is required to modify or recompile the corresponding software platform code of the radiotherapy software system to realize switching between different types of products (i.e., product scenarios).
In addition, in practical applications, the radiotherapy software system needs to be adapted to different application platforms (e.g. application scenarios such as simulator, real machine, simulation platform, and lab), however, part or all of hardware (e.g. accelerator, bulb, detector, controller, etc.) in different application platforms are not real, but simulated, for example, in a simulator mode, an exposure controller, i.e. an Imaging Control Unit (ICU), a controller Modbus connected to an image server, and a flat panel detector are simulated, and in a real machine mode, all of them are real, in a simulation platform mode, modbus is real, ICU and flat panel detector are simulated, in a lab mode, modbus is simulated, and ICU and flat panel detector are real. In this way, developers are also required to modify or recompile the corresponding software platform code of the radiotherapy software system to realize switching between different application platforms (i.e., application scenarios).
However, switching between product or application scenarios by modifying platform code or recompiling takes a long time and is prone to errors.
Therefore, in the embodiment of the present application, a scene switching method is provided, where different scenes are determined by using a configuration state of a scene object corresponding to a configuration target in a scene configuration combination, and when the configuration state of the scene object in the scene configuration combination is switched to the configuration state of the scene object in the target scene, a platform code under the scene configuration combination is executed, so that the scene switching can be realized without changing or recompiling a software platform code, thereby shortening the scene switching time and being less prone to errors. The scene switching method can be used in an image guidance system for radiation therapy.
Fig. 1 is a schematic flowchart of an embodiment of a scene switching method provided in an embodiment of the present application, where the scene switching method is applied to a computer device, and as shown in fig. 1, the scene switching method includes the following steps S201 to S203, specifically as follows:
and S101, constructing a scene configuration combination.
The computer equipment firstly constructs a scene configuration combination, the scene configuration combination comprises scene objects corresponding to the configuration targets, and each scene object has at least two configuration states, so that different scenes can be determined by the combination of the configuration states of the scene objects.
In order to make the radiation therapy more accurate, the radiation therapy device may comprise image guiding means to image-guide the radiation therapy to the patient by means of the image guiding means. Here, the target to be configured is at least one target, and may be various components in the radiotherapy apparatus, such as a gamma knife treatment head, an accelerator, a gantry, a bulb, a KV-level and/or MV-level detector, a controller connected to an image server, and the like.
Each configuration target and the corresponding scene object may be in a one-to-one relationship or a one-to-many relationship. The types of the scene objects corresponding to each configuration target may be the same or different. That is, the scene object may include a first type of scene object and/or a second type of scene object. Here, the configuration state of the first type scene object may be two states respectively indicating whether the configuration target is the physical hardware or the non-physical hardware, and the configuration state of the second type scene object may include two or more states respectively indicating the attribute of the configuration target.
Here, the attribute of the configuration object may include a type of the configuration object, a vendor of the configuration object, a model of the configuration object, and the like. Of course, the scene object may also be other objects set as needed.
Here, the configuration state may be represented by an integer such as 0, 1, 2, or may be represented by a letter or a letter combination such as T, F, U, true, false, or may be a combination of a number and a letter/letter combination, and the embodiment of the present application is not particularly limited in the representation mode of the state.
In the case that the radiotherapy software system of a certain type of product needs to be adapted to different application platforms, the scene objects may only include the first type of scene object; in the case where the radiation therapy software system needs to be adapted to different types of products, the scene objects may only comprise scene objects of the second type; in case the radiation therapy software system needs to be adapted to different types of products and also to different application platforms, the scene objects need to comprise a first type of scene object and a second type of scene object.
Illustratively, the configuration objects include a first configuration object and a second configuration object, and the types of the scene objects include a first type and a second type, where the scene object corresponding to the first configuration object is a first type of scene object, and the scene object corresponding to the second configuration object is a first type of scene object and a second type of scene object. In this way, a scene can be determined by a combination of the first type of scene object corresponding to the first configuration object, the first type of scene object corresponding to the second configuration object, and the second type of scene object.
Here, the scene may include a real scene, and may also include a simulated scene, and the like. The configuration states of the first type of scene objects of all the configuration targets in the real machine scene indicate that the configuration targets are entity hardware, and at least one configuration state of the first type of scene objects of the configuration targets in the simulated scene indicates that the configuration targets are non-entity hardware. Under the condition of a real machine scene, further, the real machine can be different types of products, and the setting of a specific hardware component needs to be configured through the configuration state of a second type of scene object; the simulation scenario may further include any one of a simulator, a simulation platform, a laboratory, etc., or other scenarios, which will be described in detail in the following explanation.
S102, acquiring the configuration state of the scene object in the target scene to update the scene configuration combination.
After the constructed scene configuration combination is constructed, the computer device can acquire the configuration state of the scene object in the target scene, and accordingly, the scene configuration combination is updated.
It is understood that the target scene is a scene to which switching is desired, and is one of different scenes. The target scene and a combination of a certain configuration state of the scene objects in the scene configuration combination have a corresponding relation, after the target scene is determined, the configuration state of the corresponding scene object can be known, and the computer equipment can acquire the configuration state of the scene object in the target scene.
It should be noted that the configuration state of the scene object in the target scene may be input by the user according to the target scene, or may be automatically generated by the computer device according to the target scene, which is not specifically limited herein.
And S103, executing the platform code under the updated scene configuration combination to switch to the target scene.
Because the combination of the configuration states of the scene objects in the target scene has a corresponding relationship with the target scene, the computer equipment executes the platform code in the updated scene configuration combination, and can switch to the target scene without changing or recompiling the platform code.
Here, the platform code under the updated scene configuration combination may be executed by restarting software (e.g., an image boot system) corresponding to the platform code or restarting the computer device.
According to the method and the device, a scene configuration combination is pre-constructed in the computer equipment, the scene configuration combination comprises scene objects corresponding to configuration targets, and each scene object has at least two configuration states, so that different scenes can be determined by the combination of different configuration states of the scene objects; when the method is used, the configuration state of the scene object in a target scene in different scenes is firstly obtained to update the scene configuration combination, and then the platform code under the scene configuration combination is executed, so that the target scene can be switched on the premise of using one set of platform code without changing or recompiling the software platform code, the scene switching time is shortened, and errors are not easy to generate.
In the case that the radiotherapy software system needs to be adapted to different types of products and also different application platforms, the types of the scene objects corresponding to the configuration targets are different types, that is, the scene objects need to include a first type of scene objects and a second type of scene objects. In order to explain the technical solution of the present application more clearly, another scene switching method is provided in the embodiment of the present application, fig. 2 is a schematic flow chart of another embodiment of the scene switching method provided in the embodiment of the present application, and the scene switching method is applied to a computer device, as shown in fig. 2, the scene switching method includes the following steps S201 to S203, which are specifically as follows:
s201, a scene configuration combination is constructed, wherein the scene configuration combination comprises a first type of scene object and a second type of scene object corresponding to a configuration target, and each scene object has at least two configuration states.
The computer device can construct a scene configuration combination, wherein the scene configuration combination comprises a first type of scene object and a second type of scene object corresponding to the configuration target, and each scene object has at least two configuration states. Thus, the combination of the configuration states of the first type of scene object and the second type of scene object can determine different scenes.
Here, the configuration state of the first type of scene object may be used to indicate whether the configuration target is physical hardware or non-physical hardware, and the configuration state of the second type of scene object may be used to indicate an attribute of the configuration target.
It should be noted that the first type of scene object may be generated through a producer mode, and the second type of scene object may be generated through a factory mode, which is not specifically limited in the embodiment of the present application.
Illustratively, as shown in table 1 below, the configuration objects include an exposure controller ICU, a controller ModBus connected to the image server, and a flat panel detector Capture; the scene objects comprise first Type scene objects and second Type scene objects, wherein the first Type scene objects comprise Type1_ ICU corresponding to ICU, type1_ ModBus corresponding to ModBus and Type1_ Capture corresponding to Capture, the configuration state of the first Type scene objects comprises 0 and 1,0 indicates that the configuration target is non-entity hardware, and 1 indicates that the configuration target is entity hardware; the second Type scene object includes Type2_ Capture corresponding to Capture, and the configuration states of the second Type scene object include 0, 1, 2, respectively indicating different models of Capture, e.g., model 1, model 2, model 3.
Table 1:
Figure BDA0003719737040000081
thus, the combination of the configuration states of the first Type scene object and the second Type scene object can determine different scenes, as shown in table 2 below, which can include a real-machine scene and a simulation scene, wherein the simulation scene is subdivided into three scenes, namely a simulator, a simulation platform and a laboratory, in which the configuration state of at least one of the first Type scene object Type1_ ICU, type1_ ModBus and Type1_ Capture is 0, and the configuration state of the second Type scene object Type2_ Capture is not limited, and can be a default value or a null value, such as 0. Under a real-machine scene, the method can be subdivided into three different product scenes: the product A, the product B and the product C correspond to different configuration states of Type2_ Capture, so that different flat panel detectors can be adapted.
Table 2:
Figure BDA0003719737040000091
therefore, the computer device can obtain the configuration state of the corresponding scene object according to a target scene in the scene, which specifically includes:
S202A1, under the condition that the target scene is a real machine scene, acquiring the configuration state of a first type of scene object to update the scene configuration combination, wherein the configuration state of the first type of scene object indicates that the configuration target is entity hardware.
In this way, the scene can be switched to a real scene in the application scene. Illustratively, when it is desired to switch a scene to a live-action scene (i.e., a live action in an application scene), as shown in table 2, values of Type1_ ICU, type1_ ModBus, and Type1_ Capture are acquired, and are all 1, and it is not necessary to acquire a value of Type2_ Capture. Thus, the scene is switched to a true scene.
S202A2, the scene objects of the configuration target (i.e. the first configuration target) corresponding to the first type of scene object further include a second type of scene object, and a second configuration state of the second type of scene object corresponding to the configuration target is obtained, where the second configuration state is used to indicate that the attribute of the configuration target is the target attribute.
Illustratively, as shown in table 2, when it is desired to switch the scene to the genuine product a (i.e., the product a scene), in addition to acquiring values of Type1_ ICU, type1_ ModBus, and Type1_ Capture, which are all 1, it is also necessary to acquire a value of Type2_ Capture of Capture, which is 0. The manner of the scene switching to the real machine product B (i.e., the product B scene) or the real machine product C (i.e., the product C scene) is expected to be similar, and is not repeated here. Thus, the scene is switched to a different real machine product scene.
Through steps S202A1 to S202A2, the attributes of the configuration target in the real machine scene may be configured, so that the scene is switched to the product scene corresponding to the real machine.
S202B, under the condition that the target scene is a simulated scene, acquiring the configuration state of a first type of scene object to update the scene configuration combination, wherein at least one configuration state in the configuration state of the first type of scene object indicates that the configuration target is non-entity hardware.
Illustratively, as shown in table 2, when it is desired to switch a scene to a simulator (i.e., simulate a scene-simulator), values of Type1_ ICU, type1_ ModBus, and Type1_ Capture are obtained and all values are 0. Thus, the scene switches to a simulator.
When it is desired to switch a scene to an emulation platform (i.e., an emulated scene — emulation platform), values for Type1_ ICU, type1_ ModBus, and Type1_ Capture are obtained, and the values for Type1_ ICU and Type1_ Capture are 0 and the value for Type1 \/ModBus is 1. Thus, the scenario switches to the simulation platform.
When it is desired to switch the scene to a laboratory (i.e., simulation scene-laboratory), the values of Type1_ ICU, type1_ ModBus, and Type1_ Capture are obtained, and the values of Type1_ ICU and Type1_ Capture are 1 and the value of Type1 \/ModBus is 0. Thus, the scenario switches to a laboratory.
Through step S202B, different simulation application scenes can be configured by setting configuration states of different scene objects.
And S203, executing the platform code under the updated scene configuration combination to switch to the target scene.
The computer device executes the platform code under the updated scene configuration combination, so that the target scene can be switched to without changing or recompiling the platform code.
According to the method and the device, different application scenes and different product scenes can be switched by acquiring the configuration states of the configuration objects in different scenes, and the switching is flexible and strong in adaptability.
In order to improve the switching efficiency, another scene switching method is further provided in the embodiment of the present application, and fig. 3 is a schematic flow chart of another embodiment of the scene switching method provided in the embodiment of the present application, where the scene switching method is applied to a computer device, as shown in fig. 3, the scene switching method includes the following steps S301 to S305, specifically as follows:
s301, constructing a scene configuration combination.
This step S301 is similar to step S101 and will not be described here.
S302, establishing a corresponding relation between the scene and the scene configuration combination.
The scene configuration combination comprises the scene objects corresponding to the configuration targets, and each scene object has at least two configuration states, so that the combination of the configuration states of different scene objects can correspond to different scenes, that is, different scene configuration combinations correspond to different scenes, and the computer device constructs the corresponding relation between the scenes and the scene configuration combinations. Thus, the scene and the scene configuration combination have a corresponding relationship. By way of example, the computer device may construct the correspondence relationship as shown in Table 2, wherein the combination of the configuration states of each line of Type1_ ICU, type1_ ModBus, type1_ Capture, and Type2_ Capture in the table is a scene configuration combination corresponding to a scene, for example, each of Type1_ ICU, type1_ ModBus, and Type1_ Capture is 1, type2 \ Capture is 0, and the scene configuration combination (1, 0) corresponds to product A in a real-machine scene.
And S303, acquiring a target scene.
The computer device obtains a target scene, which is one of the different scenes.
S304, acquiring the configuration state of the scene object in the target scene according to the corresponding relation.
The computer device obtains the configuration state of the scene object (or the combination of the configuration states of the scene objects) in the target scene according to the corresponding relationship.
Illustratively, if the target scene is a laboratory in a simulated scene, the values of the scene objects Type1_ ICU, type1_ ModBus, and Type1_ Capture are obtained as 1,0, and 1, respectively.
S305, executing the platform code under the updated scene configuration combination to switch to the target scene.
The computer device executes the platform code under the updated scene configuration combination, so that the target scene can be switched to without changing or recompiling the platform code.
Through the corresponding relation between the scene and the scene configuration combination, the configuration state of the scene object under the target scene can be quickly and correspondingly obtained according to the target scene, the switching is easier, and the operation is simple.
An embodiment of the present application further provides a computer device, where the computer device includes: one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor for performing the steps of the scene switching method in any of the above-described scene switching method embodiments.
The embodiment of the present application further provides a computer device, as shown in fig. 4, which shows a schematic structural diagram of the computer device according to the embodiment of the present application, specifically:
the computer apparatus may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input device 404. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 4 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the computer device, connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the computer device as a whole.
Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The computer device further comprises a power supply 403 for supplying power to the respective components, and optionally, the power supply 403 may be logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, power consumption, and the like are implemented through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The computer device may also include an input device 404, the input device 404 being operable to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the computer device may further include a display device 405 and the like, and the display device 405 may be a display, which is not described in detail herein. Specifically, in this embodiment, the processor 401 in the computer device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions as follows:
constructing a scene configuration combination, wherein the scene configuration combination comprises scene objects corresponding to configuration targets, each scene object has at least two configuration states, and the combination of the configuration states of the scene objects is used for determining different scenes; acquiring the configuration state of the scene object in a target scene to update the scene configuration combination, wherein the target scene is one of the different scenes; and executing the updated platform code under the scene configuration combination to switch to the target scene.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, and the instructions may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a computer-readable storage medium, which may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and the like. The system comprises a processor, a storage medium and a computer program stored thereon, wherein the computer program is loaded by the processor to execute the steps of any one of the scene switching methods provided by the embodiments of the present application. For example, the computer program may be loaded by a processor to perform the steps of:
constructing a scene configuration combination, wherein the scene configuration combination comprises scene objects corresponding to configuration targets, each scene object has at least two configuration states, and the combination of the configuration states of the scene objects is used for determining different scenes; acquiring the configuration state of the scene object in a target scene to update the scene configuration combination, wherein the target scene is one of the different scenes; and executing the updated platform code under the scene configuration combination to switch to the target scene.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed descriptions of other embodiments, and are not described herein again.
In specific implementation, the above structures may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementations of the above structures may refer to the foregoing method embodiments, which are not described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The above detailed description is given of a scene switching method, a scene switching apparatus, a computer device, and a readable storage medium provided in the embodiments of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for scene change, the method comprising:
constructing a scene configuration combination, wherein the scene configuration combination comprises scene objects corresponding to configuration targets, each scene object has at least two configuration states, and the combination of the configuration states of the scene objects is used for determining different scenes;
acquiring the configuration state of the scene object in a target scene to update the scene configuration combination, wherein the target scene is one of the different scenes;
and executing the updated platform code under the scene configuration combination to switch to the target scene.
2. The method according to claim 1, wherein the scene object comprises a first type of scene object and/or a second type of scene object, wherein the configuration status of the first type of scene object is used for indicating whether the configuration target is physical hardware or non-physical hardware, and the configuration status of the second type of scene object is used for indicating the property of the configuration target.
3. The method of claim 2, wherein the obtaining the configuration status of the scene object in the target scene comprises:
and under the condition that the target scene is a real machine scene, acquiring the configuration state of the first type of scene object, wherein the configuration state of the first type of scene object indicates that the configuration target is entity hardware.
4. The method according to claim 3, wherein the scene object of the first configuration target corresponding to the scene object of the first type further includes the scene object of the second type, and the obtaining the configuration state of the scene object in the target scene further includes:
and acquiring a second configuration state of the second type of scene object corresponding to the first configuration target, wherein the second configuration state is used for indicating that the attribute of the first configuration target is a target attribute.
5. The method of claim 2, wherein the obtaining the configuration state of the scene object in the target scene comprises:
and acquiring the configuration states of the first type of scene objects under the condition that the target scene is a simulated scene, wherein at least one configuration state in the configuration states of the first type of scene objects indicates that the configuration target is non-entity hardware.
6. The method of claim 1, wherein the obtaining the configuration state of the scene object in the target scene comprises:
constructing a corresponding relation between a scene and a combination of configuration states of the scene objects in the scene configuration combination;
acquiring a target scene;
and acquiring the configuration state of the scene object in the target scene according to the corresponding relation.
7. Method according to claim 1, wherein the scene objects of the first type are generated by a producer mode and the scene objects of the second type are generated by a factory mode.
8. The method of claim 1, wherein the method is applied in an image-guided system for radiation therapy.
9. A computer device, characterized in that the computer device comprises:
one or more processors;
a memory; and
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the scene switching method of any one of claims 1 to 8.
10. A computer-readable storage medium, having stored thereon a computer program which is loaded by a processor to perform the steps in the scene switching method of any one of claims 1 to 8.
CN202210756601.XA 2022-06-29 2022-06-29 Scene switching method, computer device and readable storage medium Pending CN115220809A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210756601.XA CN115220809A (en) 2022-06-29 2022-06-29 Scene switching method, computer device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210756601.XA CN115220809A (en) 2022-06-29 2022-06-29 Scene switching method, computer device and readable storage medium

Publications (1)

Publication Number Publication Date
CN115220809A true CN115220809A (en) 2022-10-21

Family

ID=83609541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210756601.XA Pending CN115220809A (en) 2022-06-29 2022-06-29 Scene switching method, computer device and readable storage medium

Country Status (1)

Country Link
CN (1) CN115220809A (en)

Similar Documents

Publication Publication Date Title
US10809981B2 (en) Code generation and simulation for graphical programming
US9875442B2 (en) Method, apparatus, and artificial intelligence editor for implementing artificial intelligence behavior
CN115983173B (en) Register model generation method, device, computer equipment and storage medium
CN111111201B (en) Skill creation method, device, server and medium based on game
US10430222B2 (en) Cloud based platform simulation for management controller development
WO2018201615A1 (en) Testing method and system for use with battery management unit
US10042666B2 (en) Platform simulation for management controller development on virtual machines
US20230128809A1 (en) Efficient fuzz testing of low-level virtual devices
CN102981949A (en) Method for on-line automatic tests of server
CN111123737A (en) Digital hardware virtual simulation system
CN115184764A (en) Chip testing method and device, electronic equipment and storage medium
JP2017084082A (en) Simulation device, test scenario file creation method, and test method using test scenario file
EP3296875A1 (en) Simulation reproduction device, simulation reproduction method, and simulation reproduction program
CN114647519A (en) Data transmission method and device between native platform and Flutter platform and storage medium
CN115220809A (en) Scene switching method, computer device and readable storage medium
CN110865937B (en) Application testing method, device and storage medium
CN112465116B (en) Compiling method, operation method, electronic device, and storage medium
CN113434421A (en) Virtual equipment testing method and device
CN112286826B (en) VTS test method and device, storage medium and computer equipment
US20180018002A1 (en) Thermal simulation for management controller development projects
CN112256243B (en) Behavior customization method, apparatus, device and storage medium
CN113760750B (en) Intelligent device testing method and device, electronic device and storage medium
TW201423592A (en) Rack and method for updating basic input output systems at the time thereof
CN113625968B (en) File authority management method and device, computer equipment and storage medium
CN111782442B (en) Device exception handling method, system, electronic device 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