CN114282029A - Primitive management method and device, electronic equipment and storage medium - Google Patents

Primitive management method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114282029A
CN114282029A CN202111590181.4A CN202111590181A CN114282029A CN 114282029 A CN114282029 A CN 114282029A CN 202111590181 A CN202111590181 A CN 202111590181A CN 114282029 A CN114282029 A CN 114282029A
Authority
CN
China
Prior art keywords
primitive
menu
user
management
library
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111590181.4A
Other languages
Chinese (zh)
Inventor
刘柳
刘静雯
刘鹏程
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xinao Shuneng Technology Co Ltd
Original Assignee
Xinao Shuneng Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xinao Shuneng Technology Co Ltd filed Critical Xinao Shuneng Technology Co Ltd
Priority to CN202111590181.4A priority Critical patent/CN114282029A/en
Publication of CN114282029A publication Critical patent/CN114282029A/en
Pending legal-status Critical Current

Links

Images

Abstract

The disclosure relates to the technical field of industrial control, and provides a primitive management method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring primitive attribute information of all primitives in a primitive management library; classifying all primitives according to the primitive attribute information to obtain a plurality of primitive sets, and determining a primitive menu to which each primitive set belongs, wherein one primitive set comprises at least one primitive; and determining an object associated with each primitive in each primitive set, and finishing the management operation of all the primitives in the primitive library. The method can be used for effectively managing the primitives of the primitive management library in a unified and standard manner, is beneficial to reducing the system volume and reducing the management cost, and can be used for greatly facilitating the learning and use of a user on the primitive system and reducing the learning and use cost of the user; meanwhile, the primitive resources in each field can be effectively integrated, and the integrated primitive resources have expansibility, batch operation and higher flexibility.

Description

Primitive management method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of industrial control technologies, and in particular, to a method and an apparatus for managing primitives, an electronic device, and a storage medium.
Background
In the industrial control field, configuration tools play an important role in the information process. The current methods for implementing software configuration of a control system are mainly classified into a primitive type, a special control language type and a form filling type. The pixel type configuration is that various functions are designed into pixels, and a user calls the corresponding pixels according to the condition of the production process to complete the configuration. The primitives called by the user are usually collected into a primitive management system by a primitive manager through different functions in different application fields, and then are provided for the user to use.
Although a large amount of primitive resources with different functions in the application field are integrated in the existing primitive management system, unified and normalized effective management of the primitive resources is lacked, so that the internal resource management of the system is very disordered, the system volume is enlarged, the management cost is increased sharply, the learning and the use of a user are very inconvenient, and the user experience is poor; meanwhile, the primitive resources of various functions cannot be effectively integrated and expanded, and the flexibility is poor.
Disclosure of Invention
In view of this, the embodiments of the present disclosure provide a primitive management method, an apparatus, an electronic device, and a storage medium, so as to solve the problem that the prior art lacks a unified and normalized effective management for primitive resources of a primitive management system, which causes a very chaotic management for internal resources of the system, an enlarged system volume, a rapidly increased management cost, and is very inconvenient for a user to learn and use, and poor user experience; meanwhile, the primitive resources with various functions cannot be effectively integrated and expanded, and the flexibility is poor.
In a first aspect of the embodiments of the present disclosure, a method for managing primitives is provided, including:
acquiring primitive attribute information and primitive function information of all primitives in a primitive management library;
classifying all primitives according to the primitive attribute information to obtain a plurality of primitive sets, wherein one primitive set corresponds to one primitive menu and one primitive set comprises at least one primitive;
and determining an object model which can be associated with each primitive in each primitive set according to the primitive function information, and finishing the management operation of the primitives of the primitive management library.
In a second aspect of the embodiments of the present disclosure, there is provided a primitive management apparatus, including:
the information acquisition module is configured to acquire primitive attribute information and primitive function information of all the primitives in the primitive management library;
the classification module is configured to classify all the primitives according to the primitive attribute information to obtain a plurality of primitive sets, wherein one primitive set corresponds to one primitive menu, and one primitive set comprises at least one primitive;
and the determining module is configured to determine an object model which can be associated with each primitive in each primitive set according to the primitive function information, and complete the management operation of the primitives of the primitive management library.
In a third aspect of the embodiments of the present disclosure, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.
In a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, which stores a computer program, which when executed by a processor, implements the steps of the above-mentioned method.
Compared with the prior art, the embodiment of the disclosure has the advantages that at least: acquiring primitive attribute information of all primitives in a primitive management library; classifying all primitives according to the primitive attribute information to obtain a plurality of primitive sets, and determining a primitive menu to which each primitive set belongs, wherein one primitive set comprises at least one primitive; the object associated with each graphic primitive in each graphic primitive set is determined, and the unified and normalized effective management operation of the graphic primitives of the graphic primitive management library is completed, so that the internal resource management of the graphic primitive management system is more orderly, the system volume is favorably reduced, the management cost is greatly reduced, in addition, the learning and the use of the graphic primitive system by a user are greatly facilitated through the graphic primitive management system after the systematic and normalized management, the learning and use cost of the user is reduced, and the user experience is good; meanwhile, the management method manages the primitive resources, the primitive resources in all fields can be effectively integrated, the integrated primitive resources have expansibility, can be operated in batch and have higher flexibility.
Drawings
To more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without inventive efforts.
Fig. 1 is a schematic flowchart of a primitive management method according to an embodiment of the present disclosure;
FIG. 2 is a schematic flowchart of a method for creating and using a primitive in a primitive management method provided by an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a primitive management apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the disclosed embodiments. However, it will be apparent to one skilled in the art that the present disclosure may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present disclosure with unnecessary detail.
A primitive management method and apparatus according to an embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a primitive management method according to an embodiment of the present disclosure. As shown in fig. 1, the primitive management method includes:
step S101, obtaining the primitive attribute information of all the primitives in the primitive library.
The primitive library refers to a storage warehouse for storing and managing all primitives in each application field (including but not limited to petrifaction, chemical industry, building materials, steel, color, paper making, electric power and aviation) in a primitive system.
Under the new trend of the development of comprehensive energy sources nowadays, the description of the structure of an energy network and the dynamic tracking of the topology occupy an important position. With the explosion of object-oriented technology, energy topology analysis and monitoring have been developed into a novel modeling approach for object-oriented and graphical interfaces. In the graphical topological modeling interface, a primitive is a graphical representation of an object such as an energy device, a virtual facility, an algorithm element, and the like, and is a set of graphics and ports. In practical application, primitives and connecting wires can be applied to a graphical interface to build various energy systems and simulation models required by a user.
The primitive attribute information generally includes attribute information such as a primitive name, a unique identification code (e.g., a primitive ID), and a primitive type. The primitive names may be named according to names of the functional devices represented by the primitives. For example, primitives belonging to the generic auxiliary device class may be named generic auxiliary device primitive 01, generic auxiliary device primitive 02, etc. The unique identification code can be specifically a number, letter and other identification codes automatically allocated to each primitive by the primitive system. The primitive type generally refers to a category to which the primitive belongs, and the category can be determined according to a device having a certain type of function represented by the primitive. For example, the primitive type of the primitive representing the equipment with the metering function can be a metering instrument type primitive.
And S102, classifying all the primitives according to the primitive attribute information to obtain a plurality of primitive sets, and determining a primitive menu to which each primitive set belongs, wherein one primitive set comprises at least one primitive.
Specifically, the corresponding primitive type can be determined according to the primitive attribute information of each primitive; then, classifying all primitives according to primitive types to obtain a plurality of primitive sets; and determining the primitive menu to which each primitive set belongs according to the association logic relationship between the preset primitive type and the primitive menu.
As an example, the primitive type corresponding to each primitive may be determined based on the primitive attribute information (e.g., primitive type) of the primitive. For example, if the primitive attribute information (primitive type) of a primitive a is a metrology instrument type primitive, the primitive type of the primitive a may be determined to be a metrology instrument type primitive.
As another example, the primitive type corresponding to each primitive may also be determined according to its primitive name. For example, if the primitive name of a primitive B is generic auxiliary device primitive 01, the primitive type of the primitive B can be determined to be a generic auxiliary device type primitive (or CIM device, computer Integrated Manufacturing device).
According to the method, all the primitives in the primitive library can be classified according to the primitive types to which the primitives belong, so that a primitive set corresponding to each primitive type is obtained, wherein each primitive set comprises at least one primitive. And then determining the primitive menu to which each primitive set belongs according to the preset association logic relationship between the primitive type and the primitive menu.
In practical application, a plurality of primitive types and a plurality of primitive menus can be created in advance, and the primitive types and the primitive menus are associated according to a certain rule to form an association logic relationship between the primitive types and the primitive menus. For example, the associated logic relationship between the primitive type and the primitive menu may be specifically set as shown in table 1 below.
Table 1 table of associated logic relationship between primitive type and primitive menu
Figure BDA0003429602090000051
As can be seen from table 1 above, each primitive menu may contain multiple primitive types, each primitive type may include multiple primitive sets, and each primitive set includes at least one primitive. All the primitives in the primitive library can be effectively managed uniformly and standardly by combing the primitives according to the primitive attribute information, so that a user can quickly search/call the required primitives from the primitive library during modeling, the modeling efficiency is improved, a large amount of primitive system learning time is saved, and the user experience is good.
Step S103, determining an object associated with each primitive in each primitive set, and completing management operation on all primitives in the primitive library.
Specifically, the associated object corresponding to each primitive may be determined according to the primitive type of the primitive. For example, the primitive type of the primitive a is a metrology instrument type primitive, and the corresponding associated object may be a specific measurement point (e.g., a current input point or a current output point) of a metrology instrument (e.g., a current meter, a voltage meter, etc.) under the "information model". For another example, if the primitive type of primitive B is generic auxiliary equipment type primitive, then its corresponding associated object can be a generic auxiliary equipment (e.g., air compressor) under the "information model". For another example, if the primitive type of the primitive C is a formula-class primitive, the corresponding associated object may be a formula involved in a specific process/step in an algorithm model.
According to the technical scheme provided by the embodiment of the disclosure, the primitive attribute information of all the primitives in the primitive management library is acquired; classifying all primitives according to the primitive attribute information to obtain a plurality of primitive sets, and determining a primitive menu to which each primitive set belongs, wherein one primitive set comprises at least one primitive; the object associated with each graphic primitive in each graphic primitive set is determined, and the unified and normalized effective management operation of the graphic primitives of the graphic primitive management library is completed, so that the internal resource management of the graphic primitive management system is more orderly, the system volume is favorably reduced, the management cost is greatly reduced, in addition, the learning and the use of the graphic primitive system by a user are greatly facilitated through the graphic primitive management system after the systematic and normalized management, the learning and use cost of the user is reduced, and the user experience is good; meanwhile, the management method manages the primitive resources, the primitive resources in all fields can be effectively integrated, the integrated primitive resources have expansibility, can be operated in batch and have higher flexibility.
In some embodiments, the above method further comprises:
responding to a primitive creating request initiated by a user, and loading a plurality of preset primitive menu candidate items, a plurality of primitive attribute candidate items and a plurality of object model candidate items;
creating a new primitive according to the combined application operation of the primitive menu candidate item, the primitive attribute candidate item and the object model candidate item by the user and the primitive picture uploaded by the user;
and saving the new primitive to the primitive library.
The user may be an administrator of the primitive library, or may be a user who uses the primitive library (but needs to have the management authority to create the primitive).
As an example, when an administrator or a user manages or uses primitives in a primitive library and finds that no needed primitives are stored in the current primitive library, a primitive creation request including a primitive name of a primitive to be created (e.g., the generic auxiliary device 03) may be initiated to the management background via the terminal device. And when the management background receives a primitive creating request initiated by a user, loading a plurality of preset primitive menu candidates, a plurality of primitive attribute candidates and a plurality of object model candidates. The primitive menu candidates can include "custom device", "custom measurement", and the like; the multiple primitive attribute candidates can include "metering instrument class primitive", "general auxiliary device class primitive", "interactive component class primitive", and the like; the plurality of object model candidates may include a "mechanistic model", an "information model", an "algorithmic model", and the like.
For example, when the management background receives a combined application operation (such as a selection operation of selecting three items simultaneously) of the user on the "custom device", the "general auxiliary device type primitive", and the "information model", and a 2D primitive picture or a 3D primitive model uploaded by the user, a new primitive named as a primitive name (e.g., the general auxiliary device 03) carried by a primitive creation request sent by the user may be created according to the "custom device", the "general auxiliary device type primitive, the" information model ", and the 2D primitive picture or the 3D primitive model uploaded by the user, and the new primitive may be stored in the primitive library.
In some embodiments, the creating a new primitive according to a combined application operation of the primitive menu candidate, the primitive attribute candidate, and the object model candidate by the user and a primitive picture uploaded by the user includes:
loading endpoint information corresponding to the object model candidate applied by the user;
and integrating the primitive menu candidate item, the primitive attribute candidate item, the object model candidate item, the primitive picture and the endpoint information which are applied by the user into a single extensible markup file, wherein the extensible markup file is a new primitive.
For example, assuming that the object model candidate applied by the user is the "information model", the endpoint information corresponding to the "information model" may be further loaded. The endpoint information includes an endpoint number (e.g., a numerical number of 0, 1, 2, etc.), an endpoint type (e.g., a steam endpoint, a biomass endpoint, a hot and cold water endpoint, etc.), an endpoint flow direction (e.g., unidirectional, bidirectional), etc.
Then, with reference to the above example, the "custom device" (primitive menu candidate), the "general auxiliary device type primitive" (primitive attribute candidate), the "information model" (object model candidate) and the 2D primitive picture uploaded by the user (such as the on-state primitive picture and the off-state primitive picture of the device X under the "information model") and the loaded endpoint information (or the user-defined endpoint information) of the device X may be further integrated to form a single extensible markup file (i.e., XML file), i.e., a new primitive is created.
According to the technical scheme provided by the embodiment of the disclosure, the primitive menu candidate item, the primitive attribute candidate item and the object model candidate item which are applied by the user and the primitive picture (2D or 3D visual resource file) uploaded by the user are integrated into an independent XML file, the independent XML file can be directly quoted on a graphical modeling interface and also can be quickly called by other object-oriented degrees, so that the integration, management and expansion of the primitive resource can be effectively carried out, and powerful support is provided for the establishment of subsequent energy and simulation systems.
In some embodiments, the saving the new primitive to the primitive library includes:
inquiring whether a primitive menu which is the same as the primitive menu candidate item applied by the user exists in the primitive library;
if yes, storing the new primitive into a primitive set which belongs to the primitive menu in the primitive library;
if not, a primitive menu candidate item and a corresponding newly added primitive set are newly established in the primitive library, and the new primitive is stored in the newly added primitive set.
As an example, before saving a newly created new primitive to the primitive library, it may first query whether a primitive menu identical to the primitive menu candidate requested by the user exists in the current primitive library through traversal. With reference to the above example, the primitive menu candidate applied by the user is "custom device", and it is determined that the primitive menu of "custom device" exists in the current primitive library after being queried, so that the newly created new primitive can be stored in the primitive set of the primitive menu of "custom device", and specifically, the new primitive can be stored in the primitive set of "generic auxiliary device type primitive" under the primitive menu.
As another example, if it is found that there is a primitive menu in the current primitive library that is the same as the primitive menu candidate requested by the user, but there is no primitive set corresponding to the primitive attribute candidate requested by the user in the primitive set under the primitive menu, a new primitive set corresponding to the primitive attribute candidate requested by the user may be newly added under the primitive menu, and the new primitive may be saved in the new primitive set.
As another example, assuming that the primitive menu candidate requested by the user is a "custom formula", and only two primitive menus, namely "custom device" and "custom measurement" exist in the current primitive library, the query result indicates that the primitive menu having the same primitive menu candidate requested by the user does not exist in the current primitive library. At this time, a primitive menu of a "custom formula" may be newly created in the primitive library, and a new primitive set (e.g., a formula class primitive set) is newly created under the primitive menu of the "custom formula", and the new primitive is stored in the new primitive set.
According to the technical scheme provided by the embodiment of the disclosure, the new picture elements are classified into the corresponding picture element sets of the picture element library according to the picture element menu or the picture element attributes, so that the subsequent picture element management and searching can be facilitated, the modeling time of a user is saved, and the modeling efficiency is improved.
In some embodiments, the above method further comprises:
receiving a primitive query request initiated by a user, wherein the primitive query request comprises identification information of a primitive to be queried;
and loading primitive basic configuration information corresponding to the identification information and displaying the primitive basic configuration information to a user, wherein the primitive basic configuration information comprises attribute information of a primitive to be inquired, a subordinate primitive menu, an associated object model and a primitive picture.
The identification information of the primitive to be queried may be any one or more of a primitive name, a unique identification code of the primitive, primitive attribute information, or the like.
As an example, when the identification information of the primitive to be queried in the primitive query request initiated by the user is "universal auxiliary device 01", primitive basic configuration information corresponding to the "universal auxiliary device 01" is loaded, that is, primitive attribute information of the "universal auxiliary device 01", a subordinate primitive menu, an associated object model, and a primitive picture are included, so that the user can know the basic configuration information of the primitive of the "universal auxiliary device 01" queried by the user, and can conveniently modify or delete one or more items of the basic configuration information by the user.
In some embodiments, after loading the basic information of the primitive to be queried corresponding to the primitive identification information and displaying the basic information to a user, the method further includes:
receiving modification and/or deletion operation of at least one item of attribute information of a primitive to be queried, a subordinate primitive menu, an associated object model and a primitive picture by a user;
and updating the primitive set where the primitive to be inquired is located according to the modification and/or deletion operation.
As an example, if the identification information of the primitive to be queried in the primitive query request from the user is "universal auxiliary device 01", the primitive basic configuration information corresponding to the "universal auxiliary device 01" is displayed on the current interface, that is, the primitive basic configuration information includes primitive attribute information of the "universal auxiliary device 01", a subordinate primitive menu, an associated object model, and a primitive picture. If a modification operation of the user on the associated object model is received (for example, the original associated object model "information model" is modified into "algorithm model"), the primitive basic configuration information of the primitive of the "universal auxiliary device 01" is updated, and the updated primitive of the "universal auxiliary device 01" is obtained.
According to the technical scheme provided by the embodiment of the disclosure, a user can query the primitive basic configuration information of the primitive to be queried or create a new primitive in the primitive library by inputting the identification information of the primitive to be queried to a management system, and can support the user to modify or delete the primitive basic configuration information in the primitive library on line in an individualized manner so as to meet the modeling configuration requirements of the user, so that the operation is very convenient, and the user experience is good.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
Fig. 2 is a schematic flowchart of a primitive creating and using method in a primitive management method provided by an embodiment of the present disclosure, and as shown in fig. 2, the primitive creating and using method includes the following steps:
step S201, a user logs in a primitive management system and sends a primitive query request to a management background, wherein the primitive query request comprises identification information (such as a primitive name, a primitive unique identification code or primitive attribute information) of a primitive to be queried;
step S202, after receiving a primitive query request sent by a user, a management background judges whether a primitive corresponding to the identification information of the primitive to be queried exists in a current primitive library according to a preset correlation logic relationship between a primitive type and a primitive menu; in the association logic relationship, each primitive menu is associated with a plurality of primitive types, each primitive type is associated with a plurality of primitive sets, and each primitive set comprises at least one primitive;
step S203, if the management background judges that the primitive corresponding to the identification information of the primitive to be inquired exists in the current primitive library, the primitive corresponding to the identification information of the primitive to be inquired is taken out and displayed to a user;
step S204, when receiving the editing operation of the user to the primitive corresponding to the identification information of the primitive to be queried (such as the operation of modifying or deleting one or more items in the primitive basic configuration information of the primitive to be queried), the management background updates the primitive to be queried according to the editing operation;
step S205, if the management background judges that no primitive corresponding to the identification information of the primitive to be inquired exists in the current primitive library and receives a primitive creating request (including a primitive name) initiated by a user, loading a plurality of preset primitive menu candidates, a plurality of primitive attribute candidates and a plurality of object model candidates for the user to select;
step S206, the management background receives a combined application of the primitive menu candidate item, the primitive attribute candidate item and the object model candidate item from a user, a 2D picture or a 3D model (visual resource file) uploaded by the user and endpoint configuration information input by the user; or automatically loading endpoint information corresponding to the object model candidate;
step S207, the management background integrates the primitive menu candidate item, the primitive attribute candidate item, and the object model candidate item requested by the user, the uploaded 2D picture or 3D model, the endpoint configuration information input by the user, or the endpoint information automatically loaded corresponding to the object model candidate item into an individual XML file, and stores the XML file, so as to obtain a new primitive, and stores the new primitive in the primitive library.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 3 is a schematic diagram of a primitive management apparatus according to an embodiment of the disclosure. As shown in fig. 3, the primitive management apparatus includes:
an information obtaining module 301, configured to obtain primitive attribute information and primitive function information of all primitives in a primitive management library;
a classification module 302 configured to classify all the primitives according to the primitive attribute information to obtain a plurality of primitive sets, wherein one primitive set corresponds to one primitive menu, and one primitive set includes at least one primitive;
and the determining module 303 is configured to determine, according to the primitive function information, an object model which can be associated with each primitive in each primitive set, and complete a primitive management operation on the primitive management library.
According to the technical scheme provided by the embodiment of the disclosure, the information acquisition module 301 acquires the primitive attribute information of all the primitives in the primitive management library; the classification module 302 classifies all the primitives according to the primitive attribute information to obtain a plurality of primitive sets, and determines a primitive menu to which each primitive set belongs, wherein one primitive set comprises at least one primitive; the determining module 303 determines an object associated with each primitive in each primitive set, and completes unified, normalized and effective management operation on the primitives of the primitive management library, so that the internal resource management of the primitive management system is more orderly, the system volume is favorably reduced, and the management cost is greatly reduced; meanwhile, the management method manages the primitive resources, the primitive resources in all fields can be effectively integrated, the integrated primitive resources have expansibility, can be operated in batch and have higher flexibility.
In some embodiments, the classifying module 302 includes:
the type determining unit is configured to determine a corresponding primitive type according to the primitive attribute information of each primitive;
the classification unit is configured to classify all the primitives according to the primitive types to obtain a plurality of primitive sets;
and the classification unit is configured to determine the primitive menu to which each primitive set belongs according to the association logic relationship between the preset primitive type and the primitive menu.
In some embodiments, the above apparatus further comprises:
the response module is configured to respond to a primitive creating request initiated by a user and load a plurality of preset primitive menu candidate items, a plurality of primitive attribute candidate items and a plurality of object model candidate items;
the creating module is configured to create a new primitive according to the combined application operation of the primitive menu candidate item, the primitive attribute candidate item and the object model candidate item by the user and the primitive picture uploaded by the user;
a saving module configured to save the new primitive to the primitive library.
In some embodiments, the creating module includes:
the loading unit is configured to load endpoint information corresponding to the object model candidate applied by the user;
and the integration unit is configured to integrate the primitive menu candidate item, the primitive attribute candidate item, the object model candidate item, the primitive picture and the endpoint information applied by the user into a single extensible markup file, and the extensible markup file is a new primitive.
In some embodiments, the saving module comprises:
the query unit is configured to query whether a primitive menu which is the same as a primitive menu candidate item applied by a user exists in the primitive library;
the first saving unit is configured to save the new primitive to a primitive set which belongs to the primitive menu in the primitive management library if the new primitive exists;
and the second storage unit is configured to newly establish a primitive menu candidate item and a newly-added primitive set corresponding to the primitive menu candidate item in the primitive library if the primitive menu candidate item does not exist, and store the new primitive into the newly-added primitive set.
In some embodiments, the above apparatus further comprises:
the request receiving module is configured to receive a primitive query request initiated by a user, wherein the primitive query request comprises identification information of a primitive to be queried;
and the information recording module is configured to load primitive basic configuration information corresponding to the identification information and display the primitive basic configuration information to a user, wherein the primitive basic configuration information comprises attribute information of a primitive to be inquired, a subordinate primitive menu, an associated object model and a primitive picture.
In some embodiments, the above apparatus further comprises:
the operation receiving module is configured to receive modification and/or deletion operations of at least one item of attribute information of a primitive to be queried, a primitive menu affiliated to the primitive menu, an associated object model and a primitive picture by a user;
and the updating module is configured to update the primitive to be queried according to the modification and/or deletion operation.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.
Fig. 4 is a schematic diagram of an electronic device 400 provided by an embodiment of the disclosure. As shown in fig. 4, the electronic apparatus 400 of this embodiment includes: a processor 401, a memory 402 and a computer program 403 stored in the memory 402 and executable on the processor 401. The steps in the various method embodiments described above are implemented when the processor 401 executes the computer program 403. Alternatively, the processor 401 implements the functions of the respective modules/units in the above-described respective apparatus embodiments when executing the computer program 403.
Illustratively, the computer program 403 may be partitioned into one or more modules/units, which are stored in the memory 402 and executed by the processor 401 to accomplish the present disclosure. One or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 403 in the electronic device 400.
The electronic device 400 may be a desktop computer, a notebook, a palm top computer, a cloud server, or other electronic devices. The electronic device 400 may include, but is not limited to, a processor 401 and a memory 402. Those skilled in the art will appreciate that fig. 4 is merely an example of an electronic device 400 and does not constitute a limitation of electronic device 400 and may include more or fewer components than shown, or combine certain components, or different components, e.g., the electronic device may also include input-output devices, network access devices, buses, etc.
The Processor 401 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 402 may be an internal storage unit of the electronic device 400, for example, a hard disk or a memory of the electronic device 400. The memory 402 may also be an external storage device of the electronic device 400, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the electronic device 400. Further, the memory 402 may also include both internal storage units and external storage devices of the electronic device 400. The memory 402 is used for storing computer programs and other programs and data required by the electronic device. The memory 402 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other ways. For example, the above-described apparatus/electronic device embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, and multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present disclosure may implement all or part of the flow of the method in the above embodiments, and may also be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the above methods and embodiments. The computer program may comprise computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain suitable additions or additions that may be required in accordance with legislative and patent practices within the jurisdiction, for example, in some jurisdictions, computer readable media may not include electrical carrier signals or telecommunications signals in accordance with legislative and patent practices.
The above examples are only intended to illustrate the technical solutions of the present disclosure, not to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present disclosure, and are intended to be included within the scope of the present disclosure.

Claims (10)

1. A method for primitive management, comprising:
acquiring primitive attribute information of all primitives in a primitive library;
classifying all the primitives according to the primitive attribute information to obtain a plurality of primitive sets, and determining a primitive menu to which each primitive set belongs, wherein one primitive set comprises at least one primitive;
and determining an object associated with each primitive in each primitive set, and finishing the management operation of all the primitives in the primitive library.
2. The method according to claim 1, wherein the classifying all primitives according to the primitive attribute information to obtain a plurality of primitive sets and determining a primitive menu to which each primitive set belongs comprises:
determining the corresponding primitive type according to the primitive attribute information of each primitive;
classifying all the primitives according to the primitive types to obtain a plurality of primitive sets;
and determining the primitive menu to which each primitive set belongs according to the association logic relationship between the preset primitive type and the primitive menu.
3. The method of claim 1, further comprising:
responding to a primitive creating request initiated by a user, and loading a plurality of preset primitive menu candidate items, a plurality of primitive attribute candidate items and a plurality of object model candidate items;
creating a new primitive according to the combined application operation of the user on the primitive menu candidate item, the primitive attribute candidate item and the object model candidate item and a primitive picture uploaded by the user;
and storing the new primitive into a primitive library.
4. The method of claim 3, wherein said creating a new primitive in accordance with a combined application operation of the primitive menu candidate, the primitive attribute candidate, and the object model candidate by the user, and a primitive picture uploaded by the user comprises:
loading endpoint information corresponding to the object model candidate applied by the user;
and integrating the primitive menu candidate item, the primitive attribute candidate item and the object model candidate item which are applied by the user, the primitive picture and the endpoint information into a single extensible markup file, wherein the extensible markup file is a new primitive.
5. The method of claim 3, wherein saving the new primitive to a primitive library comprises:
inquiring whether a primitive menu which is the same as the primitive menu candidate item applied by the user exists in the primitive library;
if yes, storing the new primitive into a primitive set which belongs to the primitive menu in a primitive management library;
and if the primitive menu candidate item does not exist, newly establishing the primitive menu candidate item and a newly added primitive set corresponding to the primitive menu candidate item in the primitive library, and storing the new primitive in the newly added primitive set.
6. The method of claim 1, further comprising:
receiving a primitive query request initiated by a user, wherein the primitive query request comprises identification information of a primitive to be queried;
and loading primitive basic configuration information corresponding to the identification information and displaying the primitive basic configuration information to the user, wherein the primitive basic configuration information comprises attribute information of the primitive to be inquired, a subordinate primitive menu, an associated object model and a primitive picture.
7. The method according to claim 6, wherein after loading and presenting the basic information of the primitive to be queried corresponding to the primitive identification information to the user, further comprising:
receiving modification and/or deletion operation of the user on at least one of attribute information of the primitive to be queried, a primitive menu affiliated to the user, an associated object model and a primitive picture;
and updating the primitive to be inquired according to the modification and/or deletion operation.
8. A primitive management apparatus, comprising:
the information acquisition module is configured to acquire primitive attribute information and primitive function information of all the primitives in the primitive management library;
the classification module is configured to classify all the primitives according to the primitive attribute information to obtain a plurality of primitive sets, wherein one primitive set corresponds to one primitive menu, and one primitive set comprises at least one primitive;
and the determining module is configured to determine an object model which can be associated with each primitive in each primitive set according to the primitive function information, and complete the management operation of the primitives of the primitive management library.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202111590181.4A 2021-12-23 2021-12-23 Primitive management method and device, electronic equipment and storage medium Pending CN114282029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111590181.4A CN114282029A (en) 2021-12-23 2021-12-23 Primitive management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111590181.4A CN114282029A (en) 2021-12-23 2021-12-23 Primitive management method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114282029A true CN114282029A (en) 2022-04-05

Family

ID=80874518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111590181.4A Pending CN114282029A (en) 2021-12-23 2021-12-23 Primitive management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114282029A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115033329A (en) * 2022-06-22 2022-09-09 北京世冠金洋科技发展有限公司 Virtual subsystem creating method and related device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115033329A (en) * 2022-06-22 2022-09-09 北京世冠金洋科技发展有限公司 Virtual subsystem creating method and related device
CN115033329B (en) * 2022-06-22 2023-09-26 北京世冠金洋科技发展有限公司 Virtual subsystem creation method and related device

Similar Documents

Publication Publication Date Title
CN112035667A (en) Knowledge graph display method and device and terminal equipment
CN111191303A (en) BIM data processing method and device, electronic equipment and computer storage medium
CN107679276B (en) Generation method and device of power system tide wiring diagram and electronic equipment
CN106776995B (en) Structured data tree-form acquisition method based on model-driven architecture
CN113282795A (en) Data structure chart generating and updating method and device, electronic equipment and storage medium
CN108170855B (en) CityGML and IFC data unified query and data extraction method
CN103123660A (en) Computer-aided design (CAD) graphical modeling method for software/hardware system
CN111813517A (en) Task queue allocation method and device, computer equipment and medium
CN108961406A (en) Geographical information visualization method, apparatus and user terminal
CN114282029A (en) Primitive management method and device, electronic equipment and storage medium
CN109840201B (en) UI test method, device, electronic equipment and computer readable storage medium
JP2007133624A (en) Information management method and device using connection relation information
CN105930354A (en) Storage model conversion method and device
CN111158827A (en) Method and device for graphic configuration tool correlation calculation value information
CN115543428A (en) Simulated data generation method and device based on strategy template
CN115657968A (en) Storage method, device, equipment and medium of boundary representation model
CN111209406A (en) Ontology knowledge base instance data maintenance method and device
CN115471582A (en) Map generation method and device, computer equipment and storage medium
CN115761130A (en) Three-dimensional scene rapid construction method and device, electronic equipment and storage medium
CN101620744A (en) Method for processing three-dimensional scene data based on XML
CN115205484A (en) Three-dimensional space display method, device, equipment and medium for historical culture block
CN104731051A (en) Method for achieving sensor point position objectification
CN114896252A (en) Query method and device for Internet of things equipment, computer equipment and storage medium
CN111949845B (en) Method, apparatus, computer device and storage medium for processing mapping information
CN111159480A (en) Graph drawing method based on power grid GIS data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination