WO2024002296A1 - 一种孪生、订阅目标对象的历史状态的方法及装置 - Google Patents
一种孪生、订阅目标对象的历史状态的方法及装置 Download PDFInfo
- Publication number
- WO2024002296A1 WO2024002296A1 PCT/CN2023/104174 CN2023104174W WO2024002296A1 WO 2024002296 A1 WO2024002296 A1 WO 2024002296A1 CN 2023104174 W CN2023104174 W CN 2023104174W WO 2024002296 A1 WO2024002296 A1 WO 2024002296A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- sub
- object model
- target
- model
- target object
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 136
- 230000008859 change Effects 0.000 claims description 37
- 238000012545 processing Methods 0.000 claims description 16
- 230000004044 response Effects 0.000 claims description 11
- 238000003860 storage Methods 0.000 claims description 4
- 230000002123 temporal effect Effects 0.000 claims description 3
- 238000007726 management method Methods 0.000 description 26
- 238000010586 diagram Methods 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000012217 deletion Methods 0.000 description 3
- 230000037430 deletion Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000005728 strengthening Methods 0.000 description 3
- 238000003672 processing method Methods 0.000 description 2
- 230000000717 retained effect Effects 0.000 description 2
- 238000000926 separation method Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 238000009776 industrial production Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/36—Creation of semantic tools, e.g. ontology or thesauri
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/53—Querying
- G06F16/532—Query formulation, e.g. graphical querying
Definitions
- This application relates to the field of data processing technology, specifically to a method and device for twinning and subscribing to the historical status of a target object.
- This application provides a method and device for twinning and subscribing to the historical status of a target object, so as to realize a digital twin of the historical status of the target object.
- this application provides a method for twinning the historical status of a target object.
- the method includes: establishing a target object model and at least one sub-object model for the target object and at least one sub-object attached to the target object; Wherein, the target object model is used to describe the target object, the at least one sub-object model is used to describe the at least one sub-object, and both the target object model and the at least one sub-object model include time attributes; Set the value of the time attribute in the target object model and the at least one sub-object model to a first historical time, where the first historical time is used to indicate that the target object model and the at least one sub-object model are The time corresponding to the data in the object model; establishing a first association relationship between the target object model and the at least one sub-object model, the first association relationship is used to associate the at least one sub-object model to the target object Model.
- various target objects can be digitally twinned according to the conditions of the target objects to obtain their corresponding object models.
- the user can be provided with information about each object and realize the target Digital management of objects.
- the time corresponding to each historical data in the object model is recorded through the time attribute, making the information stored in the object model more accurate and comprehensive.
- you can also create associations between object models based on the hierarchical relationships between objects in reality. In this way, through the associations between object models, the user is provided with information about the relationships between objects in reality, which improves the user experience. Efficiency in managing target objects.
- the target object includes a first target entity object, and the sub-object includes a sub-entity object; or the target object includes a target event, and the sub-object includes a sub-event.
- the first historical time is at least one moment before the current moment or at least one duration period before the current moment.
- users can learn the time corresponding to each historical data through the time attribute in the object model, thereby more clearly obtaining the historical status of the target object corresponding to the object model and its corresponding information, and strengthening the understanding of the target object information. manage.
- the target object includes a target event
- the sub-object includes a sub-event
- the value of the time attribute in the at least one sub-object model is within the range of the value of the time attribute in the target object model.
- the first association relationship is used to indicate that the target object model and the at least one child object model are in a parent-child relationship.
- connection between models is strengthened through the first association relationship, and the efficiency of model management is improved.
- establishing the first association relationship between the target object model and the at least one child object model includes: identifying the target object model as a parent object model, and identifying the at least one child object model as belonging to the Describes the child object model of the parent object model.
- the target object model and the at least one sub-object model also include a model identifier, and the model identifier is used to uniquely identify the The target object model and the at least one child object model.
- each model has its own system-wide unique model identifier, which enables accurate search of the model during subsequent access and improves the efficiency of model management.
- the target object model and the at least one sub-object model also include member attributes, and the member attributes are used to describe user-defined data.
- the target object includes a first target entity object
- the sub-object includes a sub-entity object
- the target object model and the at least one sub-object model also include spatial attributes
- the spatial attributes are used to describe One or more of the following information of the target object model and the at least one sub-object model: coordinate system information, geometric shape information, spatial position information, spatial rotation angle information, and spatial range information.
- the object when the object includes physical objects, spatial attributes are added to the model to make the physical object information contained in the object model more comprehensive and complete.
- the correlation between object models is based on the above-mentioned spatial attributes, which makes the connection between each object model closer and helps to implement management operations such as quick search based on the object model.
- the spatial attributes include the spatial range information, which is used to describe the spatial range where the target object model and the at least one sub-object model are located; wherein the at least one sub-object model The spatial range in does not exceed the spatial range of the target object model.
- the method further includes: establishing a first coordinate system in the target object model, and establishing a second coordinate system in the first sub-object model, where the first sub-object model is the at least one sub-object.
- One of the models, the origin of the second coordinate system is determined based on the origin of the first coordinate system; the spatial position of the target object model and the at least one sub-object model is determined based on the first coordinate system information; or, determine the spatial position information of the target object model according to the first coordinate system, and determine the spatial position information of the at least one sub-object model according to the second coordinate system; according to the first coordinate system Determine the geometric shape information of the target object model and the at least one sub-object model; or determine the geometric shape information of the target object model according to the first coordinate system, and determine the geometric shape information according to the second coordinate system. Geometry information of the first sub-object model.
- the spatial attributes of various models after assignment That is to say, it maintains the built-in association relationship and also has a certain degree of independence, which improves the degree of refined management of the object model.
- the spatial attributes include the spatial location information
- the target object model and the at least one sub-object model also include location attributes
- the method further includes: when the spatial location information of the target object When a change occurs, the change in the spatial position information is saved to the position attribute in the target object model; the position attribute is used to describe the position change of the target object at least one moment before the current moment, or, in Position changes for at least one duration before the current moment.
- the position changes of the object are recorded through the position attribute, which improves the data retained in the object model and improves the refinement of the management of the object model.
- the method further includes: when the spatial position of the second sub-object does not fall within the spatial range of the target object, updating the second sub-object model corresponding to the second sub-object and the target object model. the first association relationship, and update the spatial attributes and temporal attributes of the second sub-object model; wherein the second sub-object is one of the at least one sub-object.
- the association relationship of the model corresponding to the object is updated in a timely manner to ensure the effectiveness of the target object management through the model.
- the method further includes: using the target object model and the at least one sub-object model, generating at least one moment before the current moment or at least one duration period before the current moment, the The parent object record corresponding to the target object model and the child object record corresponding to the at least one child object model; wherein the parent object record is used to describe the target object at least one moment before the current moment or the current moment The attribute status in at least one duration period before; the sub-object record is used to describe the attribute status of the at least one sub-object in at least one moment before the current moment or at least one duration period before the current moment.
- the corresponding object record is generated through the model, so that the user can obtain unified and standardized historical status information about the target object, which improves the user experience and reduces the complexity of obtaining information.
- the method further includes: establishing a second association relationship between the parent object record and the at least one child object record, the second association relationship being used to associate the at least one child object record to the Parent object records; where each child object record has a unique parent object record, the parent Both the object record and the at least one child object record include a time range, and the time range of the child object record is within the parent object record time range.
- the generated parent object records and child object records are connected, which can implement the correlation between object models, strengthen the correlation between models and information, and improve the efficiency of object information management.
- the parent object record and the child object record are used to describe the target object and the at least one child object at least one moment before the current moment or the Change information of the spatial range within at least one duration period before the current moment; at least one moment before the current moment or at least one duration period before the current moment, the sub-object record corresponding to the at least one sub-object
- the spatial extent is contained within the spatial extent of the parent object's record.
- the object record contains the changes in the spatial range of the corresponding object, which can effectively help the user obtain the corresponding information.
- the parent object record and the child object record are used to describe the target object and the at least one child object at least one moment before the current moment or the current moment.
- Change information of spatial position movement within at least one duration period before the current moment; at least one moment before the current moment or at least one duration period before the current moment, the spatial position of the at least one sub-object is included within the spatial range recorded by the parent object.
- the object record contains the spatial position changes of the corresponding object, which can effectively help the user obtain the corresponding information.
- the parent object record and the child object record are used to describe the target object and the at least one child object at least one moment before the current moment or the current moment.
- the object record contains the geometric shape change of the corresponding object, which can effectively help the user obtain the corresponding information.
- the target object includes a target event
- the sub-object includes a sub-event
- the method further includes: establishing a second target entity model for the second target entity, and the second target entity model is In order to describe the historical state of the second target entity object, the second target entity object model includes a time attribute; the value of the time attribute in the target entity object model is determined as the second historical time, and the second target entity object model includes a time attribute.
- the second historical time is used to represent the time corresponding to the data in the second target entity model; a third association relationship between the second target entity model and the target object model is established, and the third association relationship is used to The second target entity model is associated with the target object model.
- a second target entity model associated with the target object model is created, which improves the scheme of twinning the historical status of the event and strengthens the model
- the comprehensiveness of information saved in the system improves the management efficiency of event information.
- the third association relationship is used to indicate that the second target entity model and the target object model have a spatial relationship
- the spatial relationship is used to indicate that the target object corresponding to the target object model occurs where within the spatial range of the second target entity corresponding to the second target entity model.
- the spatial relationship between the object model and the physical object model is displayed through the third association relationship, which strengthens the connection between the models and improves the efficiency of model management.
- the target object includes a target event, and the sub-object includes a sub-event; the target object model and the at least one sub-object model also include spatial attributes, and the spatial attributes are used to describe the target object. and location information when the at least one sub-object occurs.
- the spatial attributes include spatial extent and/or spatial position, wherein the spatial extent of the at least one sub-object model is included in the spatial extent of the target object model, or the at least one sub-object The spatial position of the model is included within the range of the spatial position of the target object model.
- the target object includes a target event
- the sub-object includes a sub-event.
- the method further includes: based on the attribute parameters of the target object at different times in history, based on the target object model corresponding to the time. , generate corresponding target event object records; generate corresponding sub-event object records based on the attribute parameters of the at least one sub-object at different times in history and based on the at least one sub-object model corresponding to the time; wherein, the Attribute parameters include at least one of attribute name, data type, and attribute value.
- the corresponding object record is generated through the model, so that the user can obtain unified and standardized historical status information about the object, which improves the user experience and reduces the complexity of obtaining information.
- the method further includes: establishing a fourth association between the target event object record and the at least one sub-event object record, the fourth association being used to associate the at least one sub-event object record. to the target event object record; wherein each sub-event object record in the at least one sub-event object record has a unique target event object record, and the target event object record is identical to the at least one sub-event object record.
- Each record includes a time range, and the time range recorded by the sub-event object is within the recording time range of the target event object.
- the generated target event object record is connected with the sub-event object record, which can implement the correlation between events, strengthen the correlation between events and information, and improve the efficiency of event information management.
- this application provides a method for subscribing to the historical status of a target object.
- the method includes: establishing a target object model and at least one sub-object model for the target object and at least one sub-object attached to the target object; Wherein, the target object model is used to describe the target object, the at least one sub-object model is used to describe the at least one sub-object, and both the target object model and the at least one sub-object model include time attributes; Set the value of the time attribute in the target object model and the at least one sub-object model to a first historical time, where the first historical time is used to indicate that the target object model and the at least one sub-object model are The time corresponding to the data in the object model; establishing a first association relationship between the target object model and the at least one sub-object model, the first association relationship being used to associate the at least one sub-object model with the target object model; receiving a first request from a terminal device, the first request being used to request a subscription to the historical state of the target object
- the same subscription operation can be performed on at least one associated sub-object model according to the association in the target object model.
- the user only needs to issue an instruction to subscribe to the target object model, and can subscribe to the models associated with the target object model at the same time, and obtain the change information of these models in a timely manner. More comprehensive information can be obtained with simple operations, which improves the intelligence of subscription operations.
- the target object includes a target entity object, and the sub-object includes a sub-entity object; or the target object includes a target event, and the sub-object includes a sub-event.
- the first request carries a subscription item
- the method further includes: when the target object model and/or the at least one sub-object model changes, generating a subscription that matches the subscription item. Information; sending the subscription information to the terminal device.
- the server sends corresponding subscription information to the terminal device based on the subscription item carried in the first request, which can not only meet the user's subscription needs, but also avoid tracking other model information that the user does not care about, and realize the object Delicate management of information.
- the subscription items include one or more of the following: spatial attributes, location attributes, and member attributes.
- the sub-objects include sub-entity objects
- the changes include: sub-object model changes
- the sub-object model changes are used to indicate changes in the number of the at least one sub-object model corresponding to the target object model.
- the present application provides a device for twinning the historical status of a target object.
- the device includes: a creation module for respectively establishing a target object model and at least one sub-object attached to the target object.
- a sub-object model wherein the target object model is used to describe the target object, the at least one sub-object model is used to describe the at least one sub-object, the target object model and the at least one sub-object model Both include a time attribute; a processing module configured to set the value of the time attribute in the target object model and the at least one sub-object model to a first historical time, and the first historical time is used to indicate the The time when the data in the target object model corresponds to the at least one sub-object model; establish a first association relationship between the target object model and the at least one sub-object model, and the first association relationship is used to combine the at least one sub-object model with the target object model.
- a child object model is associated with the target object model.
- the target object includes a first target entity object, and the sub-object includes a sub-entity object; or the target object includes a target event, and the sub-object includes a sub-event.
- the first historical time is at least one moment before the current moment or at least one duration period before the current moment.
- the target object includes a target event
- the sub-object includes a sub-event
- the value of the time attribute in the at least one sub-object model is within the range of the value of the time attribute in the target object model.
- the first association relationship is used to indicate that the target object model and the at least one child object model are in a parent-child relationship.
- the processing module when used to establish the first association relationship between the target object model and the at least one child object model, it is specifically used to: identify the target object model as a parent object model, and identify the at least one child object model.
- a child object model is identified as a child object model belonging to the parent object model.
- the target object model and the at least one sub-object model also include a model identifier, where the model identifier is used to uniquely identify the target object model and the at least one sub-object model.
- the target object model and the at least one sub-object model also include member attributes, and the member attributes are used to describe user-defined data.
- the target object includes a first target entity object
- the sub-object includes a sub-entity object
- the target object model and the to At least one sub-object model also includes spatial attributes, which are used to describe one or more of the following information of the target object model and the at least one sub-object model: coordinate system information, geometric shape information, and spatial position information. , spatial rotation angle information, spatial range information.
- the spatial attributes include the spatial range information, which is used to describe the spatial range where the target object model and the at least one sub-object model are located; wherein the at least one sub-object model The spatial range in does not exceed the spatial range of the target object model.
- the processing module is further configured to: establish a first coordinate system in the target object model, and establish a second coordinate system in the first sub-object model, where the first sub-object model is the at least one One of the sub-object models, the origin of the second coordinate system is determined based on the origin of the first coordinate system; the target object model and the at least one sub-object model are determined based on the first coordinate system Spatial position information; or, determine the spatial position information of the target object model according to the first coordinate system, and determine the spatial position information of the at least one sub-object model according to the second coordinate system; according to the first coordinate system
- the coordinate system determines the geometric shape information of the target object model and the at least one sub-object model; or, determines the geometric shape information of the target object model according to the first coordinate system, and determines the geometric shape information of the target object model according to the second coordinate system. Geometric shape information of the first sub-object model.
- the spatial attributes include the spatial location information
- the target object model and the at least one sub-object model also include location attributes
- the processing module is further configured to: when the spatial location of the target object When the position information changes, the change in the spatial position information is saved to the position attribute in the target object model; the position attribute is used to describe the position change of the target object at least one moment before the current moment, or , the position change at least one duration before the current moment.
- the processing module is also configured to: when the spatial position of the second sub-object does not fall within the spatial range of the target object, update the second sub-object model corresponding to the second sub-object and the target object.
- the processing module is further configured to: generate, through the target object model and the at least one sub-object model, at least one moment before the current moment or at least one duration period before the current moment, The parent object record corresponding to the target object model and the child object record corresponding to the at least one child object model; wherein the parent object record is used to describe the target object at least one moment before the current moment or the Attribute status in at least one duration period before the current moment; the sub-object record is used to describe the attributes of the at least one sub-object in at least one moment before the current moment or at least one duration period before the current moment. state.
- the processing module is further configured to establish a second association relationship between the parent object record and the at least one child object record, and the second association relationship is used to associate the at least one child object record to The parent object record; wherein each child object record has a unique parent object record, the parent object record and the at least one child object record both include a time range, and the time range of the child object record is within the parent object record. within the recording time range.
- the parent object record and the child object record are used to describe the target object and the at least one child object at least one moment before the current moment or the Change information of the spatial range within at least one duration period before the current moment; at least one moment before the current moment or at least one duration period before the current moment, the sub-object record corresponding to the at least one sub-object
- the spatial extent is contained within the spatial extent of the parent object's record.
- the parent object record and the child object record are used to describe the target object and the at least one child object at least one moment before the current moment or the current moment.
- Change information of spatial position movement within at least one duration period before the current moment; at least one moment before the current moment or at least one duration period before the current moment, the spatial position of the at least one sub-object is included within the spatial range recorded by the parent object.
- the parent object record and the child object record are used to describe the target object and the at least one child object at least one moment before the current moment or the current moment.
- the target object includes a target event
- the sub-object includes a sub-event
- the creation module is further configured to: establish a second target entity model for the second target entity, and the second target entity
- the model is used to describe the historical state of the second target entity, and the second target entity model includes a time attribute;
- the processing module is also used to: change the value of the time attribute in the target entity model Determined as a second historical time, the second historical time is used to represent the time corresponding to the data in the second target entity model; establish a third association relationship between the second target entity model and the target object model , the third association relationship is used to associate the second target entity model with the target object model.
- the third association relationship is used to indicate that the second target entity model and the target object model have a spatial relationship
- the spatial relationship It is used to indicate that the target object corresponding to the target object model occurs within the spatial range of the second target entity object corresponding to the second target entity object model.
- the target object includes a target event, and the sub-object includes a sub-event; the target object model and the at least one sub-object model also include spatial attributes, and the spatial attributes are used to describe the target object. and location information when the at least one sub-object occurs.
- the spatial attributes include spatial extent and/or spatial position, wherein the spatial extent of the at least one sub-object model is included in the spatial extent of the target object model, or the at least one sub-object The spatial position of the model is included within the range of the spatial position of the target object model.
- the target object includes a target event
- the sub-object includes a sub-event.
- the processing module is also configured to: according to the attribute parameters of the target object at different times in history, the target corresponding to the time based on the The object model generates the corresponding target event object record; according to the attribute parameters of the at least one sub-object at different times in history, the corresponding sub-event object record is generated based on the at least one sub-object model corresponding to the time; wherein,
- the attribute parameters include at least one of attribute name, data type, and attribute value.
- the processing module is further configured to: establish a fourth association between the target event object record and the at least one sub-event object record, the fourth association being used to combine the at least one sub-event object into records associated with the target event object record; wherein each sub-event object record in the at least one sub-event object record has a unique target event object record, the target event object record is identical to the at least one sub-event object record All include a time range, and the time range recorded by the sub-event object is within the recording time range of the target event object.
- the present application provides a device for subscribing to the historical status of a target object.
- the device includes: a creation module for respectively establishing a target object model and at least one sub-object attached to the target object.
- a sub-object model wherein the target object model is used to describe the target object, the at least one sub-object model is used to describe the at least one sub-object, the target object model and the at least one sub-object model Both include a time attribute; a processing module configured to set the value of the time attribute in the target object model and the at least one sub-object model to a first historical time, and the first historical time is used to indicate the The time when the data in the target object model corresponds to the at least one sub-object model; establish a first association relationship between the target object model and the at least one sub-object model, and the first association relationship is used to combine the at least one sub-object model with the target object model.
- a sub-object model is associated with the target object model; a receiving module is used to receive a first request from a terminal device, the first request is used to request a subscription to the historical status of the target object; a response module is used to respond to The first request is to perform a subscription operation on the target object model; and perform the subscription operation on the at least one sub-object model according to the association between the at least one sub-object model and the target object model.
- a fifth aspect provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, so The at least one processor executes instructions stored in the memory, causing the device to execute the first aspect, any optional implementation of the first aspect, the second aspect, or any optional implementation of the second aspect.
- the method described in the method including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, so The at least one processor executes instructions stored in the memory, causing the device to execute the first aspect, any optional implementation of the first aspect, the second aspect, or any optional implementation of the second aspect.
- a computer-readable storage medium is provided.
- the computer-readable storage medium is used to store instructions. When the instructions are executed, the first aspect and any optional embodiment of the first aspect are implemented. , the second aspect, or the method in any optional implementation of the second aspect is implemented.
- Figure 1 is a flow chart of a method for twinning the historical status of a twin target object provided by an embodiment of the present application
- Figure 2 is a schematic diagram of the target event and sub-event time range provided by the embodiment of the present application.
- Figure 3 is a schematic diagram of a possible association between physical objects provided by an embodiment of the present application.
- Figure 4 is a schematic diagram of a member structure provided by an embodiment of the present application.
- Figure 5 is a flow chart of a method for assigning values to spatial attributes provided by an embodiment of the present application
- Figure 6 is a flow chart of another method of assigning values to spatial attributes provided by an embodiment of the present application.
- Figure 7 is a flow chart of a method for twinning the historical status of a second target entity provided by an embodiment of the present application
- Figure 8 is a flow chart of a method for subscribing to the historical status of a target object provided by an embodiment of the present application
- Figure 9 is a flow chart of a method for querying the historical status of a target object provided by an embodiment of the present application.
- Figure 10 is a flow chart of a method for deleting the historical status of a target object provided by an embodiment of the present application
- Figure 11 is a schematic structural diagram of a device that provides a historical state of a twin target object according to an embodiment of the present application
- Figure 12 is a schematic structural diagram of a device for subscribing to the historical status of a target object according to an embodiment of the present application
- Figure 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- the historical status of various objects in the objective world can be twinned into historical data of the object.
- physical objects have spatial properties, which can be identified through geometric shapes and collection locations, and the spatial information of each past moment of the physical object and other attributes of the physical object can be used to represent the historical state of the physical object. Twining this information into a unified data structure is a digital twin of the historical state of the physical object.
- the historical status of the events in the objective world can be twinned into historical data corresponding to the event, and the various attributes of each past time in the historical data can be Used to identify the historical status of an event.
- there are built-in correlations between different events and these correlations can also be digitally twinned to achieve more effective management of data after event twins.
- this application provides a method of twinning the historical status of target objects.
- FIG. 1 is a flow chart of a method for twinning the historical status of a twin target object provided by an embodiment of the present application.
- the execution subject of this method can be various types of devices with computing functions, such as laptop computers, desktop computers, servers, etc. , and can also be various types of mobile terminal devices, such as mobile phones, platforms, and other terminal devices that can implement computing functions. It should be understood that the above devices are only examples and are not limited in this application.
- the specific steps of this method are as follows:
- Step S101 For the target object and at least one sub-object attached to the target object, establish a target object model and at least one sub-object model respectively.
- the above-mentioned target object may include a first target entity or a target event. Further, when the target object includes the first target entity object, its corresponding sub-object includes the sub-entity object, and when the target object includes the target event, its corresponding sub-object includes the sub-event.
- the affiliation relationship between the first target entity and the sub-entity may be a relationship between the whole and a part, or a relationship between inclusion and being included.
- the first target entity may refer to workshop A
- the sub-entities attached to the first target entity may be machine 1, machine 2, machine 3, etc. in workshop A, embodying the first target entity.
- the relationship between objects and sub-entities includes and is included.
- the first target entity object may refer to a certain truck
- the sub-entity objects corresponding to the first target entity object are the semi-trailers, front wheels, tires, etc. that are towed by the truck, reflecting the relationship between the target entity object and the sub-entity objects. relationship between the whole and its parts.
- the target object model correspondingly created for the target object may also be called the first target entity model
- the sub-object model correspondingly created for the sub-object may also be called the sub-entity model
- the affiliation relationship between the target event and the sub-events can be a belonging relationship.
- the target event is a leave event
- the leave event as a whole can be split into several different sub-events, for example: Sub-event 1: The leave applicant initiates a leave application, Sub-event 2: The department head approves the leave application, Sub-event 3: The manager approves the leave application. Therefore, conceptually, these three sub-events are subsidiary events of the target event.
- the target object model correspondingly created for the target object can also be called a target event model.
- the sub-object model created corresponding to the sub-object can also be called a sub-event model.
- the target object model corresponds to the above-mentioned target object and is used to describe the historical state of the target object; at least one sub-object model corresponds to the above-mentioned at least one sub-object and is used to describe at least one sub-object.
- Each of these object models includes time attributes, which are used to describe the time corresponding to the data in the object model.
- each created object type can include different types.
- the data can be stored in the form of a data table, or it can be stored in the form of an image, or it can be stored in other possible data storage forms, which is not limited by this application.
- Step S102 Set the value of the time attribute in the target object model and at least one sub-object model to a first historical time.
- the first historical time is used to indicate the time corresponding to the data in the target object model and at least one sub-object model.
- the time attribute is used to describe the time corresponding to the historical data in the object model.
- the time attribute is used to describe the time corresponding to the historical data in the physical object model.
- the first historical data of its corresponding object model may be the record of workshop A being put into use, and the time corresponding to this record is the time when workshop A was put into use.
- the record corresponding to The value of the time attribute may be: January 1, 2020.
- a piece of data in the model corresponding to workshop A represents the appearance of a new machine in workshop A. Therefore, the value of the time attribute corresponding to the record may be: June 1, 2020.
- the time attribute can be used to describe the occurrence or duration of each event.
- the time attribute in the corresponding event model can be the time of the entire process of the leave event from the initiation of the request to the end of the approval, such as: January 1, 2020 - January 2, 2020 day.
- the value of the time attribute of the event model corresponding to at least one sub-event of sub-event 1 can be from 10:00 on January 1, 2020 to January 1, 2020. -12:00.
- the first historical time may be at least one time before the current time or at least one duration period before the current time.
- the first historical time corresponding to the above-mentioned historical data recording the put into use of workshop A can be recorded as a certain moment on January 1, 2020, or it can is recorded for the entire duration of January 1st.
- Which first historical time to record specific historical data can be selected according to actual needs, and is not limited in this application.
- the value of its time attribute is within the range of the value of the time attribute in the target object model.
- Figure 2 is a schematic diagram of the time range of the target event and sub-events provided by the embodiment of the present application.
- the time duration from the start moment to the end moment of the target event covers the duration time of sub-event 1, sub-event 2 and sub-event 3.
- various object models may also include data time attributes, which are used to describe the time when historical data in the object model was recorded or modified.
- the first piece of historical data of the above-mentioned workshop A is used as an example for explanation.
- the time attribute corresponding to the historical data of Workshop A indicates that the workshop was put into use on January 1, 2020
- this historical data corresponds to
- the value of the data time attribute is January 1, 2022.
- the value of the time attribute of the object model may be January 1, 2020 - January 2, 2020
- the creation time of the object model may be later than the time when the event occurs. (for example, February 1, 2020) is postponed a lot, so for the data time attribute in the object model, its value is February 1, 2020.
- incorrect revisions may occur. For example, during a certain error determination, it is found that the value in a piece of historical data in the model has an error. It can be modified, and at this time, the historical data corresponds to The value of the data time attribute will also be updated in time to indicate the latest revision time of the historical data.
- historical data can be displayed to users more accurately, and the update status of historical data can be displayed, which improves the user's ability to manage object information in a refined manner.
- Step S103 Establish a first association relationship between the target object model and at least one sub-object model.
- the first association relationship is used to associate at least one sub-object model with the target object model.
- a first association relationship between the target object model and at least one sub-object model is established.
- the first association relationship is used to associate the above-mentioned at least one sub-object model. to the target object model.
- FIG. 3 is a schematic diagram of a possible association relationship between entities provided by an embodiment of the present application.
- FIG. 3 there is workshop A and machine 1, machine 2, and machine 3 included in workshop A.
- workshop A is the target physical object.
- the included and included relationship between 2 and 3 establishes the first association between the target physical model corresponding to workshop A and the sub-physical physical models 1, 2, and 3 corresponding to machines 1, 2, and 3.
- An association relationship is used to associate the sub-entity object models 1, 2, and 3 with the target entity object model.
- the leave event can be split into three sub-events. Therefore, for the target object model and three sub-object models created for the above leave event and three sub-events, In other words, a first association relationship between models can be created based on the relationship between the leave event and the whole and part of the three sub-events. This first association relationship can be used to associate the sub-object model to the target object model.
- the above-mentioned first association relationship may be used to indicate that the target object model and at least one child object model are in a parent-child relationship (or include and be included, whole and part, etc.).
- the target object model is identified as the parent model
- at least one child object model is identified as the child model.
- the above parent-child relationship is used to indicate that the child model is subordinate to the parent model.
- various target objects can be digitally twinned according to the conditions of the target objects to obtain their corresponding object models.
- the user can be provided with information about each object and realize the target Digital management of objects.
- the time corresponding to each historical data in the object model is recorded through the time attribute, making the information stored in the object model more accurate and comprehensive.
- you can also create associations between object models based on the hierarchical relationships between objects in reality. In this way, through the associations between object models, the user is provided with information about the relationships between objects in reality, which improves the user experience. Efficiency in managing target objects.
- each object model created above also includes a model identifier, which is used to uniquely identify the corresponding object model.
- the model identifier may be a numeric sequence with a fixed length.
- each object model can be uniquely identified by a 6-digit identity number (Identity, ID).
- the unique identifier of the target object model corresponding to the target object can be recorded as 000010, and the unique identifier of sub-object model 1 corresponding to sub-object 1 can be Recorded as 000110, the unique identifier of sub-object model 2 corresponding to sub-object 2 can be recorded as 000210, and the unique identifier of sub-object model 3 corresponding to sub-object 3 can be recorded as 000310; in this way, each object model can have its unique corresponding model identification.
- each model has its own system-wide unique model identifier, which enables accurate search of the model during subsequent access and improves the efficiency of model management.
- each model created above also includes member attributes, which are used to describe user-defined data.
- the member attributes of the model can contain several members.
- the so-called member refers to a data structure. Information about the differentiated attributes of all objects (entities or events) can be stored through this data structure and saved in its corresponding model.
- FIG 4 is a schematic diagram of a member structure provided by an embodiment of the present application.
- members include different member information, such as member ID, member name, member data type, member value, etc.
- member information describing the number of people in the workshop or member information describing the number of machines in the workshop can be added.
- the member information used to describe the number of people in the workshop and the member information used to describe the number of machines in the workshop can be expressed as data as shown in Table 1.
- users can save the differentiated information of each object (entity or event) in its corresponding model through member attributes, avoiding the specificity of a single object (entity or event).
- the overall model is modified based on the information, which improves the adaptability and practicality of this solution.
- the various object models created also include spatial attributes, which are used to describe one or more of the following information of the target object model and at least one sub-object model: Coordinate system information, geometric shape information, spatial position information, spatial rotation angle information, and spatial range information.
- the coordinate system information is used to indicate the information of the specifically selected reference coordinate system of the object model
- the spatial position information is used to indicate the position information of the object corresponding to the object model
- the geometric shape information is used to indicate the object shape corresponding to the object model.
- the spatial range information is used to indicate the spatial range information where the object corresponding to the object model is located. Among them, it should be noted that the spatial range of at least one sub-object model does not exceed the spatial range of the target object model.
- the first association relationship between the object models also includes the geometric relationship between the geometric shapes of the entity objects at the past moment, and the spatial relationship between the spatial positions.
- the geometric relationship between the geometric shapes of the physical objects is used to indicate the intersection, separation, contact and other relationships between the physical objects. It can also indicate the distance between the physical objects and other data.
- the spatial relationship between the spatial positions of entities is used to indicate that the entities corresponding to the object model are spatially related to each other, such as inclusion, separation, contact, etc. It is also used to indicate that the entities corresponding to the object model are related to each other. a certain spatial distance.
- the correlation between object models also includes geometric relationships and spatial relationships, which makes the connection between each object model closer and helps to achieve rapid search and other management of object models.
- the values of spatial attributes in each object model can be accomplished in the following different ways.
- FIG. 5 is a flow chart of a method for assigning values to spatial attributes provided by an embodiment of the present application.
- Step S501 Establish a first coordinate system in the target object model.
- the first coordinate system can be saved in the spatial attribute in the target object model.
- Step S502 Determine the spatial position information of the target object model and at least one sub-object model associated with the target object according to the first coordinate system.
- Step S503 Determine the geometric shape information of the target object model and at least one sub-object model according to the first coordinate system.
- Step S504 The server assigns values to the spatial attributes in the target object model and at least one sub-object model based on the above-mentioned spatial position information and geometric shape information.
- the server only assigns values to the spatial attributes of the target object and the sub-object model associated with the target object model based on the first coordinate system in the target object model.
- the target object and sub-objects have a unified reference coordinate system. , the relationship between their relative positions is displayed more intuitively and closely, further strengthening the correlation between the target object model and the sub-object model, and improving the management efficiency of the object model.
- FIG. 6 is a flow chart of another method of assigning values to spatial attributes provided by an embodiment of the present application.
- Step S601 The server establishes a first coordinate system in the target object model and a second coordinate system in the first sub-object model; where the first sub-object model is one of the above-mentioned at least one sub-object model, and the second coordinate system The origin of is determined based on the origin of the first coordinate system.
- Step S602 The server determines the spatial position information of the target object model according to the first coordinate system, and determines the spatial position relationship of at least one sub-object model associated with the target object model according to the second coordinate system.
- the spatial position information of all sub-object models associated with the target object model is determined based on the same reference coordinate system, which is more conducive to the management of the sub-object models.
- Step S603 The server determines the geometric shape information of the target object model according to the first coordinate system, and determines the geometric shape information of at least one sub-object model associated with the target object model according to the second coordinate system.
- Step S604 The server assigns values to the spatial attributes in the target object model and at least one sub-object model based on the above-mentioned spatial position information and geometric shape information.
- the server establishes the first coordinate system and the second coordinate system in the target object model and the sub-object model respectively, and the origin of the second coordinate system is established based on the origin of the first coordinate system.
- the assignment The spatial attributes of the various subsequent models not only retain built-in correlations, but also have a certain degree of independence, which improves the degree of refined management of object models.
- the above various types of object models also include position attributes, which are used to describe the position change of the target object at least one moment before the current moment, or the position within at least one duration period before the current moment. Variety.
- the server when the server assigns a value to the position attribute in the model, when the spatial position information of the first target entity changes, the change in the spatial position information can be saved in the target object model. Similarly, when the spatial position information of the sub-entity changes, the server can also save the corresponding information in the sub-object model corresponding to the sub-entity.
- the position changes of physical objects are recorded through position attributes, which improves the data retained in the object model and improves the level of managing the object model.
- the server updates the second sub-entity object corresponding to the second sub-entity object.
- machine 1 in workshop A is the second sub-entity mentioned above.
- the server can update workshop A and machine accordingly. 1 corresponds to the first association relationship between the target entity model and the second sub-entity model, and simultaneously updates the spatial attributes and time attributes of the second sub-entity model to ensure that the record can be successfully saved in the second sub-entity model. middle.
- a target object model or at least one sub-object model corresponding to the first target entity or at least one sub-entity can also be generated.
- the object records corresponding to each object model are at least one moment before the current moment or at least one duration period.
- the object record generated through the target object model can be marked as a parent object record, which is used to describe the attribute state of the target object at least one moment before the current moment or at least one duration period.
- the object record generated by at least one sub-object model may be called a sub-object record and is used to describe the attribute state of the at least one sub-object at least one moment before the current moment or at least one duration period.
- a parent object record describing the historical state is generated, and the record contains the values of each attribute in the historical state corresponding to the target object model. For example, based on the historical status of the establishment of workshop A, a parent object record is generated. The parent object record contains the time when workshop A was put into use, the spatial location of workshop A, the workshop personnel included when workshop A was put into use, etc. wait.
- the corresponding object record is generated through the model, so that the user can obtain unified and standardized historical status information about the object, which improves the user experience and reduces the complexity of obtaining information.
- the following processing method can also be performed: establishing a second association relationship between the parent object record and at least one child object record, and the second association relationship is used to combine at least one The child object record is associated with the parent object record, or the second association relationship is also used to indicate that the entity object model corresponding to the parent object record has a first association relationship with at least one child object record corresponding to at least one child entity object model.
- each child object record in at least one child object record has a unique parent object record, and the records include a time range attribute, which is used to indicate the time range in which the attribute state corresponding to each record lasts. And, the time range of each child object record in at least one child object record is within the time range of the parent object record.
- the generated parent object record and the child object record are connected, which can implement the correlation between entities, strengthen the correlation between objects and information, and improve the efficiency of object information management.
- the parent object record corresponding to the target object model and the child object record corresponding to at least one child object model are used to describe the target object and at least one child object.
- Change information of the spatial range at least one moment before the current moment or at least one duration period before the current moment.
- the spatial range in the child object record is included in the spatial range of the parent object record.
- the object record contains the changes in the spatial range of the corresponding physical object, which can effectively help the user obtain the corresponding information.
- the parent object record corresponding to the target object model and the child object record corresponding to at least one child object model are also used to describe the target object and at least one child object. Change information of spatial position movement at least one moment before the current moment or at least one duration period before the current moment.
- the spatial position of at least one child object is included in the spatial range recorded by the parent object.
- the object record contains the spatial position changes of the corresponding object, which can effectively help the user obtain the corresponding information.
- the parent object record corresponding to the above target object model and at least one The sub-object record corresponding to the sub-entity object model is used to describe the change information of the geometric shape of the target object and at least one sub-object at least one moment before the current moment or at least one duration period before the current moment.
- the geometric shape in the child object record is included in the geometric shape of the parent object record.
- the object record contains the geometric shape changes of the corresponding physical object, which can effectively help the user obtain the corresponding information.
- the above describes the method steps that can be performed when the target object includes the first target entity.
- the following will introduce the steps that can be performed when creating a model when the target object includes target events and the sub-objects include sub-events.
- the model can also be created for the physical objects related to the event.
- the entity objects related to the event introduced below will be recorded as the second target entity object.
- the second target entity refers to an entity related to the target event included in the target object, and the above-mentioned first target entity may be any entity. In other words, to a certain extent, the first target entity may include the second target entity.
- Step S701 Establish a second target entity model for the second target entity.
- the second target entity model is used to describe the historical state of the second target entity, and the model includes a time attribute.
- Step S702 Determine the value of the time attribute in the second target entity model as a second historical time.
- the second historical time is used to represent the time corresponding to the data in the second target entity model.
- the value of the time attribute in the second target entity model is used to describe the time corresponding to the data existing in the second target entity model. For example, assuming that the second target entity is a laptop, then when There is certain historical data in the second target entity model corresponding to the second target entity, which records the information that the entity was put into use. Then, the value of the time attribute corresponding to the data is the time when the entity was put into use. , rather than the time when the historical data was recorded.
- Step S703 Establish a third association relationship between the second target entity model and the target event model.
- the third association relationship is used to associate the second target entity model to the target event model.
- a third association relationship between the second target entity model and the target object model is established based on the association relationship between the second target entity object and the target event in reality.
- the second target entity is factory A
- the target object is a leave event that occurred in factory A.
- the second target entity has a spatial relationship with the target object, and the spatial relationship indicates the occurrence of the target object.
- the second target entity model and the target event model are created, a third association relationship between the second target entity model and the target object model is established based on the above-mentioned space management, and the second target entity model is associated with Target object model.
- a second target entity model associated with the target object model is created, which improves the scheme of twinning the historical status of the event, strengthens the comprehensiveness of the information stored in the model, and improves the management efficiency of event information.
- the above-mentioned object model created for various types of events also includes spatial attributes, which are used to describe the target event and the location information when at least one sub-event occurs.
- the location when the leave event occurs may be factory A, and the location when the sub-event occurs
- the locations may be Workshop A, Workshop A and the Administration Building respectively.
- the spatial attributes in the above model may include spatial range and/or spatial location.
- the spatial range recorded in the child object model is included in the spatial range of the parent model corresponding to the child object model; or in other words, the spatial position recorded in the child object model is included in the spatial position of the parent model corresponding to the child object model. In the range.
- the target object model corresponding to the event can also be generated based on the attribute parameters of the target event at different times in history.
- the attribute parameters include at least one of attribute name, data type, and attribute value.
- a target event object record describing the historical state is generated, and the record contains the values of each attribute in the historical state corresponding to the target object model.
- the target event record can include request for leave The time, spatial location and spatial extent of the event.
- the corresponding object record is generated through the model, so that the user can obtain unified and standardized historical status information about the object, which improves the user experience and reduces the complexity of obtaining information.
- the following processing methods can also be performed:
- a fourth association relationship between the target event object record and at least one sub-event object record is established, and the fourth association relationship is used to associate the at least one sub-event object record with the target event object record.
- each sub-event object record in at least one sub-event object record has and has only one target event object record, and all object records include the attribute of time range, which is used to indicate how long the attribute status corresponding to each record lasts. time limit. Also, the time range in the child event object record is within the time range recorded in the target event object.
- the generated target event object record is connected with the sub-event object record, which can implement the correlation between objects, strengthen the correlation between objects and information, and improve the efficiency of object information management.
- FIG 8 is a flow chart of a method for subscribing to the historical status of a target object provided by an embodiment of the present application.
- This method is jointly executed by devices such as computers and servers that are connected to the terminal device through communication.
- devices such as computers and servers that are connected to the terminal device through communication.
- the specific implementation steps of this method will be described below by taking the server and the terminal device as examples.
- Step S801 The server receives a first request from the terminal device, where the first request is used to request a subscription to the historical status of the target object.
- the first request may carry information used to determine the target object model, and the information may specifically be: the model identifier of the target object model; or the value of one or more attributes in the target object model; or the target object model.
- the terminal device when it needs to subscribe to the target object model, it can send a first request to the server.
- the first request carries the model identifier of the target object model.
- the server After the server receives the first request, it can complete the process according to the model identifier. A subscription operation to the target object model.
- the server can determine the target object model from several object models through the information carried in the first request. These object models are stored in the database corresponding to the server (after creating several object models, these object models can be stored in the database corresponding to the server, thus ensuring the reliability of subsequent information queries).
- Step S802 In response to the first request, the server performs a subscription operation on the target object model.
- the subscription operation may be to save the identification information of the subscribed target object model in a corresponding subscription data table, and the subscription data table records the identification information of all subscribed object models.
- the server after receiving the first request to subscribe to the target object model, the server responds to the first request and saves the model identifier of the target object model to the subscription data table to implement the subscription. Subscription to the target object model.
- Step S803 The server determines at least one sub-object model from several object models, and the at least one sub-object model has a first association relationship with the target object model; and performs a subscription operation on at least one sub-object model.
- the server obtains relevant information about the first association relationship between the target object model and at least one sub-object model from the target object model, and obtains relevant information from several object models based on the information about the first association relationship. Determine at least one of the above sub-object models, that is, sub-object model 1, sub-object model 2, and sub-object model 3, and then subscribe to these three object models.
- the server can determine the target object model based on the first association, and The target object model is then subscribed to. In other words, the server can determine and subscribe to the child model from the parent model based on the association relationship, or it can determine and subscribe to the parent model from the child model based on the association relationship.
- Step S804 When the target object model and/or at least one sub-object model changes, send the change status to the terminal device.
- the server After completing the subscription to the target object model and at least one sub-object model, the server will detect the data status of these models. Once the data of the target object model and/or at least one sub-object model changes, or the sub-object model occurs When changes occur, the server immediately sends the above changes to the terminal device.
- the sub-object model change is used to indicate the change in the number of sub-object models that have the first association relationship with the target object model. Taking the target object model as workshop A as an example, when some machines in workshop A are eliminated, workshop A The number of machines existing in will change. At this time, the number of sub-object models that have the first association relationship with the target entity model will also change. At this time, it means that the sub-object model has changed.
- the above only takes the first association relationship between models as an example.
- the corresponding created target object model may also include the second target entity model.
- the relationship performs the above subscription operation, that is: after requesting to subscribe to the target object model, subscribe to at least one child object model and the second target entity model at the same time.
- the server when the server sends changes to the terminal device, it can choose to send it in the following ways:
- subscription information matching the subscription item is generated, where the subscription item is carried in the first request; and the subscription information is sent to the terminal device.
- the subscription items carried in the first request can be the names of various attributes included in the object model, such as spatial attributes or location attributes, etc.; they can also be part of the information in the object model that the user needs to focus on, for example, it can be The name of the member in the member attribute.
- the server can generate subscription information accordingly based on the subscription items included in the first request.
- the subscription items carried in the first request only include spatial attributes.
- the subscription information generated by the server may be subscription information only used to indicate changes in the spatial attributes of the target object model and/or at least one sub-object model.
- the server sends corresponding subscription information to the terminal device based on the subscription item carried in the first request, which can not only meet the user's subscription needs, but also avoid tracking other model information, and realize the object information Delicate management.
- FIG. 9 is a flow chart of a method for querying the historical status of a target object provided by an embodiment of the present application. The specific steps of this method are as follows:
- S901 The server receives a second request from the terminal device, and the second request is used to query the target object model.
- the second request may carry information used to determine the target object model, and the information may specifically be: the model identifier of the target object model; or the value of one or more attributes in the target object model; Alternatively, the model ID of the target object model and the value of one or more properties in the target object model.
- Step S902 In response to the second request, the server determines the target object model from several object models.
- Step S903 The server determines at least one sub-object model from several object models based on the information about the first association relationship in the target object model.
- the entity corresponding to the at least one sub-object model and the entity corresponding to the target object model have the third An associated relationship.
- Step S904 The server outputs the information of the target object model and at least one sub-object model to the terminal device.
- the server can determine the child model from the parent model based on the first association relationship between the target object model and at least one child object model, and simultaneously transmit it to the terminal device to complete the response to the second request.
- the user only needs to input the query information of one object model to obtain the information of several object models associated with the object model, which simplifies the user's query operation and improves the user experience.
- the second request may also carry a query item to instruct the server to provide feedback based on the corresponding query item.
- the query item may be a spatial attribute and/or member attribute in the object model
- the server determines the spatial attribute and/or member from the determined target object model. attribute information, and generate corresponding query information and send it to the terminal device.
- the information in the object model can be sent in a targeted manner, which improves the refinement of the object model management.
- FIG. 10 is a flow chart of a method for deleting the historical status of a target object provided by an embodiment of the present application. The specific steps of this method are as follows:
- S1001 The server receives a third request from the terminal device, the third request is used to delete the target object model.
- the server determines the target object model from several object models, and determines at least one child that has the first association relationship with the target object model based on the information about the first association relationship in the target object model.
- Object model In response to the third request, the server determines the target object model from several object models, and determines at least one child that has the first association relationship with the target object model based on the information about the first association relationship in the target object model.
- S1003 Delete the target object model and at least one child object model.
- the above describes the subscription, query, and deletion operations based on the first association relationship between the target object model and at least one child object model.
- the above operations can not only be performed based on the first association relationship, but also based on the first association relationship.
- the spatial relationship between each object model is used to perform object model subscription, query, and deletion operations.
- the space range occupied by machines 1, 2, and 3 is included in the space range occupied by workshop A.
- workshop A and machines 1, 2, and 3 exist to include and be included. Included spatial relationships.
- the server can determine the sub-entity models 1, 2, and 3 corresponding to machines 1, 2, and 3 based on the spatial relationship of the target entity model corresponding to workshop A, and It performs the corresponding operations.
- embodiments of the present application also provide a device for twinning the historical status of an entity.
- the device may be the above-mentioned server or a chip or integrated circuit in the device.
- the device includes a device for executing the above-mentioned Modules/units/technical means of the method executed by the server in the method embodiment.
- the device 1100 includes:
- Creation module 1101 configured to establish a target object model and at least one sub-object model respectively for the target object and at least one sub-object attached to the target object; wherein the target object model is used to describe the target object, so The at least one sub-object model is used to describe the at least one sub-object, and both the target object model and the at least one sub-object model include time attributes;
- the processing module 1102 is configured to set the value of the time attribute in the target object model and the at least one sub-object model to a historical time, where the historical time is used to indicate that the target object model and the at least one The time corresponding to the data in a sub-object model; establishing a first association relationship between the target object model and the at least one sub-object model, the first association relationship is used to associate the at least one sub-object model to the Target object model.
- the device discussed in Figure 11 can be used to perform the method described in the embodiment shown in Figure 1. Therefore, for the functions that can be implemented by each functional module of the device, please refer to the ones shown in Figure 1. The description of the embodiments will not be repeated here.
- embodiments of the present application also provide a device for subscribing to the historical status of a target object.
- an embodiment of the present application provides a schematic structural diagram of a device for subscribing to the historical status of a target object.
- the device may be the above-mentioned server or a chip or integrated circuit in the device.
- the device includes a device for executing the above Modules/units/technical means of the method executed by the server in the method embodiment.
- the device 1200 includes:
- Creation module 1201 configured to establish a target object model and at least one sub-object model respectively for the target object and at least one sub-object attached to the target object; wherein the target object model is used to describe the target object, so The at least one sub-object model is used to describe the at least one sub-object, and both the target object model and the at least one sub-object model include time attributes;
- the processing module 1202 is configured to set the value of the time attribute in the target object model and the at least one sub-object model to a historical time, where the historical time is used to indicate that the target object model and the at least one The time corresponding to the data in a sub-object model; establishing an association between the target object model and the at least one sub-object model, the association being used to associate the at least one sub-object model to the target object model;
- the receiving module 1203 is configured to receive a first request from a terminal device, where the first request is used to request a subscription to the historical status of the target object;
- Response module 1204 configured to perform a subscription operation on the target object model in response to the first request; and perform a subscription operation on the at least one sub-object model according to the association between the at least one sub-object model and the target object model. Perform the subscription operation described.
- the device discussed in Figure 12 can be used to perform the method described in the embodiment shown in Figure 8. Therefore, for the functions that can be implemented by each functional module of the device, please refer to the ones shown in Figure 8. The description of the embodiments will not be repeated here.
- an embodiment of the present application also provides an electronic device 1300, including:
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Mathematical Physics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本申请提供一种孪生、订阅目标对象的历史状态的方法及装置,用以实现通过数字孪生技术孪生目标对象的历史状态。方法具体包括:针对目标对象以及附属于目标对象的至少一个子对象,分别建立目标对象模型以及至少一个子对象模型(S101);目标对象模型以及至少一个子对象模型均包括时间属性;将目标对象模型与至少一个子对象模型中的时间属性的取值设置为历史时间,历史时间用于指示目标对象模型与至少一个子对象模型中数据对应的时间;建立目标对象模型与至少一个子对象模型的第一关联关系,第一关联关系用于将至少一个子对象模型关联至目标对象模型(S103)。
Description
相关申请的交叉引用
本申请要求在2022年06月30日提交中国专利局、申请号为202210767339.9、申请名称为“一种孪生、订阅实体物的历史状态的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中;本申请要求在2022年06月30日提交中国专利局、申请号为202210767657.5、申请名称为“一种孪生、订阅事件的历史状态的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及数据处理技术领域,具体涉及了一种孪生、订阅目标对象的历史状态的方法及装置。
在工业领域,为了更加方便地对工业生产活动进行监管,对生产环节中包含的人、机、料、法、环等五要素进行数字孪生,已然是不可阻挡的发展大潮。然而,现有的对这些要素进行数字孪生的技术通常缺少专门的对其历史状态的数字孪生理论和技术。
因此,如何实现对目标对象的历史状态的数字孪生,是一个亟需解决的问题。
发明内容
本申请提供一种孪生、订阅目标对象的历史状态的方法及装置,用以实现对目标对象的历史状态的数字孪生。
第一方面,本申请提供一种孪生目标对象的历史状态的方法,该方法包括:针对目标对象以及附属于所述目标对象的至少一个子对象,分别建立目标对象模型以及至少一个子对象模型;其中,所述目标对象模型用于描述所述目标对象,所述至少一个子对象模型用于描述所述至少一个子对象,所述目标对象模型以及所述至少一个子对象模型均包括时间属性;将所述目标对象模型与所述至少一个子对象模型中的所述时间属性的取值设置为第一历史时间,所述第一历史时间用于指示所述目标对象模型与所述至少一个子对象模型中数据对应的时间;建立所述目标对象模型与所述至少一个子对象模型的第一关联关系,所述第一关联关系用于将所述至少一个子对象模型关联至所述目标对象模型。
在本方案中,可以根据目标对象的情况,对各种目标对象进行数字孪生,得到其对应的对象模型,这样,通过对各个对象进行模型创建,为用户提供各对象的信息,实现了对目标对象的数字化管理。同时,通过时间属性记录了对象模型中各个历史数据对应的时间,使得对象模型中保存的信息更加准确、全面。并且,还可以根据现实中对象之间的层级关系,创建对象模型之间的关联关系,这样,通过对象模型间的关联关系,向用户提供了现实中对象之间的关系的信息,提高了用户管理目标对象的效率。
可选的,所述目标对象包括第一目标实体物,所述子对象包括子实体物;或者,所述目标对象包括目标事件,所述子对象包括子事件。
可选的,所述第一历史时间为当前时刻之前至少一个时刻或当前时刻之前至少一个持续时间段。
在本方式中,用户可以通过对象模型中的时间属性,获知各个历史数据对应的时间,从而更清晰的获取对象模型对应的目标对象的历史状态以及其对应的信息,加强了对目标对象信息的管理。
可选的,所述目标对象包括目标事件,所述子对象包括子事件时,所述至少一个子对象模型中的时间属性的值在所述目标对象模型中时间属性的值的范围内。
可选的,所述第一关联关系用于指示所述目标对象模型与所述至少一个子对象模型是父子关系。
在本方式中,通过第一关联关系,加强了模型之间的联系,提高了模型管理效率。
可选的,所述建立所述目标对象模型与所述至少一个子对象模型的第一关联关系,包括:将目标对象模型标识为父对象模型,将所述至少一个子对象模型标识为属于所述父对象模型的子对象模型。
可选的,所述目标对象模型以及所述至少一个子对象模型中还包括模型标识,所述模型标识用于唯一标识所述
目标对象模型以及所述至少一个子对象模型。
在本方式中,每个模型都具有其全系统唯一模型标识,使得后续访问时能够实现对模型的精准查找,提高了对模型的管理效率。
可选的,所述目标对象模型以及所述至少一个子对象模型还包括成员属性,所述成员属性用于描述用户自定义数据。
可选的,所述目标对象包括第一目标实体物,所述子对象包括子实体物,并且所述目标对象模型以及所述至少一个子对象模型还包括空间属性,所述空间属性用于描述所述目标对象模型以及所述至少一个子对象模型的以下一项或多项信息:坐标系信息、几何形状信息、空间位置信息、空间旋转角度信息、空间范围信息。
在本方式中,在对象包括实体物时,在模型中增加空间属性,使得对象模型所包含的实体物信息更加全面完善。同时,对象模型间的关联关系基于上述空间属性进行关联,使得各个对象模型之间的联系更加紧密,有助于实现基于对象模型进行的快速查找等管理操作。
可选的,所述空间属性包括所述空间范围信息,所述空间范围信息用于描述所述目标对象模型以及所述至少一个子对象模型所在的空间范围;其中,所述至少一个子对象模型中的空间范围不超过所述目标对象模型的空间范围。
可选的,所述方法还包括:在所述目标对象模型中建立第一坐标系,在第一子对象模型中建立第二坐标系,所述第一子对象模型为所述至少一个子对象模型中的一个,所述第二坐标系的原点是根据所述第一坐标系的原点确定的;根据所述第一坐标系确定所述目标对象模型以及所述至少一个子对象模型的空间位置信息;或者,根据所述第一坐标系确定所述目标对象模型的空间位置信息,以及根据所述第二坐标系确定所述至少一个子对象模型的空间位置信息;根据所述第一坐标系确定所述目标对象模型以及所述至少一个子对象模型的几何形状信息;或者,根据所述第一坐标系确定所述目标对象模型的几何形状信息,以及根据所述第二坐标系确定所述第一子对象模型的几何形状信息。
在本方式中,提供了几种不同的为模型的空间属性赋值的方法,提高了本方案的灵活性以及普适性。具体的,当根据目标对象模型中的第一坐标系,为目标对象以及目标对象模型所关联的子对象模型的空间属性赋值时,目标对象与子对象拥有了统一的参考坐标系,其相对位置的关系显示的更为直观且密切,进一步地加强了目标对象模型以及子对象模型之间的关联性,提高了对象模型的管理效率。当分别在目标对象模型以及子对象模型中建立了第一坐标系以及第二坐标系,且第二坐标系的原点是根据第一坐标系的原点建立时,赋值后的各类模型的空间属性即保有内置的关联关系,同时也具备一定的独立性,提高了精细化管理对象模型的程度。
可选的,所述空间属性包括所述空间位置信息,所述目标对象模型以及所述至少一个子对象模型还包括位置属性,所述方法还包括:当所述目标对象的所述空间位置信息发生变化时,将所述空间位置信息的变化保存至所述目标对象模型中的位置属性;所述位置属性用于描述所述目标对象在当前时刻之前的至少一个时刻的位置变化,或者,在当前时刻之前至少一个持续时间段内的位置变化。
在本方式中,通过位置属性记录了对象的位置变化情况,完善了对象模型中保有的数据,提高了对象模型的管理的精细化程度。
可选的,所述方法还包括:当第二子对象的空间位置不属于所述目标对象的空间范围内时,更新所述第二子对象对应的第二子对象模型与所述目标对象模型的第一关联关系,并更新所述第二子对象模型的空间属性以及时间属性;其中,所述第二子对象为所述至少一个子对象中的一个。
在本方式中,及时更新对象对应的模型的关联关系,能够确保通过模型对目标对象管理的有效性。
可选的,所述方法还包括:通过所述目标对象模型以及所述至少一个子对象模型,生成在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内,所述目标对象模型对应的父对象记录以及所述至少一个子对象模型对应的子对象记录;其中,所述父对象记录用于描述所述目标对象在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内的属性状态;所述子对象记录用于描述所述至少一个子对象在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内的属性状态。
在本方式中,通过模型生成应的对象记录,使得用户能够获得关于目标对象统一且规范的历史状态信息,提高了用户的使用体验,并且降低了获取信息的复杂度。
可选的,所述方法还包括:建立所述父对象记录与所述至少一个子对象记录的第二关联关系,所述第二关联关系用于将所述至少一个子对象记录关联至所述父对象记录;其中,每个子对象记录具有唯一的父对象记录,所述父
对象记录与所述至少一个子对象记录均包括时间范围,所述子对象记录的时间范围在所述父对象记录时间范围之内。
在本方式中,将生成的父对象记录与子对象记录进行联系,能够贯彻对象模型之间的关联关系,加强模型之间、信息之间的关联关系,提高了对象信息管理的效率。
可选的,所述空间属性包括所述空间范围信息时,所述父对象记录及子对象记录用于描述所述目标对象及所述至少一个子对象在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内的空间范围的变更信息;在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内,所述至少一个子对象对应的子对象记录的空间范围被包含在所述父对象记录的空间范围内。
在本方式中,对象记录中包含了对应的对象的空间范围变化情况,能够有效地帮助用户获得对应信息。
可选的,所述空间属性包括所述空间位置信息时,所述父对象记录及子对象记录用于描述所述目标对象及所述至少一个子对象在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内空间位置移动的变更信息;在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内,所述至少一个子对象的空间位置被包含在所述父对象记录的空间范围内。
在本方式中,对象记录中包含了对应的对象的空间位置变化情况,能够有效地帮助用户获得对应信息。
可选的,所述空间属性包括所述几何形状信息时,所述父对象记录及子对象记录用于描述所述目标对象及所述至少一个子对象在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内几何形状的变更信息;在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内,所述至少一个子对象的几何形状被包含在所述父对象记录的几何形状内。
在本方式中,对象记录中包含了对应的对象的几何形状变化情况,能够有效地帮助用户获得对应信息。
可选的,所述目标对象包括目标事件,所述子对象包括子事件,则所述方法还包括:针对第二目标实体物建立第二目标实体物模型,所述第二目标实体物模型用于描述所述第二目标实体物的历史状态,所述第二目标实体物模型中包括时间属性;将所述目标实体物模型中的时间属性的取值确定为第二历史时间,所述第二历史时间用于表示所述第二目标实体物模型中数据对应的时间;建立所述第二目标实体物模型与所述目标对象模型的第三关联关系,所述第三关联关系用于将所述第二目标实体物模型关联至所述目标对象模型。
本方式中,在目标对象包括目标事件,子对象包括子事件的前提下,创建了与目标对象模型相关联的第二目标实体物模型,完善了对事件历史状态进行孪生的方案,加强了模型中保存信息的全面性,提高了事件信息的管理效率。
可选的,所述第三关联关系用于指示所述第二目标实体物模型与所述目标对象模型具有空间关系,所述空间关系用于指示所述目标对象模型对应的目标对象发生在所述第二目标实体物模型对应的第二目标实体物的空间范围内。
在本方式中,通过第三关联关系,展示了对象模型与实体物模型之间的空间关系,加强了模型之间的联系,提高了模型管理效率。
可选的,所述目标对象包括目标事件,所述子对象包括子事件;所述目标对象模型以及所述至少一个子对象模型中还包括空间属性,所述空间属性用于描述所述目标对象以及所述至少一个子对象发生时的位置信息。
可选的,所述空间属性包括空间范围和/或空间位置,其中,所述至少一个子对象模型的空间范围被包含在所述目标对象模型的空间范围内,或者,所述至少一个子对象模型的空间位置被包含在所述目标对象模型的空间位置的范围内。
可选的,所述目标对象包括目标事件,所述子对象包括子事件,所述方法还包括:根据所述目标对象在历史不同时间的属性参数,基于所述时间对应的所述目标对象模型,生成对应的目标事件对象记录;根据所述至少一个子对象在历史不同时间的属性参数,基于所述时间对应的所述至少一个子对象模型,生成对应的子事件对象记录;其中,所述属性参数包括属性名称、数据类型、属性值中的至少一种。
在本方式中,通过模型生成应的对象记录,使得用户能够获得关于对象统一且规范的历史状态信息,提高了用户的使用体验,并且降低了获取信息的复杂度。
可选的,所述方法还包括:建立所述目标事件对象记录与所述至少一个子事件对象记录的第四关联关系,所述第四关联关系用于将所述至少一个子事件对象记录关联至所述目标事件对象记录;其中,所述至少一个子事件对象记录中的每个子事件对象记录具有唯一的目标事件对象记录,所述目标事件对象记录与所述至少一个子事件对象记
录均包括时间范围,所述子事件对象记录的时间范围在所述目标事件对象记录时间范围之内。
在本方式中,将生成的目标事件对象记录与子事件对象记录进行联系,能够贯彻事件之间的关联关系,加强了事件之间、信息之间的关联关系,提高了事件信息管理的效率。
第二方面,本申请提供一种订阅目标对象的历史状态的方法,该方法包括:针对目标对象以及附属于所述目标对象的至少一个子对象,分别建立目标对象模型以及至少一个子对象模型;其中,所述目标对象模型用于描述所述目标对象,所述至少一个子对象模型用于描述所述至少一个子对象,所述目标对象模型以及所述至少一个子对象模型均包括时间属性;将所述目标对象模型与所述至少一个子对象模型中的所述时间属性的取值设置为第一历史时间,所述第一历史时间用于指示所述目标对象模型与所述至少一个子对象模型中数据对应的时间;建立所述目标对象模型与所述至少一个子对象模型的第一关联关系,所述第一关联关系用于将所述至少一个子对象模型关联至所述目标对象模型;接收来自终端设备的第一请求,所述第一请求用于请求订阅所述目标对象的历史状态;响应于所述第一请求,对所述目标对象模型执行订阅操作;根据所述至少一个子对象模型与所述目标对象模型的第一关联关系,对所述至少一个子对象模型执行所述订阅操作。
在本方案中,基于模型之间存在第一关联关系,在订阅目标对象模型后,可以根据目标对象模型中的关联关系,对被关联到的至少一个子对象模型执行同样的订阅操作。这样在用户只需发出订阅目标对象模型的指示,就可以同时订阅与目标对象模型相关联的模型,并及时获得这些模型的变化信息。能够以简单的操作获得更全面的信息,提高了订阅操作的智能化程度。
可选的,所述目标对象包括目标实体物,所述子对象包括子实体物;或者,所述目标对象包括目标事件,所述子对象包括子事件。
可选的,所述第一请求中携带订阅项,所述方法还包括:当所述目标对象模型和/或所述至少一个子对象模型发生变化时,生成与所述订阅项相匹配的订阅信息;将所述订阅信息发送至所述终端设备。
在本方式中,服务器依据第一请求中携带的订阅项,为终端设备发送对应的订阅信息,既能够满足用户的订阅需求,也避免了对用户不关心的其它模型信息的跟踪,实现了对象信息的精细化管理。
可选的,所述订阅项包括以下一项或多项:空间属性,位置属性,成员属性。
可选的,所述子对象包括子实体物,所述变化包括:子对象模型变化,所述子对象模型变化用于表示所述目标对象模型对应的所述至少一个子对象模型的数量发生变化。
第三方面,本申请提供一种孪生目标对象的历史状态的装置,该装置包括:创建模块,用于针对目标对象以及附属于所述目标对象的至少一个子对象,分别建立目标对象模型以及至少一个子对象模型;其中,所述目标对象模型用于描述所述目标对象,所述至少一个子对象模型用于描述所述至少一个子对象,所述目标对象模型以及所述至少一个子对象模型均包括时间属性;处理模块,用于将所述目标对象模型与所述至少一个子对象模型中的所述时间属性的取值设置为第一历史时间,所述第一历史时间用于指示所述目标对象模型与所述至少一个子对象模型中数据对应的时间;建立所述目标对象模型与所述至少一个子对象模型的第一关联关系,所述第一关联关系用于将所述至少一个子对象模型关联至所述目标对象模型。
可选的,所述目标对象包括第一目标实体物,所述子对象包括子实体物;或者,所述目标对象包括目标事件,所述子对象包括子事件。
可选的,所述第一历史时间为当前时刻之前至少一个时刻或当前时刻之前至少一个持续时间段。
可选的,所述目标对象包括目标事件,所述子对象包括子事件时,所述至少一个子对象模型中的时间属性的值在所述目标对象模型中时间属性的值的范围内。
可选的,所述第一关联关系用于指示所述目标对象模型与所述至少一个子对象模型是父子关系。
可选的,所述处理模块用于建立所述目标对象模型与所述至少一个子对象模型的第一关联关系时,具体用于:将目标对象模型标识为父对象模型,将所述至少一个子对象模型标识为属于所述父对象模型的子对象模型。
可选的,所述目标对象模型以及所述至少一个子对象模型中还包括模型标识,所述模型标识用于唯一标识所述目标对象模型以及所述至少一个子对象模型。
可选的,所述目标对象模型以及所述至少一个子对象模型还包括成员属性,所述成员属性用于描述用户自定义数据。
可选的,所述目标对象包括第一目标实体物,所述子对象包括子实体物,并且,所述目标对象模型以及所述至
少一个子对象模型还包括空间属性,所述空间属性用于描述所述目标对象模型以及所述至少一个子对象模型的以下一项或多项信息:坐标系信息、几何形状信息、空间位置信息、空间旋转角度信息、空间范围信息。
可选的,所述空间属性包括所述空间范围信息,所述空间范围信息用于描述所述目标对象模型以及所述至少一个子对象模型所在的空间范围;其中,所述至少一个子对象模型中的空间范围不超过所述目标对象模型的空间范围。
可选的,所述处理模块还用于:在所述目标对象模型中建立第一坐标系,在第一子对象模型中建立第二坐标系,所述第一子对象模型为所述至少一个子对象模型中的一个,所述第二坐标系的原点是根据所述第一坐标系的原点确定的;根据所述第一坐标系确定所述目标对象模型以及所述至少一个子对象模型的空间位置信息;或者,根据所述第一坐标系确定所述目标对象模型的空间位置信息,以及根据所述第二坐标系确定所述至少一个子对象模型的空间位置信息;根据所述第一坐标系确定所述目标对象模型以及所述至少一个子对象模型的几何形状信息;或者,根据所述第一坐标系确定所述目标对象模型的几何形状信息,以及根据所述第二坐标系确定所述第一子对象模型的几何形状信息。
可选的,所述空间属性包括所述空间位置信息,所述目标对象模型以及所述至少一个子对象模型还包括位置属性,所述处理模块还用于:当所述目标对象的所述空间位置信息发生变化时,将所述空间位置信息的变化保存至所述目标对象模型中的位置属性;所述位置属性用于描述所述目标对象在当前时刻之前的至少一个时刻的位置变化,或者,在当前时刻之前至少一个持续时间段内的位置变化。
可选的,所述处理模块还用于:当第二子对象的空间位置不属于所述目标对象的空间范围内时,更新所述第二子对象对应的第二子对象模型与所述目标对象模型的第一关联关系,并更新所述第二子对象模型的空间属性以及时间属性;其中,所述第二子对象为所述至少一个子对象中的一个。
可选的,所述处理模块还用于:通过所述目标对象模型以及所述至少一个子对象模型,生成在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内,所述目标对象模型对应的父对象记录以及所述至少一个子对象模型对应的子对象记录;其中,所述父对象记录用于描述所述目标对象在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内的属性状态;所述子对象记录用于描述所述至少一个子对象在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内的属性状态。
可选的,所述处理模块还用于:建立所述父对象记录与所述至少一个子对象记录的第二关联关系,所述第二关联关系用于将所述至少一个子对象记录关联至所述父对象记录;其中,每个子对象记录具有唯一的父对象记录,所述父对象记录与所述至少一个子对象记录均包括时间范围,所述子对象记录的时间范围在所述父对象记录时间范围之内。
可选的,所述空间属性包括所述空间范围信息时,所述父对象记录及子对象记录用于描述所述目标对象及所述至少一个子对象在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内的空间范围的变更信息;在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内,所述至少一个子对象对应的子对象记录的空间范围被包含在所述父对象记录的空间范围内。
可选的,所述空间属性包括所述空间位置信息时,所述父对象记录及子对象记录用于描述所述目标对象及所述至少一个子对象在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内空间位置移动的变更信息;在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内,所述至少一个子对象的空间位置被包含在所述父对象记录的空间范围内。
可选的,所述空间属性包括所述几何形状信息时,所述父对象记录及子对象记录用于描述所述目标对象及所述至少一个子对象在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内几何形状的变更信息;在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内,所述至少一个子对象的几何形状被包含在所述父对象记录的几何形状内。
可选的,所述目标对象包括目标事件,所述子对象包括子事件,则所述创建模块还用于:针对第二目标实体物建立第二目标实体物模型,所述第二目标实体物模型用于描述所述第二目标实体物的历史状态,所述第二目标实体物模型中包括时间属性;所述处理模块还用于:将所述目标实体物模型中的时间属性的取值确定为第二历史时间,所述第二历史时间用于表示所述第二目标实体物模型中数据对应的时间;建立所述第二目标实体物模型与所述目标对象模型的第三关联关系,所述第三关联关系用于将所述第二目标实体物模型关联至所述目标对象模型。
可选的,所述第三关联关系用于指示所述第二目标实体物模型与所述目标对象模型具有空间关系,所述空间关
系用于指示所述目标对象模型对应的目标对象发生在所述第二目标实体物模型对应的第二目标实体物的空间范围内。
可选的,所述目标对象包括目标事件,所述子对象包括子事件;所述目标对象模型以及所述至少一个子对象模型中还包括空间属性,所述空间属性用于描述所述目标对象以及所述至少一个子对象发生时的位置信息。
可选的,所述空间属性包括空间范围和/或空间位置,其中,所述至少一个子对象模型的空间范围被包含在所述目标对象模型的空间范围内,或者,所述至少一个子对象模型的空间位置被包含在所述目标对象模型的空间位置的范围内。
可选的,所述目标对象包括目标事件,所述子对象包括子事件,所述处理模块还用于:根据所述目标对象在历史不同时间的属性参数,基于所述时间对应的所述目标对象模型,生成对应的目标事件对象记录;根据所述至少一个子对象在历史不同时间的属性参数,基于所述时间对应的所述至少一个子对象模型,生成对应的子事件对象记录;其中,所述属性参数包括属性名称、数据类型、属性值中的至少一种。
可选的,所述处理模块还用于:建立所述目标事件对象记录与所述至少一个子事件对象记录的第四关联关系,所述第四关联关系用于将所述至少一个子事件对象记录关联至所述目标事件对象记录;其中,所述至少一个子事件对象记录中的每个子事件对象记录具有唯一的目标事件对象记录,所述目标事件对象记录与所述至少一个子事件对象记录均包括时间范围,所述子事件对象记录的时间范围在所述目标事件对象记录时间范围之内。
第四方面,本申请提供一种订阅目标对象的历史状态的装置,该装置包括:创建模块,用于针对目标对象以及附属于所述目标对象的至少一个子对象,分别建立目标对象模型以及至少一个子对象模型;其中,所述目标对象模型用于描述所述目标对象,所述至少一个子对象模型用于描述所述至少一个子对象,所述目标对象模型以及所述至少一个子对象模型均包括时间属性;处理模块,用于将所述目标对象模型与所述至少一个子对象模型中的所述时间属性的取值设置为第一历史时间,所述第一历史时间用于指示所述目标对象模型与所述至少一个子对象模型中数据对应的时间;建立所述目标对象模型与所述至少一个子对象模型的第一关联关系,所述第一关联关系用于将所述至少一个子对象模型关联至所述目标对象模型;接收模块,用于接收来自终端设备的第一请求,所述第一请求用于请求订阅所述目标对象的历史状态;响应模块,用于响应于所述第一请求,对所述目标对象模型执行订阅操作;根据所述至少一个子对象模型与所述目标对象模型的关联关系,对所述至少一个子对象模型执行所述订阅操作。
第五方面,提供一种电子设备,包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述至少一个处理器通过执行所述存储器存储的指令,使得所述装置通过执行第一方面、第一方面任一种可选的实施方式、第二方面或第二方面任一种可选的实施方式中所述的方法。
第六方面,提供一种计算机可读存储介质,所述计算机可读存储介质用于存储指令,当所述指令被执行时,使如第一方面、第一方面任一种可选的实施方式、第二方面或第二方面任一种可选的实施方式中的方法被实现。
本申请实施例中第三、第四、第五以及第六方面中提供的一个或多个技术方案所具有的技术效果或优点,均可以由第一方面以及第二方面中提供的对应的一个或多个技术方案所具有的技术效果或优点对应解释。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种孪生目标对象的历史状态的方法的流程图;
图2为本申请实施例提供的目标事件与子事件时间范围的示意图;
图3为本申请实施例提供的一种可能的实体物之间关联关系的示意图;
图4为本申请实施例提供的一种成员结构的示意图;
图5为本申请实施例提供的一种为空间属性赋值的方法的流程图;
图6为本申请实施例提供的另一种为空间属性赋值的方法的流程图;
图7为本申请实施例提供的一种孪生第二目标实体物的历史状态的方法的流程图;
图8为本申请实施例提供的一种订阅目标对象历史状态的方法的流程图;
图9为本申请实施例提供的一种查询目标对象历史状态的方法的流程图;
图10为本申请实施例提供的一种删除目标对象历史状态的方法的流程图;
图11为本申请实施例提供一种孪生目标对象的历史状态的装置的结构示意图;
图12为本申请实施例提供一种订阅目标对象的历史状态的装置的结构示意图;
图13为本申请实施例提供的一种电子设备的结构示意图。
下面通过附图以及具体实施例对本申请技术方案做详细的说明,应当理解本申请实施例以及实施例中的具体特征是对本申请技术方案的详细的说明,而不是对本申请技术方案的限定,在不冲突的情况下,本申请实施例以及实施例中的技术特征可以相互组合。
需要理解的是,在本申请实施例的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。在本申请实施例的描述中“多个”,是指两个或两个以上。
本申请实施例中的术语“和/或”,仅仅是一种描述关联对象的第一关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
在数字孪生领域,可以将客观世界各种对象的历史状态孪生成对象的历史数据。例如,实体物具有空间的性质,该性质可以通过几何形状以及集合位置来进行标识,而实体物各个过去时刻的空间信息以及自身其它属性可以用于表示实体物的历史状态。将这些信息孪生成统一的数据结构就是对实体物历史状态的数字孪生。又例如,当需要对客观世界中发生的各种事件进行数字孪生时,可以将客观世界中的事件的历史状态孪生成事件对应的历史数据,而历史数据中各个过去时间的各种属性,可以被用来标识事件的历史状态。并且,不同的事件之间存在着内置的关联关系,这些关联关系也可以对其进行数字孪生,以实现对事件孪生后的数据更有效的管理。
基于以上思路,本申请提供一种孪生目标对象的历史状态的方法。
参见图1,为本申请实施例提供的一种孪生目标对象的历史状态的方法的流程图,该方法的执行主体可以是具有计算功能的各类设备,例如笔记本电脑、台式计算机以及服务器等等,也可以是各类移动终端设备,例如手机、平台以及其它可以实现计算功能的终端设备等。应理解,上述设备仅为举例说明,本申请不做限制。该方法具体步骤如下:
步骤S101:针对目标对象以及附属于该目标对象的至少一个子对象,分别建立目标对象模型以及至少一个子对象模型。
其中,上述目标对象可以包括第一目标实体物或者目标事件。进一步地,当目标对象包括第一目标实体物时,其对应的子对象包括子实体物,而当目标对象包括目标事件时,其对应的子对象则包括子事件。
针对上述不同的目标对象与子对象的组合,以下将分别介绍第一目标实体物与子实体物、目标事件与子事件的附属关系:
其一,第一目标实体物与子实体物之间的附属关系可以是整体与部分的关系,也可以是包含与被包含的关系。例如,第一目标实体物指的可以是车间甲,而附属于该第一目标实体物的子实体物则可以是该车间甲中的机器1、机器2、机器3等,体现第一目标实体物与子实体物之间包含与被包含的关系。又例如,第一目标实体物可以指的是某一卡车,而该第一目标实体物对应的子实体物则是卡车所牵引的半挂车、车头、轮胎等,体现目标实体物与子实体物之间整体与部分的关系。
而当目标对象包括第一目标实体物时,针对目标对象对应创建的目标对象模型也可以称为第一目标实体物模型,针对子对象对应创建的子对象模型也可以称为子实体物模型。
其二,目标事件与子事件之间的附属关系则可以是属于关系,换言之,目标事件与至少一个子事件之间存在概念上的整体与部分的关系。例如,假设目标事件为请假事件,而作为一个整体的该请假事件可以拆分为几个不同的子事件,例如:子事件1:请假人发起请假申请,子事件2:部门主管审批请假申请,子事件3:经理审批请假申请。因此,从概念上来说,这三个子事件均为目标事件的附属事件。
相应的,当目标对象包括目标事件时,针对目标对象对应创建的目标对象模型也可以称为目标事件模型,针对
子对象对应创建的子对象模型也可以称为子事件模型。
以上即为目标对象包含不同种类的对象时,这些对象之间的附属关系的含义。而对于本申请实施例提出的方案而言,目标对象模型对应于上述的目标对象,用于描述目标对象的历史状态;至少一个子对象模型对应于上述至少一个子对象,用于描述至少一个子对象的历史状态。其中,这些各个对象模型中,均包括时间属性,用于描述对象模型中的数据对应的时间。
需要说明的是,被创建的各个对象型的存在形式可以包括不同种类。例如,既可以是由数据表的形式保存在数据中,也可以是由图像的形式进行保存,还可以是由其他可能的数据保存形式进行存储,本申请不做限制。
步骤S102:将目标对象模型与至少一个子对象模型中的时间属性的取值设置为第一历史时间,第一历史时间用于指示目标对象模型与至少一个子对象模型中数据对应的时间。
可选的,各类对象模型中,时间属性是用于描述对象模型中的历史数据对应的时间。
示例性的,对于实体物模型而言,时间属性是用于描述实体物模型中的历史数据对应的时间。例如,对于车间甲而言,其对应的对象模型的第一条历史数据可能是车间甲投入使用的记录,而该记录对应的时间即为车间甲投入使用的时间,此时,该记录对应的时间属性的取值可能是:2020年1月1日。又例如,车间甲对应的模型中的某一条数据表示的是车间甲中出现了一台新机器,因此,该记录所对应的时间属性的取值则可能是:2020年6月1日。
而对于事件模型而言,时间属性则可以是用于描述各个事件发生或持续的时间。例如,假设目标事件为请假事件时,其对应的事件模型中的时间属性可以是该请假事件从发起请求到结束审批的全过程的时间,如:2020年1月1日-2020年1月2日。又例如,至少一个子事件中的子事件1(请假人发起请假申请)这一事件对应的事件模型的时间属性的取值可以是2020年1月1日10:00-2020年1月1日-12:00。
这样,用户可以通过这些对象模型中的时间属性,获知各个历史数据对应的时间,从而更清晰的获取对象模型对应的对象的历史状态以及其对应的信息,加强了对各类目标对象的信息的管理。
可选的,上述第一历史时间可以是当前时刻之前的至少一个时刻或是当前时刻之前的至少一个持续时间段。
示例性的,当目标对象模型是针对上述车间甲创建而成时,上述记录车间甲投入使用的历史数据对应的第一历史时间可以被记录为2020年1月1日的某一时刻,也可以被记录为1月1日这一整个持续时间段。具体历史数据选择哪一种第一历史时间进行记录,可以根据实际需求选择,本申请不做限定。
而当目标对象模型是针对目标事件进行创建时,在上述关联至目标对象模型的子对象模型中,其时间属性的值在目标对象模型中时间属性的值的范围内。
示例性的,参见图2,为本申请实施例提供的目标事件与子事件时间范围的示意图。从图2中可以看到,目标事件的从开始时刻到结束时刻所持续的时间,覆盖了子事件1、子事件2以及子事件3所持续的时间。
可选的,各类对象模型中还可以包括数据时间属性,该数据时间属性用于描述对象模型中的历史数据被记录或是被修改的时间。
示例性的,以上述车间甲的第一条历史数据为例进行说明。虽然车间甲的该条历史数据对应的时间属性表明该车间是于2020年1月1日投入使用的,但是,由于对象模型的创建发生在2022年1月1日,因此,该条历史数据对应的数据时间属性的取值即为2022年1月1日。以上述请假事件为例进行说明则是:虽然该对象模型的时间属性的取值可能是2020年1月1日-2020年1月2日,但是,对象模型的创建时间可能较事件发生的时间(例如2020年2月1日)推迟很多,因此,对于对象模型中的数据时间属性,其取值即为2020年2月1日。
另外,对于某些历史数据,可能出现错误修订的情况,例如某次错误勘定时,发现模型中的一条历史数据中的数值存在错误,可以对其进行修改,并且,此时该条历史数据对应的数据时间属性的取值也会及时更新,用以表示该条历史数据的最新修订时间。
在本方式中,通过数据时间属性,可以更加准确地向用户展示历史数据,并展示历史数据的更新情况,提高了用户精细化管理对象信息的程度。
步骤S103:建立目标对象模型与至少一个子对象模型的第一关联关系,第一关联关系用于将至少一个子对象模型关联至目标对象模型。
具体的,针对现实中,目标对象与至少一个子对象存在的关联关系,建立目标对象模型与至少一个子对象模型的第一关联关系,该第一关联关系用于将上述至少一个子对象模型关联到目标对象模型。
示例性的,为了便于明晰上述第一关联关系的含义,以下将分别针对实体物与事件,对上述第一关联关系进行
介绍。
参见图3,为本申请实施例提供的一种可能的实体物之间关联关系的示意图。在图3中,存在车间甲以及包含在车间甲中的机器1、机器2、机器3,假设以车间甲为目标实体物,那么,在创建实体物模型后,可以根据车间甲与机器1、2、3之间的包含与被包含的关系,建立车间甲对应的目标实体物模型与机器1、2、3对应的子实体物模型1、2、3之间的第一关联关系,该第一关联关系用于将子实体物模型1、2、3关联到目标实体物模型上。
对于现实中的事件而言,以上述请假事件为例,该请假事件可以被拆分为三个子事件,因此,对于针对上述请假事件以及三个子事件创建完成的目标对象模型以及三个子对象模型而言,可以根据请假事件与三个子事件整体与部分的关系,创建模型之间的第一关联关系,该第一关联关系可以用于将子对象模型关联到目标对象模型上。
可选的,上述第一关联关系可以用于指示目标对象模型和至少一个子对象模型是父子关系(或者说是包含与被包含关系、整体与部分关系等)。其中,将目标对象模型标识为父模型,将至少一个子对象模型标识为子模型,上述父子关系用于指示子模型从属于父模型,对应到现实中,则表示子对象从属于目标对象。
在本方案中,可以根据目标对象的情况,对各种目标对象进行数字孪生,得到其对应的对象模型,这样,通过对各个对象进行模型创建,为用户提供各对象的信息,实现了对目标对象的数字化管理。同时,通过时间属性记录了对象模型中各个历史数据对应的时间,使得对象模型中保存的信息更加准确、全面。并且,还可以根据现实中对象之间的层级关系,创建对象模型之间的关联关系,这样,通过对象模型间的关联关系,向用户提供了现实中对象之间的关系的信息,提高了用户管理目标对象的效率。
可选的,上述创建的各个对象模型还包括模型标识,该模型标识用于唯一标识对应的对象模型。
示例性的,该模型标识可以是具有固定长度的数字序列。例如,每个对象模型可以由6位数字身份标识号(Identity,ID)唯一标识,目标对象对应的目标对象模型的唯一标识可以记为000010,子对象1对应的子对象模型1的唯一标识可以记为000110,子对象2对应的子对象模型2的唯一标识可以记为000210,子对象3对应的子对象模型3的唯一标识可以记为000310;这样,每个对象模型都可以有其唯一对应的模型标识。
在本方式中,每个模型都具有其全系统唯一模型标识,使得后续访问时能够实现对模型的精准查找,提高了对模型的管理效率。
可选的,上述创建的各个模型还包括成员属性,该成员属性用于描述用户自定义的数据。
具体的,模型的成员属性中可以包含若干成员。所谓成员,指的是一种数据结构,所有对象(实体物或事件)的差异化属性的信息,均可以通过该数据结构进行存储,并保存在该其对应的模型中。
示例性的,参见图4,为本申请实施例提供的一种成员结构的示意图。在图4中,成员包括了不同的成员信息,例如,成员ID、成员名称、成员数据类型以及成员值等。通过这种结构化的数据信息,用户可以为不同的实体物模型增添其对应的成员信息。例如,车间甲对应的目标实体物模型中,可以增加描述车间人数的成员信息,或是描述车间中机器数量的成员信息。依据如图4所示的成员结构,用于描述车间人数的成员信息以及用于描述车间中机器数量的成员信息则可以表示为如表1所示的数据。
表1
在本方式中,用户可以通过成员属性,分别将每个对象(实体物或事件)的差异化信息保存在其对应的模型中,避免了因单独的对象(实体物或事件)所具有的特异化信息而对整体的模型进行修改,提高了本方案的适配性与实用性。
以上介绍了在模型创建时,不论是针对实体物还是事件都可以进行的操作步骤。而面对实体物和事件之间的不同特性,以下将分别介绍如何针对实体物或事件的特性进行模型创建的方法。
首先介绍当目标对象包括第一目标实体物,子对象包括子实体物时,创建对象模型时还可以执行的操作步骤。
可选的,在针对实体物进行模型创建时,创建得到的各类对象模型中还包括空间属性,该空间属性用于描述目标对象模型以及至少一个子对象模型的以下一项或多项信息:坐标系信息、几何形状信息、空间位置信息、空间旋转角度信息、空间范围信息。
其中,坐标系信息用于指示对象模型具体选定的参考坐标系的信息,空间位置信息用于指示对象模型所对应的对象所处的位置信息,几何形状信息用于指示对象模型对应的对象形状的信息,空间范围信息用于指示对象模型对应的对象所在的空间范围信息。其中,需要注意的是,至少一个子对象模型中的空间范围不超过目标对象模型的空间范围。
可选的,基于上述空间属性所包含的信息,对象模型间的第一关联关系还包括在过去时刻,实体物几何形状之间的几何关系,以及空间位置之间的空间关系。
其中,实体物几何形状之间的几何关系用于指示实体物之间存在的相交、相离、接触等关系,同时还可以指示实体物之间的距离等数据。
实体物空间位置之间的空间关系用于指示对象模型对应的实体物在空间上相互之间有联系,例如:包含、相离、接触等,也用于指示对象模型对应的实体物之间有一定的空间距离。
通过上述方式,在对象模型中增加空间属性,使得对象模型所包含的对象信息更加全面完善。同时,对象模型间的关联关系还包括了几何关系以及空间关系,使得各个对象模型之间的联系更加紧密,有助于实现针对对象模型进行的快速查找等管理。
可选的,各个对象模型中空间属性的取值可以通过以下不同方式完成。
方式一、单坐标系
参见图5,为本申请实施例提供的一种为空间属性赋值的方法的流程图。
步骤S501:在目标对象模型中建立第一坐标系,该第一坐标系可以保存在目标对象模型中的空间属性中。
步骤S502:根据第一坐标系确定目标对象模型以及该目标对象关联的至少一个子对象模型的空间位置信息。
步骤S503:根据第一坐标系确定目标对象模型以及至少一个子对象模型的几何形状信息。
步骤S504:服务器根据上述空间位置信息以及几何形状信息,为目标对象模型以及至少一个子对象模型中的空间属性赋值。
在本方式中,服务器仅根据目标对象模型中的第一坐标系,为目标对象以及目标对象模型所关联的子对象模型的空间属性赋值,这样,目标对象与子对象拥有了统一的参考坐标系,其相对位置的关系显示的更为直观且密切,进一步地加强了目标对象模型以及子对象模型之间的关联性,提高了对象模型的管理效率。
方式二、双坐标系
参见图6,为本申请实施例提供的另一种为空间属性赋值的方法的流程图。
步骤S601:服务器在目标对象模型中建立第一坐标系,在第一子对象模型中建立第二坐标系;其中,第一子对象模型为上述至少一个子对象模型中的一个,第二坐标系的原点是根据第一坐标系的原点确定的。
步骤S602:服务器根据第一坐标系确定目标对象模型的空间位置信息,并根据第二坐标系确定与上述目标对象模型关联的至少一个子对象模型的空间位置关系。
这样,所有与目标对象模型关联的子对象模型的空间位置信息均是基于同一个参考坐标系确定的,更有助于对子对象模型的管理。
步骤S603:服务器根据第一坐标系确定目标对象模型的几何形状信息,并根据第二坐标系确定与上述目标对象模型关联的至少一个子对象模型的几何形状信息。
步骤S604:服务器根据上述空间位置信息以及几何形状信息,为目标对象模型以及至少一个子对象模型中的空间属性赋值。
在本方式中,服务器分别在目标对象模型以及子对象模型中建立了第一坐标系以及第二坐标系,并且,第二坐标系的原点是根据第一坐标系的原点建立的,这样,赋值后的各类模型的空间属性即保有内置的关联关系,也具备一定的独立性,提高了精细化管理对象模型的程度。
可选的,上述各类对象模型中还包括位置属性,该位置属性用于描述目标对象在当前时刻之前的至少一个时刻的位置变化,或者,在当前时刻之前的至少一个持续时间段内的位置变化。
示例性的,服务器在为模型中的位置属性进行赋值时,可以在第一目标实体物的空间位置信息发生变化时,将该空间位置信息的变化保存在目标对象模型中。同样,当子实体物的空间位置信息发生变化时,服务器也可以将对应的信息保存在子实体物对应的子对象模型中。
在本方式中,通过位置属性记录了实体物的位置变化情况,完善了对象模型中保有的数据,提高了管理对象模型的程度。
可选的,当上述至少一个子实体物中的第二子实体物的空间位置发生变化,从目标实体物的空间范围内移出时,服务器更新该第二子实体物对应的第二子实体物模型与目标实体物模型的第一关联关系,并更新该第二子实体物模型的空间属性以及时间属性,以确保将该位置变化被记录在第二子实体物模型中。
以车间甲为目标实体物为例,车间甲中的机器1为上述第二子实体物,当机器1出现了从车间甲转移至另一车间的记录时,服务器可以对应的更新车间甲以及机器1对应的目标实体物模型与第二子实体物模型的第一关联关系,并同时更新第二子实体物模型的空间属性以及时间属性,以确保该记录能顺利保存在第二子实体物模型中。
可选的,在孪生第一目标实体物或是至少一个子实体物的历史状态时,还可以通过第一目标实体物或至少一个子实体物对应的目标对象模型或至少一个子对象模型,生成在当前时刻之前至少一个时刻或至少一个持续时间段内,各个对象模型对应的对象记录。
其中,通过目标对象模型生成的对象记录可以被标记为父对象记录,用于描述目标对象在当前时刻之前至少一个时刻或至少一个持续时间段内的属性状态。通过至少一个子对象模型生成的对象记录可以被称为子对象记录,用于描述至少一个子对象在当前时刻之前至少一个时刻或至少一个持续时间段内的属性状态。
示例性的,通过完成建立的目标对象模型中包含的历史状态,生成一条用于描述该历史状态的父对象记录,该记录中包含了目标对象模型对应历史状态中的各个属性的值。例如,根据车间甲成立这一历史状态,生成一条父对象记录,该父对象记录中则包含了车间甲投入使用的时间、车间甲所处的空间位置、车间甲投入使用时包含的车间人员等等。
在本方式中,通过模型生成应的对象记录,使得用户能够获得关于对象统一且规范的历史状态信息,提高了用户的使用体验,并且降低了获取信息的复杂度。
可选的,对于生成的父对象记录以及至少一个子对象记录,还可以执行以下处理方式:建立父对象记录与至少一个子对象记录的第二关联关系,该第二关联关系用于将至少一个子对象记录关联至父对象记录,或者,该第二关联关系还用于指示父对象记录对应的实体物模型与至少一个子对象记录对应至少一个子实体物模型具有第一关联关系。
其中,至少一个子对象记录中的每个子对象记录都具有唯一的父对象记录,且记录中均包括时间范围这一属性,用于指示各个记录所对应的属性状态所持续的时间范围。并且,至少一个子对象记录中的每个子对象记录的时间范围都在父对象记录的时间范围之内。
在本方式中,将生成的父对象记录与子对象记录进行联系,能够贯彻实体物之间的关联关系,加强对象之间、信息之间的关联关系,提高了对象信息管理的效率。
可选的,当目标对象模型的空间属性中包含空间范围信息时,上述目标对象模型对应的父对象记录以及至少一个子对象模型对应的子对象记录用于描述该目标对象以及至少一个子对象在当前时刻之前至少一个时刻或当前时刻之前至少一个持续时间段内的空间范围的变更信息。
需要说明的是,在当前时刻之前的至少一个时刻或当前时刻之前的至少一个持续时间段内,子对象记录中的空间范围被包含在所述父对象记录的空间范围内。
在本方式中,对象记录中包含了对应的实体物的空间范围变化情况,能够有效地帮助用户获得对应信息。
可选的,当目标对象模型的空间属性中包含空间位置信息时,上述目标对象模型对应的父对象记录以及至少一个子对象模型对应的子对象记录还用于描述该目标对象以及至少一个子对象在当前时刻之前至少一个时刻或当前时刻之前至少一个持续时间段内的空间位置移动的变更信息。
需要说明的是,在当前时刻之前的至少一个时刻或当前时刻之前的至少一个持续时间段内,至少一个子对象的空间位置被包含在所述父对象记录的空间范围内。
在本方式中,对象记录中包含了对应的对象的空间位置变化情况,能够有效地帮助用户获得对应信息。
可选的,当目标对象模型的空间属性中包含几何形状信息时,上述目标对象模型对应的父对象记录以及至少一
个子实体物模型对应的子对象记录用于描述该目标对象以及至少一个子对象在当前时刻之前至少一个时刻或当前时刻之前至少一个持续时间段内的几何形状的变更信息。
需要说明的是,在当前时刻之前的至少一个时刻或当前时刻之前的至少一个持续时间段内,子对象记录中的几何形状被包含在所述父对象记录的几何形状内。
在本方式中,对象记录中包含了对应的实体物的几何形状变化情况,能够有效地帮助用户获得对应信息。
以上介绍了目标对象包括第一目标实体物时,可以执行的方法步骤。以下将对目标对象包括目标事件,子对象包括子事件时,创建模型时可以执行的步骤进行介绍。
应理解,在现实世界中,事件的发生通常会与实体物有关,因此,在针对事件创建模型时,还可以对与该事件相关的实体物一并进行模型创建。为了与上述目标对象可能包括的第一目标实体物进行说明上的区分,以下介绍的与事件相关的实体物将被记为第二目标实体物。需要说明的是,该第二目标实体物指的是与目标对象包括的目标事件相关的实体物,而上述第一目标实体物可以是任意实体物。换言之,在某种程度上,第一目标实体物中可以包括第二目标实体物。
参见图7,为本申请实施例提供的一种孪生第二目标实体物的历史状态的方法的流程图,该方法具体步骤如下:
步骤S701:针对第二目标实体物建立第二目标实体物模型,该第二目标实体物模型用于描述第二目标实体物的历史状态,且该模型中包括时间属性。
步骤S702:将第二目标实体物模型中的时间属性的取值确定为第二历史时间,该第二历史时间用于表示第二目标实体物模型中数据对应的时间。
其中,第二目标实体物模型中的时间属性的取值用于描述的是第二目标实体物模型中存在的数据对应的时间,例如,假设第二目标实体物为笔记本电脑时,那么在该第二目标实体物对应的第二目标实体物模型中存在某一历史数据,记录了该实体物投入使用的信息,那么,该数据对应的时间属性的取值即为该实体物投入使用的时间,而非该历史数据被记录的时间。
步骤S703:建立第二目标实体物模型与目标事件模型的第三关联关系,该第三关联关系用于将第二目标实体物模型关联至目标事件模型。
应理解,上述第二目标实体物模型创建的具体步骤与目标对象模型创建的具体步骤类似,此处不再赘述。
具体的,在创建第二目标实体物模型后,基于第二目标实体物与目标事件在现实中的关联关系,建立第二目标实体物模型与目标对象模型之间的第三关联关系。例如,假设第二目标实体物为工厂A,而目标对象为发生在工厂A中的请假事件,那么,此时,第二目标实体物与目标对象具有空间关系,该空间关系指示了目标对象发生在目标实体物的空间范围内。因此,在创建完成第二目标实体物模型以及目标事件模型后,依据上述空间管理,建立第二目标实体物模型与目标对象模型之间的第三关联关系,将第二目标实体物模型关联至目标对象模型。
在本方式中,创建了与目标对象模型相关联的第二目标实体物模型,完善了对事件历史状态进行孪生的方案,加强了模型中保存信息的全面性,提高了事件信息的管理效率。
可选的,在上述创建针对各类事件创建的对象模型中,还包括空间属性,该空间属性用于描述目标事件以及至少一个子事件发生时的位置信息。
示例性的,以上述目标事件为请假事件,至少一个子事件为请假事件拆分出的子事件1、2、3为例,请假事件发生时的位置可能是工厂A,而子事件发生时的位置则可能分别是车间甲、车间甲以及行政楼。这些位置信息被对应保存在创建出的对象模型中,以完善模型中的数据对于发生的事件的描述。
可选的,上述模型中的空间属性可以包括空间范围和/或空间位置。其中,子对象模型中记录的空间范围被包含在子对象模型对应的父模型的空间范围内;或者说,子对象模型中记录的空间位置被包含在该子对象模型对应的父模型的空间位置的范围内。
可选的,在孪生目标对象模型、至少一个子对象模型以及第二目标实体物模型的历史状态时,还可以根据目标事件在历史不同时间的属性参数,基于该事件对应的目标对象模型,生成对应的目标事件对象记录;其次,根据上述至少一个子对象模型在历史不同时间的属性参数,基于该时间对应的至少一个子对象模型,生成对应的子事件对象记录。其中属性参数包括属性名称、数据类型、属性值中的至少一种。
示例性的,通过完成建立的目标对象模型中包含的历史状态,生成一条用于描述该历史状态的目标事件对象记录,该记录中包含了目标对象模型对应的历史状态中的各个属性的值。示例性的,该目标事件记录中可以包含请假
事件发生的时间、空间位置以及空间范围。
在本方式中,通过模型生成应的对象记录,使得用户能够获得关于对象统一且规范的历史状态信息,提高了用户的使用体验,并且降低了获取信息的复杂度。
可选的,对于生成的目标事件对象记录以及至少一个子事件对象记录,还可以执行以下处理方式:
建立目标事件对象记录与至少一个子事件对象记录的第四关联关系,该第四关联关系用于将至少一个子事件对象记录关联至目标事件对象记录。
其中,至少一个子事件对象记录中的每个子事件对象记录都有且只有一个目标事件对象记录,所有对象记录中均包含时间范围这一属性,用于指示各个记录所对应的属性状态所持续的时间范围。并且,子事件对象记录中的时间范围在目标事件对象记录的时间范围之内。
在本方式中,将生成的目标事件对象记录与子事件对象记录进行联系,能够贯彻对象之间的关联关系,加强了对象之间、信息之间的关联关系,提高了对象信息管理的效率。
以上介绍了通过建立对象模型实现对象(即实体物或事件)历史状态的孪生的方案。基于同一发明构思,以下介绍建立后的模型的几种可能的应用。
应用1、订阅对象的历史状态
参见图8,为本申请实施例提供的一种订阅目标对象历史状态的方法的流程图。该方法由与终端设备通信相连的计算机、服务器等设备共同执行,为便于说明,下面以服务器与终端设备为例,描述本方法的具体实施步骤。
步骤S801:服务器接收来自终端设备的第一请求,该第一请求用于请求订阅目标对象的历史状态。
其中,该第一请求中可以携带用于确定目标对象模型的信息,而该信息具体可以是:目标对象模型的模型标识;或者,目标对象模型中的一个或多个属性的值;或者,目标对象模型的模型标识以及目标对象模型中的一个或多个属性的值。
例如,当终端设备需要订阅目标对象模型时,可以向服务器发送第一请求,该第一请求中携带了目标对象模型的模型标识,服务器接收到该第一请求后,即可根据该模型标识完成对目标对象模型的订阅操作。
这样,服务器可以通过第一请求中携带的信息,从若干对象模型中确定出目标对象模型。而这若干对象模型则存储在服务器对应的数据库中(在创建完成若干对象模型后,这些对象模型即可存储在服务器对应的数据库中,如此,确保了后续信息查询的可靠性)。
步骤S802:服务器响应于第一请求,对目标对象模型执行订阅操作。
示例性的,该订阅操作可以是将被订阅的目标对象模型的标识信息保存在对应的订阅数据表中,该订阅数据表中记录有所有被订阅的对象模型的标识信息。
仍以目标对象模型为例进行说明,服务器在接收到请求订阅目标对象模型的第一请求后,响应于该第一请求,将目标对象模型的模型标识保存至订阅数据表中,用以实现对目标对象模型的订阅。
步骤S803:服务器从若干对象模型中确定出至少一个子对象模型,所述至少一个子对象模型与目标对象模型具有第一关联关系;对至少一个子对象模型执行订阅操作。
示例性的,服务器在确定目标对象模型后,从目标对象模型中获取目标对象模型与至少一个子对象模型的第一关联关系的相关信息,并根据该第一关联关系的信息从若干对象模型中确定出上述至少一个子对象模型,即,子对象模型1、子对象模型2、子对象模型3,并随即订阅这三个对象模型。类似的,当服务器接收到的第一请求是用于订阅子对象模型1时,根据子对象模型1中与第一关联关系相关的信息,服务器可以根据该第一关联关系确定目标对象模型,并随之订阅目标对象模型。换言之,服务器既可以根据关联关系,从父模型中确定并订阅子模型,也可以根据关联关系,从子模型中确定并订阅父模型。
步骤S804:当目标对象模型和/或至少一个子对象模型发生变化时,将变化情况发送至终端设备。
在完成对目标对象模型与至少一个子对象模型的订阅之后,服务器会检测这些模型的数据情况,一旦发生目标对象模型和/或至少一个子对象模型的数据发生变换,或是发生了子对象模型变化时,服务器即刻向终端设备发送上述变化情况。其中,子对象模型变化用于指示与目标对象模型具有第一关联关系的子对象模型的数量发生变化,以目标对象模型是车间甲为例,当车间甲中的部分机器被淘汰时,车间甲中存在的机器数量会发生变化,此时,与目标实体物模型具有第一关联关系的子对象模型的数量也会发生变化,此时,即表示发生了子对象模型变化。
在本方案中,基于模型之间存在第一关联关系,在订阅目标对象模型后,可以根据目标对象模型中的关联关系,
对被关联到的至少一个子对象模型执行同样的订阅操作。这样在用户只需发出订阅目标对象模型的指示,就可以同时订阅与目标对象模型相关联的模型,并及时获得这些模型的变化信息。能够以简单的操作获得更全面的信息,提高了订阅操作的智能化程度。
需要说明的是,以上仅以模型之间的第一关联关系为例进行了说明,当目标对象包括目标事件时,其对应创建的目标对象模型还可能会包含有与第二目标实体物模型之间的第三关联关系。因此,在实际应用中,还可以根据目标对象模型与第二目标实体物模型之间的第三关联关系,进行上述订阅过程;或者同时根据目标对象模型中包括的第一关联关系以及第三关联关系进行上述订阅操作,即:在请求订阅目标对象模型后,同时订阅至少一个子对象模型以及第二目标实体物模型。
可选的,服务器向终端设备发送变化情况时,可以选择以下方式进行发送:
当目标对象模型和/或至少一个子对象模型发生变化时,生成与订阅项相匹配的订阅信息,其中,订阅项是第一请求中携带的;将订阅信息发送至终端设备。
其中,第一请求中携带的订阅项可以是对象模型中包含的各类属性的名称,例如空间属性或是位置属性等;还可以是对象模型中用户需要重点关注的部分信息,例如,可以是成员属性中成员的名称。
这样,当对象模型中的数据发生变化时,服务器可以根据第一请求中包含的订阅项,对应地生成订阅信息,例如,第一请求中携带的订阅项仅包括空间属性,当目标对象模型和/或至少一个子对象模型的空间属性发生变化时,服务器生成的订阅信息可以是只用于指示目标对象模型和/或至少一个子对象模型的空间属性的变化的订阅信息。
在本方式中,服务器依据第一请求中携带的订阅项,为终端设备发送对应的订阅信息,既能够满足用户的订阅需求,也避免了用于对其它模型信息的跟踪,实现了对象信息的精细化管理。
应用2、查询目标对象的历史状态
参见图9,为本申请实施例提供的一种查询目标对象历史状态的方法的流程图。该方法具体步骤如下:
S901:服务器接收来自终端设备的第二请求,该第二请求用于查询目标对象模型。
与应用1类似,该第二请求中可以携带用于确定目标对象模型的信息,而该信息具体可以是:目标对象模型的模型标识;或者,目标对象模型中的一个或多个属性的值;或者,目标对象模型的模型标识以及目标对象模型中的一个或多个属性的值。
步骤S902:服务器响应于该第二请求,从若干对象模型中确定出目标对象模型。
步骤S903:服务器根据目标对象模型中有关第一关联关系的信息,从若干对象模型中确定出至少一个子对象模型,该至少一个子对象模型对应的实体物与目标对象模型对应的实体物具有第一关联关系。
步骤S904:服务器向终端设备输出目标对象模型与至少一个子对象模型的信息。
这样,服务器即可根据目标对象模型与至少一个子对象模型之间的第一关联关系,从父模型确定出子模型,并同时将其输送至终端设备,以完成对第二请求的响应。
在本方式中,用户只需要输入一个对象模型的查询信息,即可获取若干与该对象模型关联的对象模型的信息,简化了用户的查询操作,提高了用户的使用体验。
可选的,第二请求中还可以携带查询项,用以指示服务器根据对应的查询项进行反馈。
示例性的,查询项可以是对象模型中的空间属性和/或成员属性,而服务器在接收到包含查询项的第二请求时,从确定出的目标对象模型中确定出空间属性和/或成员属性的信息,并生成对应的查询信息发送至终端设备。
在本方式中,通过查询项的限制,可以由针对性的发送对象模型中的信息,提高了对对象模型管理的精细化程度。
应用3、删除目标对象的历史状态
参见图10,为本申请实施例提供的一种删除目标对象历史状态的方法的流程图。该方法具体步骤如下:
S1001:服务器接收来自终端设备的第三请求,该第三请求用于删除目标对象模型。
S1002:响应于第三请求,服务器从若干对象模型中确定出目标对象模型,并根据目标对象模型中的有关第一关联关系的信息,确定出与目标对象模型具有第一关联关系的至少一个子对象模型。
S1003:删除目标对象模型与至少一个子对象模型。
在本方式中,通过目标对象模型与至少一个子对象模型的第一关联关系,在接收到删除目标对象模型的指令后,同时删除与目标对象模型具有第一关联关系的至少一个子对象模型,简化了用户操作,提高了用于的使用体验。
以上介绍了基于目标对象模型与至少一个子对象模型之间的第一关联关系进行的订阅、查询、删除操作,但是实际使用中,不仅仅可以只根据第一关联关系进行上述操作,还可以根据各个对象模型之间的空间关系进行对象模型的订阅、查询、删除操作。
以空间属性为例,如图3所示,机器1、2、3所占据的空间范围包含于车间甲所占据的空间范围内,此时,车间甲与机器1、2、3存在包含与被包含的空间关系。这样,在执行订阅、查询、删除操作时,服务器可以根据车间甲对应的目标实体物模型具有的空间关系,确定出机器1、2、3对应的子实体物模型1、2、3,并对其执行对应地操作。
基于同一发明构思,本申请实施例还提供一种孪生实体物的历史状态的装置。
参见图11,为本申请实施例提供一种孪生目标对象的历史状态的装置的结构示意图,该装置可以是由上述服务器或者是该设备中的芯片或集成电路等,该装置包括用于执行上述方法实施例中由服务器执行的方法的模块/单元/技术手段。
示例性的,该装置1100包括:
创建模块1101,用于针对目标对象以及附属于所述目标对象的至少一个子对象,分别建立目标对象模型以及至少一个子对象模型;其中,所述目标对象模型用于描述所述目标对象,所述至少一个子对象模型用于描述所述至少一个子对象,所述目标对象模型以及所述至少一个子对象模型均包括时间属性;
处理模块1102,用于将所述目标对象模型与所述至少一个子对象模型中的所述时间属性的取值设置为历史时间,所述历史时间用于指示所述目标对象模型与所述至少一个子对象模型中数据对应的时间;建立所述目标对象模型与所述至少一个子对象模型的第一关联关系,所述第一关联关系用于将所述至少一个子对象模型关联至所述目标对象模型。
作为一种实施例,图11论述的装置可以用于执行图1所示的实施例中所述的方法,因此,对于该装置的各功能模块所能够实现的功能等可参考图1所示的实施例的描述,此处不再赘述。
基于同一发明构思,本申请实施例还提供一种订阅目标对象的历史状态的装置。
参见图12,为本申请实施例提供一种订阅目标对象的历史状态的装置的结构示意图,该装置可以是由上述服务器或者是该设备中的芯片或集成电路等,该装置包括用于执行上述方法实施例中由服务器执行的方法的模块/单元/技术手段。
示例性的,该装置1200包括:
创建模块1201,用于针对目标对象以及附属于所述目标对象的至少一个子对象,分别建立目标对象模型以及至少一个子对象模型;其中,所述目标对象模型用于描述所述目标对象,所述至少一个子对象模型用于描述所述至少一个子对象,所述目标对象模型以及所述至少一个子对象模型均包括时间属性;
处理模块1202,用于将所述目标对象模型与所述至少一个子对象模型中的所述时间属性的取值设置为历史时间,所述历史时间用于指示所述目标对象模型与所述至少一个子对象模型中数据对应的时间;建立所述目标对象模型与所述至少一个子对象模型的关联关系,所述关联关系用于将所述至少一个子对象模型关联至所述目标对象模型;
接收模块1203,用于接收来自终端设备的第一请求,所述第一请求用于请求订阅所述目标对象的历史状态;
响应模块1204,用于响应于所述第一请求,对所述目标对象模型执行订阅操作;根据所述至少一个子对象模型与所述目标对象模型的关联关系,对所述至少一个子对象模型执行所述订阅操作。
作为一种实施例,图12论述的装置可以用于执行图8所示的实施例中所述的方法,因此,对于该装置的各功能模块所能够实现的功能等可参考图8所示的实施例的描述,此处不再赘述。
作为上述装置一种可能的产品形态,参见图13,本申请实施例还提供一种电子设备1300,包括:
至少一个处理器1301;以及与所述至少一个处理器1301通信连接的通信接口1303;所述至少一个处理器1301通过执行存储器1302存储的指令,使得所述电子设备1300通过所述通信接口1303执行上述方法实施例中任一设备所执行的方法步骤。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。
Claims (33)
- 一种孪生目标对象的历史状态的方法,其特征在于,包括:针对目标对象以及附属于所述目标对象的至少一个子对象,分别建立目标对象模型以及至少一个子对象模型;其中,所述目标对象模型用于描述所述目标对象,所述至少一个子对象模型用于描述所述至少一个子对象,所述目标对象模型以及所述至少一个子对象模型均包括时间属性;将所述目标对象模型与所述至少一个子对象模型中的所述时间属性的取值设置为第一历史时间,所述第一历史时间用于指示所述目标对象模型与所述至少一个子对象模型中数据对应的时间;建立所述目标对象模型与所述至少一个子对象模型的第一关联关系,所述第一关联关系用于将所述至少一个子对象模型关联至所述目标对象模型。
- 如权利要求1所述的方法,其特征在于,所述目标对象包括第一目标实体物,所述子对象包括子实体物;或者,所述目标对象包括目标事件,所述子对象包括子事件。
- 如权利要求1或2所述的方法,其特征在于,所述第一历史时间为当前时刻之前至少一个时刻或当前时刻之前至少一个持续时间段。
- 如权利要求3所述的方法,其特征在于,所述目标对象包括目标事件,所述子对象包括子事件时,所述至少一个子对象模型中的时间属性的值在所述目标对象模型中时间属性的值的范围内。
- 如权利要求1或2所述的方法,其特征在于,所述第一关联关系用于指示所述目标对象模型与所述至少一个子对象模型是父子关系。
- 如权利要求1或2所述的方法,其特征在于,所述建立所述目标对象模型与所述至少一个子对象模型的第一关联关系,包括:将目标对象模型标识为父对象模型,将所述至少一个子对象模型标识为属于所述父对象模型的子对象模型。
- 如权利要求1或2所述的方法,其特征在于,所述目标对象模型以及所述至少一个子对象模型中还包括模型标识,所述模型标识用于唯一标识所述目标对象模型以及所述至少一个子对象模型。
- 如权利要求1或2所述的方法,其特征在于,所述目标对象模型以及所述至少一个子对象模型还包括成员属性,所述成员属性用于描述用户自定义数据。
- 如权利要求1或2所述的方法,其特征在于,所述目标对象包括第一目标实体物,所述子对象包括子实体物,并且,所述目标对象模型以及所述至少一个子对象模型还包括空间属性,所述空间属性用于描述所述目标对象模型以及所述至少一个子对象模型的以下一项或多项信息:坐标系信息、几何形状信息、空间位置信息、空间旋转角度信息、空间范围信息。
- 如权利要求9所述的方法,其特征在于,所述空间属性包括所述空间范围信息,所述空间范围信息用于描述所述目标对象模型以及所述至少一个子对象模型所在的空间范围;其中,所述至少一个子对象模型中的空间范围不超过所述目标对象模型的空间范围。
- 如权利要求9所述的方法,其特征在于,所述方法还包括:在所述目标对象模型中建立第一坐标系,在第一子对象模型中建立第二坐标系,所述第一子对象模型为所述至少一个子对象模型中的一个,所述第二坐标系的原点是根据所述第一坐标系的原点确定的;根据所述第一坐标系确定所述目标对象模型以及所述至少一个子对象模型的空间位置信息;或者,根据所述第一坐标系确定所述目标对象模型的空间位置信息,以及根据所述第二坐标系确定所述至少一个子对象模型的空间位置信息;根据所述第一坐标系确定所述目标对象模型以及所述至少一个子对象模型的几何形状信息;或者,根据所述第一坐标系确定所述目标对象模型的几何形状信息,以及根据所述第二坐标系确定所述第一子对象模型的几何形状信息。
- 如权利要求9所述的方法,其特征在于,所述空间属性包括所述空间位置信息,所述目标对象模型以及所述至少一个子对象模型还包括位置属性,所述方法还包括:当所述目标对象的所述空间位置信息发生变化时,将所述空间位置信息的变化保存至所述目标对象模型中的位 置属性;所述位置属性用于描述所述目标对象在当前时刻之前的至少一个时刻的位置变化,或者,在当前时刻之前至少一个持续时间段内的位置变化。
- 如权利要求9所述的方法,其特征在于,所述方法还包括:当第二子对象的空间位置不属于所述目标对象的空间范围内时,更新所述第二子对象对应的第二子对象模型与所述目标对象模型的第一关联关系,并更新所述第二子对象模型的空间属性以及时间属性;其中,所述第二子对象为所述至少一个子对象中的一个。
- 如权利要求10-13任一项所述的方法,其特征在于,所述方法还包括:通过所述目标对象模型以及所述至少一个子对象模型,生成在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内,所述目标对象模型对应的父对象记录以及所述至少一个子对象模型对应的子对象记录;其中,所述父对象记录用于描述所述目标对象在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内的属性状态;所述子对象记录用于描述所述至少一个子对象在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内的属性状态。
- 如权利要求14所述的方法,其特征在于,所述方法还包括:建立所述父对象记录与所述至少一个子对象记录的第二关联关系,所述第二关联关系用于将所述至少一个子对象记录关联至所述父对象记录;其中,每个子对象记录具有唯一的父对象记录,所述父对象记录与所述至少一个子对象记录均包括时间范围,所述子对象记录的时间范围在所述父对象记录时间范围之内。
- 如权利要求14所述的方法,其特征在于,所述空间属性包括所述空间范围信息时,所述父对象记录及子对象记录用于描述所述目标对象及所述至少一个子对象在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内的空间范围的变更信息;在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内,所述至少一个子对象对应的子对象记录的空间范围被包含在所述父对象记录的空间范围内。
- 如权利要求14所述的方法,其特征在于,所述空间属性包括所述空间位置信息时,所述父对象记录及子对象记录用于描述所述目标对象及所述至少一个子对象在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内空间位置移动的变更信息;在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内,所述至少一个子对象的空间位置被包含在所述父对象记录的空间范围内。
- 如权利要求14所述的方法,其特征在于,所述空间属性包括所述几何形状信息时,所述父对象记录及子对象记录用于描述所述目标对象及所述至少一个子对象在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内几何形状的变更信息;在所述当前时刻之前至少一个时刻或所述当前时刻之前至少一个持续时间段内,所述至少一个子对象的几何形状被包含在所述父对象记录的几何形状内。
- 如权利要求1或2所述的方法,其特征在于,所述目标对象包括目标事件,所述子对象包括子事件,则所述方法还包括:针对第二目标实体物建立第二目标实体物模型,所述第二目标实体物模型用于描述所述第二目标实体物的历史状态,所述第二目标实体物模型中包括时间属性;将所述目标实体物模型中的时间属性的取值确定为第二历史时间,所述第二历史时间用于表示所述第二目标实体物模型中数据对应的时间;建立所述第二目标实体物模型与所述目标对象模型的第三关联关系,所述第三关联关系用于将所述第二目标实体物模型关联至所述目标对象模型。
- 如权利要求19所述的方法,其特征在于,所述第三关联关系用于指示所述第二目标实体物模型与所述目标对象模型具有空间关系,所述空间关系用于指示所述目标对象模型对应的目标对象发生在所述第二目标实体物模型对应的第二目标实体物的空间范围内。
- 如权利要求1或2所述的方法,其特征在于,所述目标对象包括目标事件,所述子对象包括子事件;所述目标对象模型以及所述至少一个子对象模型中还包括空间属性,所述空间属性用于描述所述目标对象以及所述至少一个子对象发生时的位置信息。
- 如权利要求21所述的方法,其特征在于,所述空间属性包括空间范围和/或空间位置,其中,所述至少一个子对象模型的空间范围被包含在所述目标对象模型的空间范围内,或者,所述至少一个子对象模型的空间位置被包含在所述目标对象模型的空间位置的范围内。
- 根据权利要求1或2所述的方法,其特征在于,所述目标对象包括目标事件,所述子对象包括子事件,所述方法还包括:根据所述目标对象在历史不同时间的属性参数,基于所述时间对应的所述目标对象模型,生成对应的目标事件对象记录;根据所述至少一个子对象在历史不同时间的属性参数,基于所述时间对应的所述至少一个子对象模型,生成对应的子事件对象记录;其中,所述属性参数包括属性名称、数据类型、属性值中的至少一种。
- 如权利要求23所述的方法,其特征在于,所述方法还包括:建立所述目标事件对象记录与所述至少一个子事件对象记录的第四关联关系,所述第四关联关系用于将所述至少一个子事件对象记录关联至所述目标事件对象记录;其中,所述至少一个子事件对象记录中的每个子事件对象记录具有唯一的目标事件对象记录,所述目标事件对象记录与所述至少一个子事件对象记录均包括时间范围,所述子事件对象记录的时间范围在所述目标事件对象记录时间范围之内。
- 一种订阅目标对象的历史状态的方法,其特征在于,包括:针对目标对象以及附属于所述目标对象的至少一个子对象,分别建立目标对象模型以及至少一个子对象模型;其中,所述目标对象模型用于描述所述目标对象,所述至少一个子对象模型用于描述所述至少一个子对象,所述目标对象模型以及所述至少一个子对象模型均包括时间属性;将所述目标对象模型与所述至少一个子对象模型中的所述时间属性的取值设置为第一历史时间,所述第一历史时间用于指示所述目标对象模型与所述至少一个子对象模型中数据对应的时间;建立所述目标对象模型与所述至少一个子对象模型的第一关联关系,所述第一关联关系用于将所述至少一个子对象模型关联至所述目标对象模型;接收来自终端设备的第一请求,所述第一请求用于请求订阅所述目标对象的历史状态;响应于所述第一请求,对所述目标对象模型执行订阅操作;根据所述至少一个子对象模型与所述目标对象模型的第一关联关系,对所述至少一个子对象模型执行所述订阅操作。
- 如权利要求25所述的方法,其特征在于,所述目标对象包括目标实体物,所述子对象包括子实体物;或者,所述目标对象包括目标事件,所述子对象包括子事件。
- 如权利要求25或26所述的方法,其特征在于,所述第一请求中携带订阅项,所述方法还包括:当所述目标对象模型和/或所述至少一个子对象模型发生变化时,生成与所述订阅项相匹配的订阅信息;将所述订阅信息发送至所述终端设备。
- 如权利要求27所述的方法,其特征在于,所述订阅项包括以下一项或多项:空间属性,位置属性,成员属性。
- 如权利要求27所述的方法,其特征在于,所述子对象包括子实体物,所述变化包括:子对象模型变化,所述子对象模型变化用于表示所述目标对象模型对应的所述至少一个子对象模型的数量发生变化。
- 一种孪生目标对象的历史状态的装置,其特征在于,所述装置包括:创建模块,用于针对目标对象以及附属于所述目标对象的至少一个子对象,分别建立目标对象模型以及至少一个子对象模型;其中,所述目标对象模型用于描述所述目标对象,所述至少一个子对象模型用于描述所述至少一个子对象,所述目标对象模型以及所述至少一个子对象模型均包括时间属性;处理模块,用于将所述目标对象模型与所述至少一个子对象模型中的所述时间属性的取值设置为第一历史时间,所述第一历史时间用于指示所述目标对象模型与所述至少一个子对象模型中数据对应的时间;建立所述目标对象模 型与所述至少一个子对象模型的第一关联关系,所述第一关联关系用于将所述至少一个子对象模型关联至所述目标对象模型。
- 一种订阅目标对象的历史状态的装置,其特征在于,所述装置包括:创建模块,用于针对目标对象以及附属于所述目标对象的至少一个子对象,分别建立目标对象模型以及至少一个子对象模型;其中,所述目标对象模型用于描述所述目标对象,所述至少一个子对象模型用于描述所述至少一个子对象,所述目标对象模型以及所述至少一个子对象模型均包括时间属性;处理模块,用于将所述目标对象模型与所述至少一个子对象模型中的所述时间属性的取值设置为第一历史时间,所述第一历史时间用于指示所述目标对象模型与所述至少一个子对象模型中数据对应的时间;建立所述目标对象模型与所述至少一个子对象模型的第一关联关系,所述第一关联关系用于将所述至少一个子对象模型关联至所述目标对象模型;接收模块,用于接收来自终端设备的第一请求,所述第一请求用于请求订阅所述目标对象的历史状态;响应模块,用于响应于所述第一请求,对所述目标对象模型执行订阅操作;根据所述至少一个子对象模型与所述目标对象模型的关联关系,对所述至少一个子对象模型执行所述订阅操作。
- 一种电子设备,其特征在于,包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述至少一个处理器通过执行所述存储器存储的指令,使得所述至少一个处理器执行如权利要求1-24和25-29中任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储指令,当所述指令被执行时,使如权利要求1-24和25-29中任一项所述的方法被实现。
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210767657.5 | 2022-06-30 | ||
CN202210767657.5A CN115098471B (zh) | 2022-06-30 | 2022-06-30 | 一种孪生、订阅事件的历史状态的方法及装置 |
CN202210767339.9 | 2022-06-30 | ||
CN202210767339.9A CN115129909B (zh) | 2022-06-30 | 2022-06-30 | 一种孪生、订阅实体物的历史状态的方法及装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024002296A1 true WO2024002296A1 (zh) | 2024-01-04 |
Family
ID=89383325
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/104174 WO2024002296A1 (zh) | 2022-06-30 | 2023-06-29 | 一种孪生、订阅目标对象的历史状态的方法及装置 |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2024002296A1 (zh) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106294887A (zh) * | 2016-10-24 | 2017-01-04 | 北京亚控科技发展有限公司 | 基于四维空间的对客观世界存在的物体和事件的描述方法 |
CN106294888A (zh) * | 2016-10-24 | 2017-01-04 | 北京亚控科技发展有限公司 | 一种基于时空数据库的对象数据的订阅方法 |
US20200042657A1 (en) * | 2018-08-03 | 2020-02-06 | EMC IP Holding Company LLC | Multi-dimensional event model generation |
CN112200492A (zh) * | 2020-11-02 | 2021-01-08 | 傲林科技有限公司 | 一种数字孪生模型构建、业务活动预测分析方法及装置 |
CN114491065A (zh) * | 2022-01-14 | 2022-05-13 | 上海交通大学 | 基于认知线索的多领域数字孪生体集成方法及电子设备 |
CN115098471A (zh) * | 2022-06-30 | 2022-09-23 | 北京亚控科技发展有限公司 | 一种孪生、订阅事件的历史状态的方法及装置 |
CN115129909A (zh) * | 2022-06-30 | 2022-09-30 | 北京亚控科技发展有限公司 | 一种孪生、订阅实体物的历史状态的方法及装置 |
-
2023
- 2023-06-29 WO PCT/CN2023/104174 patent/WO2024002296A1/zh unknown
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106294887A (zh) * | 2016-10-24 | 2017-01-04 | 北京亚控科技发展有限公司 | 基于四维空间的对客观世界存在的物体和事件的描述方法 |
CN106294888A (zh) * | 2016-10-24 | 2017-01-04 | 北京亚控科技发展有限公司 | 一种基于时空数据库的对象数据的订阅方法 |
US20200042657A1 (en) * | 2018-08-03 | 2020-02-06 | EMC IP Holding Company LLC | Multi-dimensional event model generation |
CN112200492A (zh) * | 2020-11-02 | 2021-01-08 | 傲林科技有限公司 | 一种数字孪生模型构建、业务活动预测分析方法及装置 |
CN114491065A (zh) * | 2022-01-14 | 2022-05-13 | 上海交通大学 | 基于认知线索的多领域数字孪生体集成方法及电子设备 |
CN115098471A (zh) * | 2022-06-30 | 2022-09-23 | 北京亚控科技发展有限公司 | 一种孪生、订阅事件的历史状态的方法及装置 |
CN115129909A (zh) * | 2022-06-30 | 2022-09-30 | 北京亚控科技发展有限公司 | 一种孪生、订阅实体物的历史状态的方法及装置 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109471900B (zh) | 图表类数据自定义动作数据交互方法及系统 | |
US5721911A (en) | Mechanism for metadata for an information catalog system | |
TWI412945B (zh) | 擷取以及保存來自或存至關聯資料庫之各物件的方法及系統 | |
US20200065313A1 (en) | Extensible content object metadata | |
TW201601056A (zh) | 使用邏輯文件日誌之可擴展最終一致性系統 | |
US10855637B2 (en) | Architecture for large data management in communication applications through multiple mailboxes | |
US7246344B1 (en) | Drag and drop stateless data class specification and programming | |
CN108932286A (zh) | 一种数据存储方法、数据查询方法及装置 | |
US20230385353A1 (en) | Spatial search using key-value store | |
CN114564620A (zh) | 图数据存储方法、系统及计算机设备 | |
CN111104425A (zh) | 数据处理方法及装置 | |
CN112350872A (zh) | 网络架构配置信息生成方法、装置、存储介质及电子设备 | |
CN112329184A (zh) | 网络架构配置信息生成方法、装置、存储介质及电子设备 | |
CN111881385A (zh) | 推送内容生成方法、装置、设备和可读存储介质 | |
CN116778124A (zh) | 三维场景编辑方法、系统、设备及存储介质 | |
WO2022164546A1 (en) | Aliased data retrieval for key-value stores | |
WO2024002296A1 (zh) | 一种孪生、订阅目标对象的历史状态的方法及装置 | |
CN106202456B (zh) | 发送图片的方法及装置 | |
CN117539937A (zh) | 一种元数据处理方法及系统 | |
CN115098471B (zh) | 一种孪生、订阅事件的历史状态的方法及装置 | |
CN115129909B (zh) | 一种孪生、订阅实体物的历史状态的方法及装置 | |
CN115905322A (zh) | 业务处理方法、装置、电子设备及存储介质 | |
CN115017139A (zh) | 一种孪生、订阅人员的历史状态的方法及装置 | |
CN115705228A (zh) | 一种共享内容的方法、装置、计算机设备及存储介质 | |
CN113850568A (zh) | 会议室的配置方法、装置、电子设备和存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23830460 Country of ref document: EP Kind code of ref document: A1 |