Mutually exclusive logic verification method, device, equipment and storage medium

By configuring and verifying the logical parameters of device functions, the mutually exclusive logical relationship of device functions is determined, which solves the high cost problem caused by the complexity of mutually exclusive logic between device functions and achieves efficient mutually exclusive logic verification.

CN111858109BActive Publication Date: 2024-09-13CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010712683.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-22
Publication Date
2024-09-13
Estimated Expiration
2040-07-22

AI Technical Summary

Technical Problem

As equipment becomes more intelligent and functional complexity increases, the mutually exclusive logical relationships between equipment functions become complex, resulting in manual troubleshooting that consumes a lot of manpower and time.

Method used

By configuring multiple logical parameters required for device functions, configuring the first logical relationship of the device function based on these parameters, and determining the mutually exclusive logical relationship through the verification results, generating a mutually exclusive verification report, improving the efficiency of mutually exclusive logic verification and reducing manpower and time costs.

Benefits of technology

It achieves efficient verification of mutually exclusive logic of device functions, reduces labor and time costs, and improves the efficiency of mutually exclusive logic verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111858109B
    Figure CN111858109B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a mutually exclusive logic verification method, apparatus, device and storage medium. It includes: configuring multiple logical parameters required for device functions; configuring a first logical relationship corresponding to the device functions according to the logical parameters; the first logical relationship is used to characterize the conditions under which the device functions can be realized, including at least one logical parameter and the value of the at least one logical parameter; verifying the first logical relationship according to the multiple logical parameters to obtain a verification result; determining a mutually exclusive logical relationship according to the verification result. The mutually exclusive logic verification method provided in this embodiment determines a mutually exclusive logical relationship according to the verification result of the configured first logical relationship based on multiple logical parameters to realize the verification of the mutually exclusive logic of the device functions, which can improve the efficiency of mutually exclusive logic verification and reduce labor costs and time costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of device control technology, and in particular to a mutually exclusive logic verification method, apparatus, device and storage medium. Background Art

[0002] With the popularization of intelligent devices, the functions of intelligent devices are increasing. There are mutually exclusive relationships between the functions of devices, and the mutually exclusive logic between functions is becoming more and more complex. In order to ensure that the mutually exclusive constraint relationship between each function is accurate, it is necessary to verify whether the logical relationship of each function is mutually exclusive.

[0003] Mutually exclusive logical relationships become more and more complex as device functions are upgraded. Manual troubleshooting will consume a lot of manpower and time costs. Summary of the invention

[0004] The embodiments of the present invention provide a mutually exclusive logic verification method, apparatus, device and storage medium to implement verification of mutually exclusive logic of device functions, which can improve the efficiency of mutually exclusive logic verification and reduce labor costs and time costs.

[0005] In a first aspect, an embodiment of the present invention provides a mutually exclusive logic verification method, comprising:

[0006] Configure multiple logical parameters required for device functionality;

[0007] configuring a first logical relationship corresponding to a device function according to the logical parameter; the first logical relationship is used to characterize a condition under which the device function can be realized, including at least one logical parameter and a value of the at least one logical parameter;

[0008] Verifying the first logical relationship according to the multiple logical parameters to obtain a verification result;

[0009] Determine the mutually exclusive logical relationship based on the verification results.

[0010] Furthermore, the logic parameter includes parameter information and a value range of the parameter.

[0011] Further, verifying the first logical relationship according to the multiple logical parameters to obtain a verification result includes:

[0012] Arrange and combine the multiple logic parameters according to the value range of the parameters to form multiple second logical relationships;

[0013] The first logical relationship is verified according to the second logical relationship to obtain a verification result.

[0014] Furthermore, the mutually exclusive logical relationship is determined according to the verification result, including:

[0015] If the verification results of the first logical relationships of at least two device functions for the same second logical relationship are both achievable, then the second logical relationship is mutually exclusive logic.

[0016] Further, after determining the mutually exclusive logical relationship according to the verification result, it includes:

[0017] A mutual exclusion verification report is generated according to the mutual exclusion logical relationship.

[0018] In a second aspect, an embodiment of the present invention further provides a mutually exclusive logic verification device, including:

[0019] A logic parameter configuration module, used to configure multiple logic parameters required for device functions;

[0020] a first logic relationship configuration module, configured to configure a first logic relationship corresponding to a device function according to the logic parameter; the first logic relationship is used to characterize a condition under which the device function can be realized, including at least one logic parameter and a value of the at least one logic parameter;

[0021] A verification result acquisition module, used to verify the first logical relationship according to the multiple logical parameters to obtain a verification result;

[0022] The mutually exclusive logical relationship determination module is used to determine the mutually exclusive logical relationship according to the verification result.

[0023] Furthermore, the logic parameter includes parameter information and a value range of the parameter.

[0024] Furthermore, the verification result acquisition module is also used to:

[0025] Arrange and combine the multiple logic parameters according to the value range of the parameters to form multiple second logical relationships;

[0026] The first logical relationship is verified according to the second logical relationship to obtain a verification result.

[0027] In a third aspect, an embodiment of the present invention further provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the mutual exclusion logic verification method as described in the embodiment of the present invention is implemented.

[0028] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processing device, implements the mutual exclusion logic verification method as described in the embodiment of the present invention.

[0029] In the embodiment of the present invention, multiple logical parameters required for the device function are first configured, and then the first logical relationship corresponding to the device function is configured according to the logical parameters, and then the first logical relationship is verified according to the multiple logical parameters to obtain a verification result, and finally the mutually exclusive logical relationship is determined according to the verification result. The mutually exclusive logic verification method provided in this embodiment determines the mutually exclusive logical relationship according to the verification result of the configured first logical relationship based on multiple logical parameters, so as to realize the verification of the mutually exclusive logic of the device function, which can improve the efficiency of the mutually exclusive logic verification and reduce the manpower cost and time cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a flowchart of a mutually exclusive logic verification method in Embodiment 1 of the present invention;

[0031] Figure 2 It is a structural diagram of a mutually exclusive logic verification device in Embodiment 2 of the present invention;

[0032] Figure 3 It is a structural diagram of a computer device in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0033] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0034] Embodiment 1

[0035] Figure 1 This is a flowchart of a mutually exclusive logic verification method provided in the first embodiment of the present invention. This embodiment is applicable to the case where the mutually exclusive logic of the device function is verified. The method can be executed by a mutually exclusive logic verification device, which can be composed of hardware and / or software and can generally be integrated in a device with a mutually exclusive logic verification function, which can be an electronic device such as a server or a server cluster. Figure 1 As shown, the method specifically comprises the following steps:

[0036] Step 110: configure multiple logic parameters required for device functions.

[0037] The logical parameters include parameter information and parameter value ranges. A device can realize multiple functions, and the realization of each function requires at least one logical parameter to meet certain conditions. For example, when the vehicle needs to realize a certain function and the logical parameter is "ignition status", it is necessary to configure a logical parameter of "ignition status", and the values ​​of ignition status include "0" and "1", "1" means ignition, and "0" means no ignition.

[0038] Step 120: configuring a first logical relationship corresponding to the device function according to the logical parameter.

[0039] The first logical relationship is used to characterize the conditions under which the device function can be realized, including at least one logical parameter and the value of at least one logical parameter.

[0040] In this embodiment, the device needs to realize a certain function only when the current logic parameters form a certain logical relationship. For example, for the warm reminder function of the air conditioning system in the vehicle, the warm reminder function can only take effect after the power is turned on, the cooling mode is on, the temperature is greater than 26 degrees, and the warm reminder function is turned on.

[0041] Step 130: verify the first logical relationship according to a plurality of logical parameters to obtain a verification result.

[0042] Specifically, the first logical relationship is verified according to multiple logical parameters, and the verification result can be obtained by: arranging and combining multiple logical parameters according to the value range of the parameters to form multiple second logical relationships; verifying the first logical relationship according to the second logical relationships to obtain the verification result.

[0043] The second logical relationship includes at least two logical parameters and the values ​​of each logical parameter. For example, assuming that the configured logical parameters include 5 and the value range of each logical parameter includes two, the second logical relationship formed by the arrangement and combination includes 10. Each second logical parameter is sequentially input into each mutually exclusive first logical relationship to be verified, and logical verification is performed to obtain a verification result.

[0044] The verification result includes whether the second logical relationship enables the device function to be realized and whether the second logical relationship makes the device function unrealizable.

[0045] Step 140: Determine the mutually exclusive logical relationship according to the verification result.

[0046] Specifically, the process of determining the mutually exclusive logical relationship according to the verification result may be: if the verification results of the first logical relationship of at least two device functions for the same second logical relationship are both achievable, then the second logical relationship is a mutually exclusive logic.

[0047] Optionally, after determining the mutually exclusive logical relationship according to the verification result, the following step is also included: generating a mutually exclusive verification report according to the mutually exclusive logical relationship.

[0048] Among them, the mutually exclusive verification report can serve as a data basis for improving and optimizing the design of equipment functions.

[0049] The technical solution of this embodiment first configures multiple logical parameters required for the device function, then configures the first logical relationship corresponding to the device function according to the logical parameters, then verifies the first logical relationship according to the multiple logical parameters to obtain a verification result, and finally determines the mutually exclusive logical relationship according to the verification result. The mutually exclusive logic verification method provided in this embodiment determines the mutually exclusive logical relationship according to the verification result of the configured first logical relationship based on multiple logical parameters to realize the verification of the mutually exclusive logic of the device function, which can improve the efficiency of the mutually exclusive logic verification and reduce the manpower cost and time cost.

[0050] Embodiment 2

[0051] Figure 2 This is a schematic diagram of the structure of a mutually exclusive logic verification device provided by the second embodiment of the present invention. Figure 2 As shown, the device includes: a logic parameter configuration module 210, a first logic relationship configuration module 220, a verification result acquisition module 230 and a mutually exclusive logic relationship determination module 240.

[0052] A logic parameter configuration module 210, used to configure a plurality of logic parameters required for device functions;

[0053] A first logic relationship configuration module 220, configured to configure a first logic relationship corresponding to a device function according to a logic parameter; the first logic relationship is used to characterize conditions under which the device function can be realized, including at least one logic parameter and at least one value of the logic parameter;

[0054] A verification result acquisition module 230, configured to verify the first logical relationship according to a plurality of logical parameters to obtain a verification result;

[0055] The mutually exclusive logical relationship determination module 240 is used to determine the mutually exclusive logical relationship according to the verification result.

[0056] Optionally, the logical parameter includes parameter information and a value range of the parameter.

[0057] Optionally, the verification result acquisition module 230 is further used to:

[0058] Arrange and combine multiple logic parameters according to the value range of the parameters to form multiple second logic relationships;

[0059] The first logical relationship is verified according to the second logical relationship to obtain a verification result.

[0060] Optionally, the mutually exclusive logical relationship determination module 240 is further configured to:

[0061] If the verification results of the first logical relationships of at least two device functions for the same second logical relationship are both achievable, then the second logical relationship is mutually exclusive logic.

[0062] Optionally, it also includes: a mutually exclusive verification report generation module, which is used to:

[0063] Generate a mutual exclusion verification report based on the mutual exclusion logical relationship.

[0064] The above device can execute the methods provided by all the above embodiments of the present invention, and has the corresponding functional modules and beneficial effects of executing the above methods. For technical details not described in detail in this embodiment, please refer to the methods provided by all the above embodiments of the present invention.

[0065] Embodiment 3

[0066] Figure 3 A schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention. Figure 3 A block diagram of a computer device 312 suitable for use in implementing embodiments of the present invention is shown. Figure 3 The computer device 312 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention. The device 312 is a typical computing device for verification of mutual exclusion logic.

[0067] like Figure 3 As shown, the computer device 312 is in the form of a general-purpose computing device. The components of the computer device 312 may include, but are not limited to: one or more processors 316, a storage device 328, and a bus 318 connecting different system components (including the storage device 328 and the processor 316).

[0068] Bus 318 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0069] The computer device 312 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 312, including volatile and non-volatile media, removable and non-removable media.

[0070] The storage device 328 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 330 and / or cache memory 332. The computer device 312 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 334 may be used to read and write non-removable, non-volatile magnetic media ( Figure 3 not shown, usually called a "hard drive"). Although Figure 3 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a read-only optical disk (Compact Disc-Read Only Memory, CD-ROM), a digital video disk (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical media) may be provided. In these cases, each drive may be connected to the bus 318 via one or more data medium interfaces. The storage device 328 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0071] A program 336 having a set (at least one) of program modules 326 may be stored, for example, in a storage device 328, such program modules 326 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 326 generally perform the functions and / or methods of the embodiments described herein.

[0072] The computer device 312 may also communicate with one or more external devices 314 (e.g., keyboard, pointing device, camera, display 324, etc.), may also communicate with one or more devices that enable a user to interact with the computer device 312, and / or communicate with any device that enables the computer device 312 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 322. In addition, the computer device 312 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through a network adapter 320. As shown, the network adapter 320 communicates with other modules of the computer device 312 through a bus 318. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in conjunction with the computer device 312, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk arrays (Redundant Arrays of Independent Disks, RAID) systems, tape drives, and data backup storage systems.

[0073] The processor 316 executes various functional applications and data processing by running the programs stored in the storage device 328, such as implementing the mutual exclusion logic verification method provided in the above embodiment of the present invention.

[0074] Embodiment 4

[0075] The embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processing device, a verification method of mutually exclusive logic in the embodiment of the present invention is implemented. The above-mentioned computer-readable medium of the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0076] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0077] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0078] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: receives a source text input by a user, translates the source text into a target text corresponding to a target language; obtains the user's historical correction behavior; corrects the target text according to the historical correction behavior, obtains a translation result, and pushes the translation result to the client where the user is located.

[0079] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0080] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0081] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.

[0082] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0083] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0084] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A verification method for mutually exclusive logic, characterized in that: include: Configure multiple logical parameters required for device functionality; configuring a first logical relationship corresponding to a device function according to the logical parameter; The first logical relationship is used to characterize the conditions under which the device function can be realized, including at least one logical parameter and a value of the at least one logical parameter; Verifying the first logical relationship according to the multiple logical parameters to obtain a verification result; Determine mutually exclusive logical relationships based on verification results; The logic parameters include parameter information and parameter value range; Verifying the first logical relationship according to the multiple logical parameters to obtain a verification result includes: Arrange and combine the multiple logic parameters according to the value range of the parameters to form multiple second logical relationships; Verifying the first logical relationship according to the second logical relationship to obtain a verification result; The verifying the first logical relationship according to the second logical relationship to obtain a verification result includes: Each second logic parameter is sequentially input into each of the first logic relations to be verified to be mutually exclusive, and logic verification is performed to obtain a verification result.

2. The method according to claim 1, characterized in that: Determine mutually exclusive logical relationships based on the verification results, including: If the verification results of the first logical relationships of at least two device functions for the same second logical relationship are both achievable, then the second logical relationship is mutually exclusive logic.

3. The method according to any one of claims 1-2, characterized in that: After determining the mutually exclusive logical relationship based on the verification results, it also includes: A mutual exclusion verification report is generated according to the mutual exclusion logical relationship.

4. A mutually exclusive logic verification device, characterized in that: include: A logic parameter configuration module, used to configure multiple logic parameters required for device functions; A first logic relationship configuration module, used to configure a first logic relationship corresponding to a device function according to the logic parameter; The first logical relationship is used to characterize the conditions under which the device function can be realized, including at least one logical parameter and a value of the at least one logical parameter; A verification result acquisition module, used to verify the first logical relationship according to the multiple logical parameters to obtain a verification result; A mutually exclusive logical relationship determination module, used to determine the mutually exclusive logical relationship according to the verification result; The logic parameters include parameter information and parameter value range; The verification result acquisition module is further used for: Arrange and combine the multiple logic parameters according to the value range of the parameters to form multiple second logical relationships; Verifying the first logical relationship according to the second logical relationship to obtain a verification result; The verifying the first logical relationship according to the second logical relationship to obtain a verification result includes: Each second logic parameter is sequentially input into each of the first logic relations to be verified to be mutually exclusive, and logic verification is performed to obtain a verification result.

5. A computer device, characterized in that: The device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the mutual exclusion logic verification method as claimed in any one of claims 1 to 3 when executing the program.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processing device, the verification method of the mutual exclusion logic as described in any one of claims 1 to 3 is implemented.