CN104142833A - Equipment dynamic management method for package test production line - Google Patents

Equipment dynamic management method for package test production line Download PDF

Info

Publication number
CN104142833A
CN104142833A CN201310164522.0A CN201310164522A CN104142833A CN 104142833 A CN104142833 A CN 104142833A CN 201310164522 A CN201310164522 A CN 201310164522A CN 104142833 A CN104142833 A CN 104142833A
Authority
CN
China
Prior art keywords
equipment
loading
production line
dynamic
described step
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
CN201310164522.0A
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.)
Shenyang Zhongke Bowei Automation Technology Co Ltd
Original Assignee
Shenyang Zhongke Bowei Automation 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 Shenyang Zhongke Bowei Automation Technology Co Ltd filed Critical Shenyang Zhongke Bowei Automation Technology Co Ltd
Priority to CN201310164522.0A priority Critical patent/CN104142833A/en
Publication of CN104142833A publication Critical patent/CN104142833A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses an equipment dynamic management method for a package test production line and adaptable to different classes of equipment of the package test production line. The equipment dynamic management method includes the steps of 1, loading a configuration information list of an equipment dynamic link library; 2, loading the equipment dynamic link library through the reflection technology while loading an assembly on which the dynamic link library is dependent; 3, loading equipment class names from the assembly; 4, instancing foundation class interface objects according to the class names; 5, storing the foundation class interface object to a memory dictionary according to the equipment unique identification ID; and 6, inquiring the foundation class interface object from the memory dictionary according to the equipment ID to realize method invocation to monitor the corresponding equipment. The equipment dynamic management method can realize uniformly dynamic management to different classes of equipment of the package test production line, and accordingly enhances universality of management software and improves development efficiency and utilization rate of the software.

Description

The device dynamic management method of packaging and testing production line
Technical field
The present invention relates to the device dynamic management method of packaging and testing production line, is the dynamic management approach for the different classes of equipment of packaging and testing production line specifically.
Background technology
Device category in packaging and testing factory on production line is various, comprise same operation Zhong Tong manufacturer different model equipment, equipment with different vendor in operation, the equipment of different operations is also deposited, and can dynamically update the equipment of production line at any time according to the actual needs of packaging and testing factory, this has higher requirement to managing the management software of these apparatus for production line, traditional management method is a management software of each model device exploitation, after the renewal of the equipment of Er Dang packaging and testing factory, have to again develop the management software for this model device, so both caused the waste of resource, can affect the production efficiency of packaging and testing factory again.
Summary of the invention
For above-mentioned technical deficiency, object of the present invention provides a kind of method of the different classes of equipment of line of managing production dynamically, to adapt to the actual demand of packaging and testing factory.
The technical solution used in the present invention is for achieving the above object:
The device dynamic management method of described packaging and testing production line, comprises the following steps:
Step 1, the configuration information list of loading equipemtn dynamic link library;
Step 2, utilizes reflection technology loading equipemtn dynamic link library, realizes the loading of the procedure set that this dynamic base is relied on simultaneously;
Step 3, loading equipment class name from procedure set;
Step 4, by class name instantiation foundation class interface object;
Step 5, is stored in internal memory dictionary by equipment unique identification corresponding device ID by affiliated foundation class interface object and manages;
Step 6, under searching in internal memory dictionary by device id, instantiation foundation class interface object is carried out method call, and corresponding device is carried out to management and control.
In described step 1, the configuration information list of loading equipemtn dynamic link library, this configuration information comprises the information such as the affiliated NameSpace of corresponding device type, affiliated dynamic link library name, affiliated class name and class.
In described step 2, the configuration information list according to the equipment dynamic link library loading in described step 1, utilizes reflection technology loading equipemtn dynamic link library, realizes the loading of the procedure set that this dynamic base is relied on simultaneously.
In described step 3, according to the loading of the procedure set in described step 2, dynamic base being relied on, loading equipment class name from procedure set.
In described step 4, according in described step 3 from procedure set loading equipment class name, instantiation foundation class interface object.
In described step 5, according to instantiation interface object in described step 4, by equipment unique identification corresponding device ID, affiliated foundation class interface object is stored in to internal memory dictionary and manages.
In described step 6, according to affiliated foundation class interface object being stored in to internal memory dictionary by equipment unique identification corresponding device ID in described step 5, manage, under searching in internal memory dictionary by device id, instantiation foundation class interface object is carried out method call, and corresponding device is carried out to management and control.
Advantage of the present invention is:
1, dynamically update conveniently.The present invention is by configuration file dynamic management facility information, thus the renewal to facility information by the renewal realization to configuration file.
2, efficient, general.The present invention is by instantiation foundation class interface object, and the renewal of equipment only need be upgraded to realize to the dynamic link library of equipment class and upgrade operation, without re-starting exploitation, has improved the development efficiency of management software, has very high versatility.
Accompanying drawing explanation
Fig. 1 is present device dynamic management process flow diagram;
Fig. 2 is dynamic load linking of devices of the present invention storehouse process flow diagram;
Fig. 3 is the process flow diagram of the present invention to the affiliated foundation class interface object method call in internal memory dictionary.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
Utilize configuration file form to manage the facility information in packaging and testing factory, configuration information mainly comprises equipment corresponding device type, affiliated dynamic link library name, the information such as affiliated class name and the affiliated NameSpace of class, can offer the interface that factory dynamically updates this configuration file, utilize reflection technology to load the dynamic link library under institute's configuration device of configuration file, according to class name under equipment and affiliated NameSpace loading equipment class name, according to device class name, foundation class interface is carried out to instantiation, by equipment unique identification corresponding device ID, affiliated foundation class interface object being stored in to internal memory dictionary manages, under searching in internal memory dictionary by device id, instantiation foundation class interface object is carried out method call.
The device dynamic management method of described packaging and testing production line, comprises the following steps:
Step 1, the configuration information list of loading equipemtn dynamic link library;
Step 2, utilizes reflection technology loading equipemtn dynamic link library, realizes the loading of the procedure set that this dynamic base is relied on simultaneously;
Step 3, loading equipment class name from procedure set;
Step 4, by class name instantiation foundation class interface object;
Step 5, is stored in internal memory dictionary by equipment unique identification corresponding device ID by affiliated foundation class interface object and manages;
Step 6, under searching in internal memory dictionary by device id, instantiation foundation class interface object is carried out method call, and corresponding device is carried out to management and control.
In described step 1, the configuration information list of loading equipemtn dynamic link library, this configuration information comprises the information such as the affiliated NameSpace of corresponding device type, affiliated dynamic link library name, affiliated class name and class.
In described step 2, the configuration information list according to the equipment dynamic link library loading in described step 1, utilizes reflection technology loading equipemtn dynamic link library, realizes the loading of the procedure set that this dynamic base is relied on simultaneously.
In described step 3, according to the loading of the procedure set in described step 2, dynamic base being relied on, loading equipment class name from procedure set.
In described step 4, according in described step 3 from procedure set loading equipment class name, instantiation foundation class interface object.
In described step 5, according to instantiation interface object in described step 4, by equipment unique identification corresponding device ID, affiliated foundation class interface object is stored in to internal memory dictionary and manages.
In described step 6, according to affiliated foundation class interface object being stored in to internal memory dictionary by equipment unique identification corresponding device ID in described step 5, manage, under searching in internal memory dictionary by device id, instantiation foundation class interface object is carried out method call, and corresponding device is carried out to management and control.
As shown in Figure 1, present device dynamic management flow process is as follows:
Obtain configuration information file path;
Judge whether to open configuration information file;
If can not open configuration information file, reporting errors also exits;
If can open configuration information file, according to device id number, read the configuration information of the relevant device in configuration file;
According to class name and affiliated NameSpace loading equipment dynamic link library under the equipment of the configuration information loading;
According to equipment library class name, foundation class object is carried out to instantiation.
As shown in Figure 2, dynamic load linking of devices storehouse comprises following flow process:
Load dynamic link library file;
Obtain class name, class name and affiliated NameSpace under comprising;
Instantiation foundation class interface object;
According to device id, foundation class interface object is managed.
As shown in Figure 3, the affiliated foundation class interface object method call in internal memory dictionary is comprised to following flow process:
Whether in internal memory dictionary, search device id key assignments exists;
If this key assignments exists, foundation class interface method under calling;
If this key assignments does not exist, this device id equipment is not carried out to management and control, prompting error message.

Claims (7)

1. a device dynamic management method for packaging and testing production line, is characterized in that: the dynamic management approach for the different classes of equipment of packaging and testing production line comprises the following steps:
Step 1, the configuration information list of loading equipemtn dynamic link library;
Step 2, utilizes reflection technology loading equipemtn dynamic link library, realizes the loading of the procedure set that this dynamic base is relied on simultaneously;
Step 3, loading equipment class name from procedure set;
Step 4, by class name instantiation foundation class interface object;
Step 5, is stored in internal memory dictionary by equipment unique identification corresponding device ID by affiliated foundation class interface object and manages;
Step 6, under searching in internal memory dictionary by device id, instantiation foundation class interface object is carried out method call, and corresponding device is carried out to management and control.
2. according to the device dynamic management method of packaging and testing production line claimed in claim 1, it is characterized in that: in described step 1, the configuration information list of loading equipemtn dynamic link library, this configuration information comprises the information such as the affiliated NameSpace of corresponding device type, affiliated dynamic link library name, affiliated class name and class.
3. according to the device dynamic management method of packaging and testing production line claimed in claim 1, it is characterized in that: in described step 2, according to the configuration information list of the equipment dynamic link library loading in described step 1, utilize reflection technology loading equipemtn dynamic link library, realize the loading of the procedure set that this dynamic base is relied on simultaneously.
4. according to the device dynamic management method of packaging and testing production line claimed in claim 1, it is characterized in that: in described step 3, according to the loading of the procedure set in described step 2, dynamic base being relied on, loading equipment class name from procedure set.
5. according to the device dynamic management method of packaging and testing production line claimed in claim 1, it is characterized in that: in described step 4, according in described step 3 from procedure set loading equipment class name, instantiation foundation class interface object.
6. according to the device dynamic management method of packaging and testing production line claimed in claim 1, it is characterized in that: in described step 5, according to instantiation foundation class interface object in described step 4, by equipment unique identification corresponding device ID, affiliated foundation class interface object is stored in to internal memory dictionary and manages.
7. according to the device dynamic management method of packaging and testing production line claimed in claim 1, it is characterized in that: in described step 6, according to affiliated foundation class interface object being stored in to internal memory dictionary by equipment unique identification corresponding device ID in described step 5, manage, under searching in internal memory dictionary by device id, instantiation foundation class interface object is carried out method call, and corresponding device is carried out to management and control.
CN201310164522.0A 2013-05-06 2013-05-06 Equipment dynamic management method for package test production line Pending CN104142833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310164522.0A CN104142833A (en) 2013-05-06 2013-05-06 Equipment dynamic management method for package test production line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310164522.0A CN104142833A (en) 2013-05-06 2013-05-06 Equipment dynamic management method for package test production line

Publications (1)

Publication Number Publication Date
CN104142833A true CN104142833A (en) 2014-11-12

Family

ID=51852015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310164522.0A Pending CN104142833A (en) 2013-05-06 2013-05-06 Equipment dynamic management method for package test production line

Country Status (1)

Country Link
CN (1) CN104142833A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502915A (en) * 2016-12-05 2017-03-15 广州唯品会信息科技有限公司 Method for testing software and system
CN109857837A (en) * 2019-01-16 2019-06-07 苏宁易购集团股份有限公司 A kind of dictionary loading method and device that can customize
CN111562951A (en) * 2020-05-11 2020-08-21 电子科技大学 Radar application component service implementation method
CN111752242A (en) * 2020-06-03 2020-10-09 深圳前海禾盈科技有限公司 Equipment connection method for automatic production

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1916842A (en) * 2006-09-06 2007-02-21 上海科泰世纪科技有限公司 Method of packaging component for implementing reflection mechanism in structurized software system
CN102393817A (en) * 2011-06-28 2012-03-28 浪潮集团山东通用软件有限公司 Method for dynamically creating object example by configuration in run time

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1916842A (en) * 2006-09-06 2007-02-21 上海科泰世纪科技有限公司 Method of packaging component for implementing reflection mechanism in structurized software system
CN102393817A (en) * 2011-06-28 2012-03-28 浪潮集团山东通用软件有限公司 Method for dynamically creating object example by configuration in run time

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
段炼: "基于.NET反射机制的软件动态演化方法研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502915A (en) * 2016-12-05 2017-03-15 广州唯品会信息科技有限公司 Method for testing software and system
CN109857837A (en) * 2019-01-16 2019-06-07 苏宁易购集团股份有限公司 A kind of dictionary loading method and device that can customize
CN111562951A (en) * 2020-05-11 2020-08-21 电子科技大学 Radar application component service implementation method
CN111562951B (en) * 2020-05-11 2022-05-03 电子科技大学 Radar application component service implementation method
CN111752242A (en) * 2020-06-03 2020-10-09 深圳前海禾盈科技有限公司 Equipment connection method for automatic production

Similar Documents

Publication Publication Date Title
CN104298512B (en) A kind of functional unit formula integrated development system based on OSGi standards
CN104978258A (en) Software automation test method and system
CN100511156C (en) Apparatus for compulsively terminating thread blocked on input/output operation and method for the same
CN105653329A (en) Application management method, apparatus and system
CN104123151A (en) Plug-in management method and device for application program in mobile terminal and mobile terminal
CN105577475A (en) Automatic performance test system and method
US20130117290A1 (en) Platform for software as a service and method for provisioning service for supporting multi-tenants using the platform
CN103970559A (en) Device loading method and device on basis of Android
CN104142833A (en) Equipment dynamic management method for package test production line
CN106339273A (en) Application program restoration method, terminal and server
CN104572394A (en) Process monitoring method and device
CN110347590A (en) The interface testing control method and device of operation system
CN113672441B (en) Method and device for testing intelligent equipment
CN109787858A (en) A kind of method and terminal of batch issuing service
CN105959302A (en) Terminal management framework and method
CN109426510A (en) Software processing method, device, electronic equipment and computer readable storage medium
CN102487522A (en) Management method and gateway device of terminal devices
CN104410511B (en) A kind of server management method and system
CN102236707A (en) Method, device and system for obtaining update data of database
CN106484452A (en) A kind of unified configuring management method of software platform and device
CN103064780A (en) Software testing method and device thereof
CN109995871A (en) A kind of Pod dispatching method and device
CN103324600B (en) The system of moving calculation module and operation method thereof
CN107943504A (en) The dynamic update method of software module in a kind of embedded system
CN104578418B (en) Configuration method and system of automatic power distribution equipment based on 101 protocols, and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141112