Disclosure of Invention
The invention aims to provide an identification method supporting urban digital twin CPS interaction, which can solve the problem of CPS system interaction obstacle of independent construction of different units in urban construction.
The technical scheme of the invention is as follows:
in a first aspect, the present application provides an identification method supporting urban digital twin CPS interaction, which includes the following steps:
constructing a CPS twin and an operation platform supporting the interaction of the CPS twin, and registering and setting the identification of the CPS twin on the operation platform;
the CPS twin body which is registered and provided with the identification is released to the outside through an event release interface of the operation platform;
sending an event subscription interest through an event subscription interface of the operating platform;
calling an event acceptance interface of the related CPS twin according to the external published events and the event subscription interests;
and accurately delivering the received external published event to the subscriber of the event according to the called event receiving interface.
Further, the method for constructing the CPS twin and the operation platform supporting the CPS twin interaction comprises the following steps:
acquiring CPS systems constructed by different units of a city;
and constructing a CPS twin and a running platform supporting CPS twin interaction according to CPS systems constructed by different units.
Further, the identification of the CPS twin includes a CPS class identification designated as a unique class and a CPS instance identification designated as a unique CPS instance identification, the CPS class identification includes a type of the CPS twin, the CPS instance identification is basic information of the CPS twin, and the basic information includes a type and a position of the CPS twin.
Further, the registered and set identified CPS twin is subjected to data sharing to other identified CPS twins while an event is issued to the outside through an event issuing interface of the running platform.
Further, the data sharing mode is that one CPS twin actively requests other CPS twins to acquire an event and shares own events at the same time.
Further, when the CPS twin actively requests other CPS twins to acquire an event and simultaneously shares the event, the CPS twins receiving the event in the other CPS twins respond.
In a second aspect, the present application provides an electronic device, comprising:
a memory for storing one or more programs;
a processor;
the one or more programs, when executed by the processor, implement the method of any of the first aspects as described above.
In a third aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of the first aspects as described above.
Compared with the prior art, the invention has at least the following advantages or beneficial effects:
(1) the invention provides an identification method supporting urban digital twin CPS interaction, which enables CPS systems independently constructed by different urban units to interact by constructing an operation platform of a CPS twin, realizes mutual broadcasting and monitoring and analyzing of attributes of the CPS twin among a plurality of CPS twins in a city, solves the problem that the plurality of CPS twins cannot be found mutually, and further realizes efficient management of the city;
(2) the method can define the identification rule of the CPS twin body by setting the identification, solves the problem of single coding of the CPS twin body, and can identify basic information such as the type, the position and the like of the CPS twin body through the identification;
(3) the invention can realize a communication routing mechanism and solve the problems of interactive data forwarding and message directional broadcasting mechanism during the interaction between the CPS twin bodies;
(4) the interface protocol, the interface type and the data type of interaction between the CPS twins can be defined by constructing a running platform of the CPS twins, and the problems of interoperation between the CPS twins and interaction of shared data are solved.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, as generally described and illustrated in the figures herein, could be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, as presented in the figures, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. 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.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures.
It should be noted that, in this document, the term "comprises/comprising" or any other variation thereof is intended to cover a non-exclusive inclusion, so that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but also other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
In the description of the present application, it is also to be noted that, unless otherwise explicitly specified or limited, the terms "disposed" and "connected" are to be interpreted broadly, e.g., as being either fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in this application will be understood to be a specific case for those of ordinary skill in the art.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the individual features of the embodiments can be combined with one another without conflict.
Example 1
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for identifying a city digital twin CPS in an embodiment of the present application.
The identification method supporting urban digital twin CPS interaction provided by the embodiment 1 of the application comprises the following steps:
constructing a CPS twin and an operation platform supporting the interaction of the CPS twin, and registering and setting the identification of the CPS twin on the operation platform;
the CPS twin body which is registered and set with the identification is released to the outside through an event release interface of the operation platform;
sending an event subscription interest through an event subscription interface of the operating platform;
calling an event acceptance interface of the related CPS twin according to the external published events and the event subscription interests;
and accurately delivering the received external published event to the subscriber of the event according to the called event receiving interface.
When a CPS constructor constructs or develops a CPS twin, an identifier of the CPS twin can be registered in an operation platform, and the operation platform is responsible for carrying out full life cycle management on the CPS twin; in addition, in this embodiment 1, the operation platform uses the Web URI for identification, and each city can specify its own URI identification.
It should be noted that, a subscriber of an event actively calls an event subscription interface of the running platform to express subscription interest to the running platform, any CPS twin can call an event publishing interface of the running platform to publish the event to the outside through the running platform when needed, and the running platform calls an event receiving interface of a target CPS twin according to the known event subscription interest, so that the received published event can be accurately submitted to all subscribers of the event.
As a preferred embodiment, the method for constructing the CPS twins and the operation platform for supporting the CPS twins comprises the following steps:
acquiring CPS systems constructed by different units of a city;
and constructing a CPS twin and a running platform supporting CPS twin interaction according to CPS systems constructed by different units.
As a preferred embodiment, the identification of the CPS twins includes a CPS class identification designated as a unique class including the type of the CPS twins and a CPS instance identification designated as a unique CPS instance identification, the CPS instance identification being basic information of the CPS twins, the basic information including the type and location of the CPS twins.
It should be noted that, when an instance is created and deployed for a CPS (twin) class manually or automatically, an identifier must be provided for the CPS (twin) instance, the CPS instance registers its identifier with an operating platform when it runs and initializes itself, and the operating platform is responsible for performing full-life-cycle management on the CPS instance; in addition, the CPS instance identification must be a unique, complete identification.
As a preferred embodiment, the registered and set identified CPS twins publish events to the outside through the event publishing interface of the running platform while sharing data to other identified CPS twins.
Therefore, in CPS twin operation, business logics such as city operation situation analysis, prediction, optimization and the like can be realized by sharing data of other CPS twins through data.
As a preferred embodiment, the data sharing is performed in such a way that one CPS twin actively requests all other CPS twins to acquire an event and simultaneously shares its own event.
As a preferred embodiment, when a CPS twin actively requests an event from all other CPS twins and simultaneously shares its own event, the CPS twins that received the event among all other CPS twins will respond.
Therefore, cooperation among different subsystems of the smart city can be realized by enabling CPS twin receiving an event to respond.
It should be noted that events are aperiodic data, and perform two functions: firstly, when a CPS twin body enters a certain state in the running process and needs to be informed of external attention or response, an event is constructed and issued; and through analysis and judgment, certain CPS twin bodies are considered to be required to be appointed to execute specific actions so as to realize coordination, and action instructions are issued in an event mode.
Example 2
Referring to fig. 2, fig. 2 is a schematic structural block diagram of an electronic device according to embodiment 2 of the present application.
An electronic device comprises a memory 101, a processor 102 and a communication interface 103, wherein the memory 101, the processor 102 and the communication interface 103 are electrically connected with each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 101 may be used to store software programs and modules, and the processor 102 executes the software programs and modules stored in the memory 101 to thereby execute various functional applications and data processing. The communication interface 103 may be used for communicating signaling or data with other node devices.
The Memory 101 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 102 may be an integrated circuit chip having signal processing capabilities. The Processor 102 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It will be appreciated that the structure shown in the figures is merely illustrative and that an identification method that supports urban digital twin CPS interaction may also include more or fewer components than shown in the figures, or have a different configuration than shown in the figures. The components shown in the figures may be implemented in hardware, software, or a combination thereof.
In the embodiments provided in the present application, it should be understood that the disclosed system or method may also be implemented in other manners. The embodiments described above are merely illustrative, and the flowcharts and block diagrams in the figures, for example, illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In summary, according to the identification method supporting urban digital twin CPS interaction provided by the embodiment of the application, the CPS systems independently built by different urban units are interacted by constructing the operating platform of the CPS twin, the mutual broadcasting and the monitoring and analyzing of the attributes of the CPS twin among a plurality of CPS twins are realized, the problem that the plurality of CPS twins cannot be found mutually is solved, the identification rule of the CPS twin is defined by setting an identification, and the basic information such as the type and the position of the CPS twin can be identified by the identification.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.