CN113157267A - Open type resource management model and construction method thereof - Google Patents

Open type resource management model and construction method thereof Download PDF

Info

Publication number
CN113157267A
CN113157267A CN202110445020.XA CN202110445020A CN113157267A CN 113157267 A CN113157267 A CN 113157267A CN 202110445020 A CN202110445020 A CN 202110445020A CN 113157267 A CN113157267 A CN 113157267A
Authority
CN
China
Prior art keywords
resource
instance
server
class
data
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
CN202110445020.XA
Other languages
Chinese (zh)
Inventor
侯瑞春
陶冶
周志明
王淑敏
袁洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ocean University of China
Original Assignee
Ocean University of China
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 Ocean University of China filed Critical Ocean University of China
Priority to CN202110445020.XA priority Critical patent/CN113157267A/en
Publication of CN113157267A publication Critical patent/CN113157267A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven

Landscapes

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

Abstract

The invention discloses an open resource management model and a construction method thereof, wherein the open resource management model comprises the following steps: an application layer; a resource layer; the resource class management server is used for providing services of creating, compiling and deploying the published resource classes for the user; a resource class database for storing resource classes; a resource instance database for storing resource instances; a resource instance running server for executing operations on resource instances; the resource instance management server is used for acquiring the resource classes from the resource class database; a resource instance monitoring server. The open resource management model of the invention effectively solves the problem of digital modeling from a resource entity to an industrial internet platform, standardizes the description requirement of the resource model of the industrial internet platform, realizes the unification of resource description modes, lightens the development workload, reduces the coupling degree of resources and a data management module, improves the fault tolerance and manages large-scale industrial internet resources.

Description

Open type resource management model and construction method thereof
Technical Field
The invention belongs to the technical field of industrial internet, and particularly relates to an open resource management model construction method.
Background
The industrial internet platform can easily realize connection and management and control of various resources, so that an enterprise can quickly and economically collect mass data generated by various resources in the production process, process and analyze the data, and meanwhile, a development platform and a tool are provided to help a user to quickly construct internet of things application, and a mature one-stop solution is provided for certain specific scenes. In an industrial internet platform, various resources need to be allocated on the platform, such as production and manufacturing resources, logistics transportation resources, after-sales resources, and the like, and various sensing devices need to be connected with the industrial internet platform, such as a temperature sensor, a humidity sensor, a pressure sensor, and the like. In order to enable various resources to be connected and communicated with the platform, digital modeling needs to be carried out on the industrial internet platform aiming at physical equipment resources, so that the various resources have a digital mirror image in the system. After modeling various resources such as equipment and terminals, indirect operation of the equipment resources is realized through direct operation of the digital model, so how to describe and digitally model the equipment resources is a major problem which needs to be solved for the industrial internet platform.
The sensor, the manufacturing equipment and the intelligent terminal equipment are typical resources on an industrial internet platform, the sensor is connected to the internet of things platform along with the continuous development of embedded and networked sensors, information collected by the sensor can be shared in the platform, and instructions can be issued to the operation of the resources through the platform, so that the control of the sensor or a physical entity is changed into new application based on Web, the interaction of the information is facilitated, and the development of the internet of things is facilitated.
The current products are: thinworx: the method is an application program platform designed for meeting the intelligent interconnection product solution. The thinworx model definition is composed of Things, thining Templates, thining Shapes. Things represents a physical device, asset, product, system, person, or process with attributes and business logic. Thining tempealtes provide basic functions including attributes, services, events and subscriptions that thining instances use in their execution. Thing Shapes provides a set of properties that are expressed as attributes, services, events and subscriptions that are shared among a set of physical assets.
MindSphere: siemens introduced cloud-based open internet of things operating systems. And the MindConnect tool box can enable the equipment to be easily connected into a network. MindConnect Nano is an embedded industrial personal computer, is connected and communicated with MindSphere in a pre-configuration mode, and comprises a matched gateway and software which can be easily integrated on MES software.
ThingsBoard: an open source Internet of things platform. The device connection is realized through the Internet of things protocols of industry standards, namely MQTT, CoAP and HTTP, cloud and local deployment are supported, and the method has the characteristics of scalability, fault tolerance and excellent performance. Your internet of things entity resources are configured, monitored and controlled in a secure manner using rich server side APIs. Relationships between devices, resources, clients, or any other entity may be defined.
Since the resources are various and each has different static and dynamic attributes, and the services provided to the outside are different, it is necessary to provide a standardized resource description mode and construction, so that various resources have a uniform format for description and illustration. Compared with schemes such as ThingWorx, MindSphere, ThingsBoard and the like, the 'physical entity' resource is emphasized to be modeled, and the 'open type' resource description model and the construction method provided by the invention can support the abstraction and modeling of virtual resources such as 'manufacturing capacity', 'supply capacity', 'transportation capacity', 'maintenance capacity' and the like besides the modeling of the physical entity resource. The resources which are difficult to quantify, such as manufacturing capacity, supply capacity, transportation capacity, maintenance capacity and the like of an enterprise are mapped into a model by entities which can be quantified, such as manufacturing equipment, vehicles, raw material stock and the like, so as to form a mirror image which can be remotely managed by a computer tool. The model shields the diversity of resources and the difficult quantization of virtual resources, unifies the control model, the data transmission model and the data model of the resources, and provides uniform abstraction for the resources of the Internet of things. The access to the internet of things resources and the remote control provide a unified standard and a method.
Disclosure of Invention
In order to solve the problems, the invention provides an open resource management model which is used for digitally modeling and abstracting a sensor and intelligent equipment by modeling a computer of resources and remotely managing the digital model.
In order to realize the purpose of the invention, the invention is realized by adopting the following technical scheme:
an open resource management model, comprising:
the application layer is created with a plurality of applications and used for providing an operable interface for a user, analyzing the user requirements, transmitting the user requirements to the resource layer and receiving the response feedback of the resource layer to the user;
the resource layer is used for receiving the requirements of the application layer and responding, the resource layer establishes a plurality of resource classes according to different data types, one resource is modeled into one resource class, each resource class comprises one or more resource instances, and each resource instance is provided with a unique identification address;
the resource class management server is used for providing services of creating, compiling and deploying the published resource classes for the user;
a resource class database for storing resource classes;
a resource instance database for storing resource instances;
the resource instance running server is used for mapping the resource entities into resource instances, and the resource instances are used for executing the operation of the resource instances;
the resource instance management server is used for acquiring resource classes from the resource class database and providing services for creating, compiling and deploying and releasing resource instances for users;
a resource instance monitoring server for creating, publishing, stopping or invalidating the resource instance.
Further, the resource instance running server also comprises a life cycle for maintaining the resource instance.
Furthermore, the data structure and the calling method of the resource classes are the same, and the addresses of the resource classes are different from each other.
Further, when the resource class management server publishes and deploys the resource class, a resource side runtime library based on C/Java is generated, and the resource side runtime library can be downloaded.
Further, the resource-side runtime library includes any combination of a base library, a resource data type definition segment, an event definition segment, a data segment, a service segment, and a notification segment.
Furthermore, the user sends an instruction through the resource instance management server, the resource instance management server calls the instance mirror image of the resource, the corresponding resource instance is found from the resource instance operation server, and the resource instance operation server responds.
Further, the resource entity accesses the resource instance through the local basic routing component and points to the resource instance, and when the resource instance corresponding to the resource entity is not in the resource entity, the resource entity is prompted to retrieve the address of the resource instance operation server.
Further, the resource entity submits the data, and the resource instance operation server writes the resource instance data into the data queue and returns the data immediately; and the resource instance running server acquires data from the data queue through the thread pool and calls corresponding resource instance searching service.
The invention also provides a method for constructing the open resource management model, which comprises the following steps:
creating a resource class on a resource class management server and storing the resource class in a resource class database;
creating a resource instance on a resource instance management server and storing the resource instance in a resource instance database;
the resource instance running server instantiates, reads the resource class from the local resource class database, and instantiates the resource class;
the user sends an instruction through the resource instance management server, the resource instance management server calls the instance mirror image of the resource, the corresponding resource instance is found from the resource instance operation server, and the resource instance operation server responds.
Further, the resource entity accesses the resource instance through the local basic routing component and points to the resource instance, and when the resource instance corresponding to the resource entity is not in the resource entity, the resource entity is prompted to retrieve the address of the resource instance operation server.
Compared with the prior art, the invention has the advantages and positive effects that: the open resource management model (1) effectively solves the problem of digital modeling from a resource entity to an industrial internet platform, standardizes the description requirement of the resource model of the industrial internet platform, realizes the unification of resource description modes, lightens the development workload, reduces the coupling degree of resources and a data management module, improves the fault tolerance and manages large-scale industrial internet resources.
(2) The definition of resource objects in the industrial internet platform resource model is more finely controlled, an open resource management method is provided, and the problem that the industrial internet platform resources are closed and not opened is solved.
(3) The definition of the resource object in the industrial internet platform resource model can multiplex the definition of other defined resource objects, can be directly integrated into a new resource object without repeated definition, and is open to the outside.
Other features and advantages of the present invention will become more apparent from the following detailed description of the invention when taken in conjunction with the accompanying drawings.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a model diagram of an embodiment of an open resource management model according to the present invention;
FIG. 2 is a schematic diagram of the operation of a resource model in an embodiment of an open resource management model proposed by the present invention;
FIG. 3 is a schematic diagram of an example structure of a resource in an embodiment of the open resource management model of the present invention;
FIG. 4 is an architecture diagram of most companies implementing resource interconnection in an embodiment of the open resource management model proposed in the present invention;
FIG. 5 is a diagram of the architecture of the resource management model incorporating the present invention after release.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings and examples.
It should be noted that in the description of the present invention, the terms of direction or positional relationship indicated by the terms "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, which are merely for convenience of description, and do not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The industrial internet platform provides a variety of applications for users to meet the requirements of the users, such as device resource management applications, big data analysis applications, data visualization applications, and the like. Each application in turn requires the cooperation of multiple resource entities. Taking the device resource management application as an example, physical resources with different specifications, different types and a large number need to be communicated and connected with the industrial internet platform, digital modeling needs to be performed on the industrial internet platform aiming at the physical resources, and the physical resources are indirectly controlled through the operation of the digital model.
The open resource management model of the embodiment defines a set of abstract resource management model by taking industrial internet platform resources as objects, realizes description and modeling of the industrial internet platform resources, and reduces the workload of platform developers and managers.
The method has the advantages that various resources are connected and communicated with each other in an industrial internet platform, the relationship among the various resources is complicated, and the problem is that no unified resource description and modeling method exists at present, so that the different types of resource description modes are different greatly, developers cannot quickly and correctly understand the specific meanings represented by the various resources in the platform and the relationship among the various resources, the resource development speed is reduced, and the resource management is disordered. The invention takes industrial internet resources as objects to establish a model, provides a universal resource abstract model, a standard interface and an SDK development kit for realizing each resource end of the standard interface for the management of various resources; the method provides connection, management service and control interface based on the abstract model for the back end of the industrial internet platform, decouples the relation between a specific resource and a specific platform, and greatly simplifies the earlier stage work of developers and managers. The technical solution of the present invention will be described in detail with specific examples.
Example one
The open resource management model of the embodiment includes:
the application layer is used for providing an operable interface for a user, analyzing the user requirement, transmitting the user requirement to the resource layer, and receiving the response feedback of the resource layer to the user;
the resource layer is used for receiving the application layer requirements and responding, the resource layer establishes a plurality of resource classes according to different data types, one resource is modeled into one resource class, each resource class comprises one or more resource instances, and each resource instance is provided with a unique identification address;
the resource class management server is used for providing services of creating, compiling and deploying the published resource classes for the user;
a resource class database for storing resource classes;
a resource instance database for storing resource instances;
the resource instance running server is used for mapping the resource entities into resource instances; the resource instance running server is used for executing the operation on the resource instance;
the resource instance management server is used for acquiring resource classes from the resource class database and providing services for creating, compiling and deploying and releasing resource instances for users;
a resource instance monitoring server for creating, publishing, stopping or invalidating the resource instance.
The scheme also comprises a user layer, which is used for various users using the model to use the interface provided by the application layer to put forward the requirements to the application layer, and the users can communicate with the application layer through a wired or wireless network so as to complete the required work.
The calling requirement is issued through the abstract model interface or the platform function module, and the problem that industrial internet platform resources are closed and not opened is solved.
Resources in the industrial internet platform are not available to any resource and any user, and various resources must be fully mobilized to improve the working efficiency and the resource utilization rate. The open resource management model of the scheme is open to the outside through a standard interface in the abstract model, and the security is considered, including the security of access identity authentication, the security of data transmission, the security of back-end control, the migration of faults and the like.
As shown in fig. 1, taking the home appliance manufacturing industry as an example, the resource may be embodied as a temperature sensor in the refrigerator manufacturing process. In the manufacturing process of the refrigerator, a plurality of temperature sensors of the same manufacturer and the same model are used, the temperature sensors of the same type are abstracted into a model, the model is subjected to standardized description, and the model is stored in a resource model server. Each temperature sensor used has a mirror image stored in the instance server, and the mirror images are instantiations of the temperature sensor model. When the terminal sends a certain instruction, for example, a manufacturer wants to adjust the temperature of the temperature sensors, the interface provided by the application layer needs to be clicked, the application layer calls the interface provided by the model layer, the unique ID identification of the resource instance is used for finding the instance mirror image of the corresponding temperature sensor, and the mirror image responds to the operation and transmits the instruction to the temperature sensor entity. The following core concepts are proposed based on the above model:
1) RC (resource class) resource class, which is defined at the server end and is a digital modeling of resources;
2) RI (resource instance) resource instances, instantiating the generated instance objects according to the resource class;
3) an RIRS (resource Instance Runtime Server) resource Instance running server, wherein the operation on the RI is carried out on the server;
4) RCMS (resource Class manager Server) resource Class management server;
5) an RIMS (resource Instance manager Server) resource Instance management server;
6) RIMNS (resource Instance Monitor Server) resource Instance monitoring server;
7) RCDB (resource Class DataBase) resource Class database;
8) RIDB (resource Instance database) resource Instance database.
When the resource class management server publishes and deploys the resource classes, a resource end running library based on C/Java is generated, and the resource end running library can be downloaded.
The resource-side runtime library comprises any combination of a base library, a resource data type definition segment, an event definition segment, a data segment, a service segment, and a notification segment.
As shown in fig. 2, after the user successfully logs in through the APP or the Web, a resource class is created on the RCMS according to a requirement, and the RCMS provides functions of creating, compiling, deploying and releasing for the user. The RCDB is responsible for the storage function of the resource classes, and the resource classes created on the RCMS are deployed and released in the RCDB. RIMS manages resource object instance, and provides the functions of creating, publishing, stopping and invalidating resource object. The RIDB stores resource instance objects, and when the RIRS instantiates, data are read from the database, and the RC is instantiated. The user sends an instruction through the RIMS, the RIMS can call the method of the user, the RIRS finds the corresponding example, and the RIRS responds.
The resource instance execution server also includes a lifecycle mechanism for maintaining the resource instance. And the resource entity accesses the RI through the basic routing component of the server and points to the RI, and if the RI corresponding to the resource entity is not in the server, the resource entity is prompted to acquire the RIRS server address. The system defaults to unidirectional data flow, i.e., resource- > RIRS- > RI. To improve data write processing efficiency, the RIRS provides a resource data write queue: the resource entity submits the data, and the RIRS writes the data into the queue and returns the data immediately; the RIRS acquires data from the data queue through the thread pool and calls corresponding RI search service. In the RIRS, a specific resource object is searched for by a unique address of a resource entity, and the resource object is obtained by the resource entity address, so that a method or service of a resource class can be directly called.
RC is a resource class defined by the user on RCMS. The data structure and the calling method of the resource classes are the same, and the addresses of the resource classes are different from each other. And the RCMS is concurrently released and deployed, and a C/Java-based resource end running library is generated while the RCMS is released and deployed, and can be downloaded by other people.
The user sends an instruction through the resource instance management server, the resource instance management server calls the instance mirror image of the resource, the corresponding resource instance is found from the resource instance operation server, and the resource instance operation server responds. An instance image of a resource is the image of the resource (physical device) at its runtime on the resource instance runtime server.
A basic library:
a) the MQTT/WebSocket/TCP base library is responsible for a bottom-layer communication protocol;
b) the communication between the devices and the servers and the Monitor adopts a publisher-subscriber model communication;
c) the message dispatcher is responsible for sending messages among the Device, the Server and the Monitor;
d) the message receiver is responsible for receiving messages among the Device, the Server and the Monitor;
e) the data type-JSON serialization library and the deserialization library are responsible for converting communication data into JSON data or converting the JSON data into C # objects, Java objects and C structural bodies.
Resource data type definition segment:
a) extracting general data types of C #, Java and C from the basic data types, wherein String is not in C, and the general data types are defined by a Char [ ] structure;
b) the complex data type is a set data type defined, and can contain a basic data type and a custom data type;
c) the custom data type can comprise a basic data type, a complex data type and other custom data types;
d) all data types can be automatically converted into JSON data by a data type-JSON serialization deserialization library or the JSON data is converted into the three data types;
e) the data types may be shared in several rc (resource classes) in the form of shared libraries.
Event definition segment:
a) the event is a means for data interaction between the resource entity side and the resource server side and data interaction between the resource monitoring side and the resource server side;
b) the events comprise system-defined events and user-defined events;
c) when developing rc (resource class), event types need to be bound to corresponding processing functions.
Data segment:
a) the data section defines the data content of RC (resource class), such as voltage, rotating speed, temperature and the like;
b) the attribute data defines the basic data content of RC (resource class), such as voltage, rotating speed and the like, the numerical values are determined in operation, namely instantiated in RI (resource instance), and determined by a resource entity end, and the data are defined in the process of creating RC (resource class);
c) static data, which defines the basic information of resource entities and includes creator information, classification, type, available state and other information;
d) and additional information containing static data customized by a user.
Service section:
a) the service segment comprises an instance running at the server end and a method exposed to the resource entity end and the resource monitoring end for running the instance;
b) the method comprises the following steps: method visibility, method name, parameter type, specific implementation of service;
c) because the realization of the server side adopts java development, a user can bind an existing class which accords with the development specification to the service segment;
d) the method of the service segment is operated in an RIRS (resource Instance Runtime Server) resource Instance operating server;
e) the method of the service segment is exposed to the equipment and the monitoring terminal through a predefined interface.
Sixthly, a notification section:
a) the notification segment comprises a processing function of the resource entity end and the resource monitoring end for receiving the message of the server end;
b) the server side stores function interfaces of the notification sections of the resource entity side and the resource monitoring side;
c) the server side calls a function in the interface to trigger a notification event, and the system broadcasts the notification event to each resource entity and the resource monitoring side;
and the message receivers of the resource entity end and the resource monitoring end obtain the events, call a method corresponding to the events and positioned in the notification segment, and process the messages.
And the resource entity accesses the resource instance through the local basic routing component and points to the resource instance, and when the resource instance corresponding to the resource entity is not in the resource entity, the resource entity is prompted to retrieve the address of the resource instance operation server.
The resource entity submits the data, and the resource instance running server writes the resource instance data into the data queue and immediately returns the data; and the resource instance running server acquires data from the data queue through the thread pool and calls corresponding resource instance searching service.
RI is an instantiation of an RC, and the RI structure is shown in FIG. 3.
There are three example mirror types for the RI as an example of the RC:
embodiment mirror image of Resource Instance on Server running on Resource Instance running Server
② example mirror image of Resource Instance on Device running at equipment end
Third, the example mirror image of the Resource Instance on Monitor running at the monitoring end
When a problem occurs in a server, the image on the server can be transplanted to other operable servers.
(4) Realizing resource open to outside through standard interface in model
The method comprises the steps that firstly, front-end equipment resources of the industrial Internet are provided, each equipment has a unique ID-KEY to identify the equipment, the ID-KEY is a KEY which is encrypted by a (DES/RSA) method and can be in one-to-one correspondence with RI (resource instance) of a server side, and if the server side is not registered or an instance is invalidated, data cannot be interacted with the server side.
And the sub code is needed by the embodiment of the resource class to interact data with the server side.
RI (resource instance) mirror image is attribute data instantiation and assignment of RC (resource class); the ID-KEY values which are in one-to-one correspondence with the equipment after the resource instantiation exists; presence status data; identifying whether a connection is currently made; the service segment is presented as an interface Proxy object-Proxy and is responsible for the function of a Proxy server mirror image in the service segment; the notification segment is presented as an unrealized code scaffold for the device side to implement the code here, i.e. secondary development, and receive the event notification sent by the server.
An RI (resource instance) example after an RC (resource class) model is instantiated can be used for realizing secondary development of a user on a service section and a resource management platform through an unrealized code scaffold presented in a notification section.
As shown in fig. 4, if the resource is embodied as a temperature sensor, the user opens the application and acquires the current temperature information first. When a user sends an instruction for changing the temperature to 38 ℃, the temperature sensor is directly connected to the temperature sensor through the network layer, when the temperature of the sensor is adjusted to 38 ℃, the adjusted temperature information is returned, the information is mapped into the data model through the connection service cluster for storage, and the changed temperature information is returned to the user application for display. I.e. it is equivalent that the control end is directly connected to the resource itself, and the parts are highly coupled.
As shown in fig. 5, after the resource management model is added and released, the temperature sensor is connected to the connection server cluster, the connection server stores its own data in the data model and actively maps the data to the model server, the added model server stores the current data, the model server accesses the data update at any time, the application of the application layer, such as APP, accesses the control server and reads the data of the resource from the control server. When the user communicates instructions through the application, such as adjusting the temperature to 38 ℃, the calls through the methods in the model will be displayed to the user at a temperature of 38 ℃, and the instructions are finally communicated by the model through the network layer to the resource itself, which returns the temperature through the sensor and stores. The method reduces the coupling degree of the whole framework, and when a certain part has a problem, the operation of the rest part is not influenced.
(1) Therefore, the method for defining the resource model of the industrial internet platform effectively solves the problem of digital modeling from a resource entity to the industrial internet platform, standardizes the description requirement of the resource model of the industrial internet platform, realizes the unification of resource description modes, reduces the development workload, reduces the coupling degree of resources and a data management module, improves the fault tolerance and manages large-scale industrial internet resources.
(2) The definition of resource objects in the industrial internet platform resource model is more finely controlled, an open resource management method is provided, and the problem that the industrial internet platform resources are closed and not opened is solved.
(3) The definition of the resource object in the industrial internet platform resource model can multiplex the definition of other defined resource objects, can be directly integrated into a new resource object without repeated definition, and is open to the outside.
The description of the resource contains access rights, attributes, methods, services and additional attributes that define the resource. The meanings are as follows:
definition of access rights: the security is the basic requirement of the platform of the internet of things, the access right control is the basic means for ensuring the security, most of the current access right control is specific to users, the security of the system is improved by the right control of the users, but the communication and integration among devices also need the right control, which is more refined right control. The authority control of the resource object mainly comprises the following aspects:
public access rights. The resource instance generated by defining the resource object is globally visible, and all resource instances can access and communicate.
Protected access rights. An object instance that defines the resource object can only be integrated into the resource instance of the resource object or visible by the resource instance that results from inheriting the resource object.
Private: private access rights. The object instance defining the resource object is not accessible by other resource instances, but is only visible by itself or the resource instance integrating the resource object.
And definition of attributes, namely dividing the attributes into two parts, namely basic attributes and integrated attributes of the resource objects.
Basic properties: each resource has its own basic attributes such as factory time, volume, weight, age, manufacturer, warranty period, etc., which may be represented by basic types such as Intege, Float, Double, Long, String, Date, etc.
Integrating attributes: besides basic properties, some resources may be the integration of other resources, for example, the functions of the temperature and humidity sensor may be obtained by integrating the temperature sensor and the humidity sensor, and some properties or functions that are not possessed by a single sensor are obtained by integration. Therefore, the resource objects of the temperature and humidity sensor can be directly integrated with the resource objects of the temperature sensor and the humidity sensor, so that the hierarchical relationship between the resource objects is clear, each resource object can be quickly multiplexed, and the development speed is accelerated.
Definition of the method: the method defined by the resource object is a method for describing basic functions of the resource, such as acquiring real-time data, uploading and issuing data and the like, and when a resource instance is created based on a certain resource object, the resource instance can call the method in the resource object. The definition of the method can also be subject to authority control in view of security.
Public access rights.
Protected access rights.
Private: private access rights.
Definition of service: a series of services can be defined in the resource object, the services are divided into two types, namely system services and custom services, and the resource instances created based on the resource object can call the services to meet the requirements of customers.
System service: a start service, a shut down service, an initialization service, an instantiation service, a data write service, a timer service, etc. of a resource.
Self-defining service: developers can customize services according to own business logic, and can also combine system services to form more complex services meeting customer requirements.
Defining additional attributes: the additional attributes are used for explaining the whole resource object, and the additional attributes comprise the following:
the creator: a person defined for a resource object.
Creating an organization: the organization that defines the resource object includes the members of the organization defining the resource object.
Creation time: the time defined by this resource object.
The basic description of the resource object, which device resource corresponds, the main function, etc. are described.
Example two
The embodiment provides a method for constructing an open resource management model, which comprises the following steps:
creating a resource class on a resource class management server and storing the resource class in a resource class database;
creating a resource instance on a resource instance management server and storing the resource instance in a resource instance database;
the resource instance running server instantiates, reads the resource class from the local resource class database, and instantiates the resource class;
the user sends an instruction through the resource instance management server, the resource instance management server calls a self method, the corresponding resource instance is found from the resource instance operation server, and the resource instance operation server responds.
And the resource entity accesses the resource instance through the local basic routing component and points to the resource instance, and when the resource instance corresponding to the resource entity is not in the resource entity, the resource entity is prompted to retrieve the address of the resource instance operation server.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (10)

1. An open resource management model, comprising:
the application layer is created with a plurality of applications and used for providing an operable interface for a user, analyzing the user requirements, transmitting the user requirements to the resource layer and receiving the response feedback of the resource layer to the user;
the resource layer is used for receiving the requirements of the application layer and responding, the resource layer establishes a plurality of resource classes according to different data types, one resource is modeled into one resource class, each resource class comprises one or more resource instances, and each resource instance is provided with a unique identification address;
the resource class management server is used for providing services of creating, compiling and deploying the published resource classes for the user;
a resource class database for storing resource classes;
a resource instance database for storing resource instances;
the resource instance running server is used for mapping the resource entities into resource instances, and the resource instances are used for executing the operation of the resource instances;
the resource instance management server is used for providing a service for creating, compiling and deploying the published resource instance for the user;
a resource instance monitoring server for creating, publishing, stopping or invalidating the resource instance.
2. The open resource management model of claim 1, wherein the resource instance runtime server further comprises a lifecycle manager for maintaining resource instances.
3. The open resource management model of claim 1, wherein the data structure and the calling method of the resource classes are the same, and the addresses of the resource classes are different from each other.
4. The open resource management model of claim 1, wherein the resource class management server generates a C/Java based resource side runtime when issuing the deployed resource class, the resource side runtime being downloadable.
5. The open resource management model of claim 1, wherein the resource-side runtime library comprises any combination of a base library, a resource data type definition segment, an event definition segment, a data segment, a service segment, and a notification segment.
6. The open resource management model according to any one of claims 1 to 5, wherein a user issues an instruction through the resource instance management server, the resource instance management server invokes an instance image of a resource, finds a corresponding resource instance from the resource instance execution server, and the resource instance execution server responds.
7. The open resource management model according to any of claims 1-5, characterized in that the resource entity accesses the resource instance through a local basic routing component and points to the resource instance, and when the resource instance corresponding to the resource entity is not in the resource entity, prompts the resource entity to retrieve the address of the resource instance operating server.
8. The open resource management model of claim 7 wherein the resource entities submit data and the resource instance runtime server writes the resource instance data into a data queue and returns immediately; and the resource instance running server acquires data from the data queue through the thread pool and calls corresponding resource instance searching service.
9. An open resource management model construction method is characterized by comprising the following steps:
creating a resource class on a resource class management server and storing the resource class in a resource class database;
creating a resource instance on a resource instance management server and storing the resource instance in a resource instance database;
the resource instance running server instantiates, reads the resource class from the local resource class database, and instantiates the resource class;
the user sends an instruction through the resource instance management server, the resource instance management server calls the instance mirror image of the resource, the corresponding resource instance is found from the resource instance operation server, and the resource instance operation server responds.
10. The method for constructing an open resource management model according to claim 9, wherein the resource entity accesses the resource instance through the local basic routing component and points to the resource instance, and when the resource instance corresponding to the resource entity is not in the resource entity, the resource entity is prompted to retrieve the address of the resource instance operating server.
CN202110445020.XA 2021-04-24 2021-04-24 Open type resource management model and construction method thereof Pending CN113157267A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110445020.XA CN113157267A (en) 2021-04-24 2021-04-24 Open type resource management model and construction method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110445020.XA CN113157267A (en) 2021-04-24 2021-04-24 Open type resource management model and construction method thereof

Publications (1)

Publication Number Publication Date
CN113157267A true CN113157267A (en) 2021-07-23

Family

ID=76870163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110445020.XA Pending CN113157267A (en) 2021-04-24 2021-04-24 Open type resource management model and construction method thereof

Country Status (1)

Country Link
CN (1) CN113157267A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626189A (en) * 2021-08-03 2021-11-09 优刻得科技股份有限公司 Resource management model, and method, apparatus, and medium for constructing the same

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040225952A1 (en) * 2003-03-06 2004-11-11 Microsoft Corporation Architecture for distributed computing system and automated design, deployment, and management of distributed applications
CN1710966A (en) * 2005-07-08 2005-12-21 北京邮电大学 Intelligent external system based on control and use separation and having business generation ability
CN102354296A (en) * 2011-11-10 2012-02-15 摩卡软件(天津)有限公司 Monitoring system and method capable of expanding monitoring resources
CN104144215A (en) * 2014-07-24 2014-11-12 西北工业大学 Method for building Internet-of-Things ubiquitous device resource model
US20160359763A1 (en) * 2012-06-27 2016-12-08 International Business Machines Corporation Allocating instantiated resources to an it-service
US20170060542A1 (en) * 2015-08-25 2017-03-02 Cognizant Technology Solutions India Pvt. Ltd. System and method for efficiently managing enterprise architecture using resource description framework
US10545732B1 (en) * 2016-12-06 2020-01-28 Model N Inc. Model configuration using partial model data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040225952A1 (en) * 2003-03-06 2004-11-11 Microsoft Corporation Architecture for distributed computing system and automated design, deployment, and management of distributed applications
CN1710966A (en) * 2005-07-08 2005-12-21 北京邮电大学 Intelligent external system based on control and use separation and having business generation ability
CN102354296A (en) * 2011-11-10 2012-02-15 摩卡软件(天津)有限公司 Monitoring system and method capable of expanding monitoring resources
US20160359763A1 (en) * 2012-06-27 2016-12-08 International Business Machines Corporation Allocating instantiated resources to an it-service
CN104144215A (en) * 2014-07-24 2014-11-12 西北工业大学 Method for building Internet-of-Things ubiquitous device resource model
US20170060542A1 (en) * 2015-08-25 2017-03-02 Cognizant Technology Solutions India Pvt. Ltd. System and method for efficiently managing enterprise architecture using resource description framework
US10545732B1 (en) * 2016-12-06 2020-01-28 Model N Inc. Model configuration using partial model data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王世杰: "基于OSGi开放式服务平台关键技术的研究", 信息科技辑, no. 01, 15 January 2015 (2015-01-15), pages 140 - 498 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626189A (en) * 2021-08-03 2021-11-09 优刻得科技股份有限公司 Resource management model, and method, apparatus, and medium for constructing the same
CN113626189B (en) * 2021-08-03 2024-02-06 优刻得科技股份有限公司 Method, device and medium for constructing resource management model

Similar Documents

Publication Publication Date Title
Gavrilović et al. Software architecture of the internet of things (IoT) for smart city, healthcare and agriculture: analysis and improvement directions
US10904173B2 (en) Near real-time messaging service for data center infrastructure monitoring data
CN108809972B (en) Internet of things comprehensive experiment and application development platform based on open source ecosystem
US10819556B1 (en) Data center agent for data center infrastructure monitoring data access and translation
CN102902536B (en) A kind of Internet of Things computer system
CN103460184B (en) System and method for being monitored in conjunction with generic data model repository and managing data center resource
Karnouskos et al. The IMC-AESOP architecture for cloud-based industrial cyber-physical systems
CN102868736B (en) A kind of cloud computing Monitoring framework design basis ground motion method and cloud computing treatment facility
Lan et al. An IoT unified access platform for heterogeneity sensing devices based on edge computing
JP2007538313A (en) System and method for modeling and dynamically deploying services within a distributed networking architecture
CN105978716B (en) Information technoloy equipment and the processing of the monitoring information Homogeneous of rotating ring equipment and three-dimensional rendering method
WO2007117705A2 (en) Software enabled video and sensor interoperability system and method
Wang et al. A global generic architecture for the future Internet of Things
CN113157267A (en) Open type resource management model and construction method thereof
US11212134B2 (en) Building automation system providing for integration of subsystems
Zyrianoff et al. Two-way integration of service-oriented systems-of-systems with the web of things
Cherrier et al. The “object-as-a-service” paradigm
CN113238489A (en) Intelligent building control method, device and system
Pathan et al. Semantics-based Plug-and-Play Configuration of Sensor Network Services.
WO2003034338A2 (en) Management platform and environment
Kiani et al. A distributed middleware solution for context awareness in ubiquitous systems
Pahl et al. The missing layer—Virtualizing smart spaces
Azzara et al. Architecture, functional requirements, and early implementation of an instrumentation grid for the IoT
Rachkidi Modelling and placement optimization of compound services in a converged infrastructure of cloud computing and internet of things
Kiani et al. Context awareness in large scale ubiquitous environments with a service oriented distributed middleware approach

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