CN101882138A - Non-programmatic realization method for two-dimensional sheet dynamic expansion - Google Patents

Non-programmatic realization method for two-dimensional sheet dynamic expansion Download PDF

Info

Publication number
CN101882138A
CN101882138A CN2009100836506A CN200910083650A CN101882138A CN 101882138 A CN101882138 A CN 101882138A CN 2009100836506 A CN2009100836506 A CN 2009100836506A CN 200910083650 A CN200910083650 A CN 200910083650A CN 101882138 A CN101882138 A CN 101882138A
Authority
CN
China
Prior art keywords
data
interface
type
container
renderer
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
CN2009100836506A
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.)
Beijing Sifang Automation Co Ltd
Original Assignee
BEIJING SIFANG BONENG AUTOMATION EQUIPMENT Co Ltd
Beijing Sifang Automation 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 BEIJING SIFANG BONENG AUTOMATION EQUIPMENT Co Ltd, Beijing Sifang Automation Co Ltd filed Critical BEIJING SIFANG BONENG AUTOMATION EQUIPMENT Co Ltd
Priority to CN2009100836506A priority Critical patent/CN101882138A/en
Publication of CN101882138A publication Critical patent/CN101882138A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a real-time database configuration method for an industry automation system, disclosing a non-programmatic realization method for two-dimensional table dynamic expansion. In the method, a two-dimensional sheet is a view and editing tool of a data sheet in a real-time database, and the functions of editing and displaying of a relevant mode among multiple data types and multiple sheets in the real-time database can be realized in a non-programmatic mode through a column-oriented editor and renderer expansion method. The development process of the real-time database configuration of the industry automation system can be effectively improved by the method, and the method has a reference function for other systems designed based on the two-dimensional sheet.

Description

The implementation method of the two-dimentional form dynamic expansion of non-programming mode
Technical field
The invention belongs to industrial automation system real-time data base field, be applied in the industrial automation system real-time monitoring system, this method is used in the real time data configuration process, is a kind of general two-dimensional approach data model configuration method.
Technical background
The real-time data base of general-purpose industrial Automatic monitoring systems this means that adjusting data list structure according to user's request usually at different applications a general real-time data base provides the function of User Defined data list structure.At each particular data table organization definition, the meaning of each field is to have only the user of this list structure of definition to know, traditional mode need be at the definition of concrete table and the meaning of field, the tables of data maintenance tool of exploitation correspondence separately, the edit tool of data list structure, field, the incidence relation between the field etc. are hard coded in the application program, cause the construction cycle long, program version is numerous, and need constantly along with the user to the change of list structure and update routine.
The field data types that real-time data base provides comprises basic data type and complex data type, and basic data type comprises integer, floating type, double, character string type, time type, sign bit-type, color type, multiselect one type etc.May there be incidence relation in the structures that complex data type comprises record pointer, be made of a plurality of basic data types etc. between the different field in tables of data simultaneously, also may have incidence relation between the field of different pieces of information table.
The storehouse edit tool is as the part of an automatically-monitored platform of general-purpose industrial in real time, must realize in the mode of general utility tool, this instrument can dispose promptly applicable to different application scenarios accordingly according to user-defined list structure and field meaning, rather than adopts the hard coded mode.Simultaneously at complex data type, also need to provide extendible interface, guarantee that playing up container the two-dimensional data table editor does not revise under the prerequisite of code, can be by third party developer separately corresponding editing machine of exploitation and renderer, and be loaded into the two-dimensional data table editor and play up in the container.
Summary of the invention
This method has proposed a kind of implementation method of Versatile two-dimension form dynamic expansion of non-programming mode, by this method, user-defined tables of data is abstracted into a 2-D data model, and by the irrelevant real-time database data of interface accessing of real-time library structure, on this abstract 2-D data model basis, proposed to play up the notion of container, the meaning of concrete field has been extracted, and describe by the Interface Definition Document of outside towards the two-dimensional data table editor of row.
Two-dimensional data table editor towards row plays up container at each row in the 2-D data model, and specific editing machine and renderer is provided.Each row all has specific meaning in the 2-D data model, these row all have unified edit action and play up behavior in any data line, editing machine towards row provides data editing method to any line item this row, and the while provides data display method to any these row of line item towards the renderer that is listed as.Two-dimensional data table editor plays up container and provides some interface methods to editing machine and renderer, can respond beginning editor and finishing editor's incident of container by the interface method editing machine, and the 2-D data model is carried out write operation in the mode of call back function, can respond the display packing of container by the interface method renderer, the rendering result of particular column be write the demonstration of two-dimentional form.
Two-dimensional data table editor play up container built-in the editing machine and the renderer of basic data type, can satisfy the editor of the most basic data type and play up function, these basic data types comprise: integer, floating type, double, character string type, time type etc., built-in in addition editing machine and renderer are also supported the processing of the variation meaning of basic data type, comprise: the sign bit-type, the color type, multiselect one type, the shaping field processing capacity of IP address type etc., the regular expression legitimacy arbitration functions of character string type etc., except built-in editing machine and renderer, two-dimensional data table editor plays up the interface that container also provides expanded editing device and renderer, the editor that can satisfy complex data type and associate field plays up function, extended method is as follows: container has been stipulated the interface of editing machine and renderer, and the instantiation method of agreement third party's editing machine and renderer, when container loads the editing machine of particular data row and renderer, obtain the example of editing machine and renderer by listing method in fact, meet the editing machine of container joint standard and renderer has possessed and container between interactive function, comprise the response of editor's incident, play up the response of incident etc., and the result is returned to container handle.
The editing machine and the renderer of expansion define by an XML formatted file, indicate each expanded editing device, the unique tags (this label will be used for the data field defined file and indicate editing machine and the renderer that concrete field adopts) of renderer, instantiation method in this document and (comprised the method name, the parameter meaning), this document is played up container by the two-dimensional data table editor and is loaded when the initialization, and instantiation editor container and play up container.
The data field defined file is used for user-defined tables of data or view are abstracted into a 2-D data model, this model definition data field and the real-time corresponding relation between the database data source, when two-dimensional data table editor plays up container data is carried out value and assign operation in to model, by this corresponding relation the value result is returned to data model, and assigned result is written to real-time storehouse.The data field defined file has indicated editing machine and the renderer type that concrete field is adopted in this model simultaneously, and the related example parameter.By the data field defined file, two-dimensional data table editor plays up container can carry out instantiation to particular data table, form two-dimentional form, to each the row editing machine and the renderer that are adopted in the form, carry out instantiation by listing method and correlation parameter in fact, final editing machine and renderer when forming operation enters editor's flow process and plays up flow process, respond editor's incident of container and play up incident, two-dimentional form is edited and played up.
Description of drawings
Fig. 1 is the mapping relations figure of 2-D data model and data source
Fig. 2 is the built-in editing machine of two-dimentional form editor container and the cut-in method synoptic diagram of expanded editing device
Fig. 3 is that two-dimentional form is played up the built-in renderer of container and the cut-in method synoptic diagram of expansion renderer
Fig. 4 is two-dimentional form editor container and plays up container instance process synoptic diagram
Fig. 5 is the response processing procedure of two-dimentional form editing machine
Fig. 6 is the response processing procedure of two-dimentional form renderer
Fig. 7 is that the initialization and the editor of a two-dimentional form instrument plays up schematic flow sheet
Embodiment
The buzzword of using among the application:
Real-time storehouse: based on the database of the high speed access of memory techniques;
Tables of data: according to the 2-D data model of field and record organization;
Two dimension form: the view that is above-mentioned tables of data;
Editing machine: towards the row of above-mentioned two-dimentional form, the tool and method that column data is edited;
Renderer: towards the row of above-mentioned two-dimentional form, the tool and method that column data is shown;
Contingency table: the field contents of certain tables of data is quoting certain field of other tables of data;
Two dimension form editor container: the set of above-mentioned editing machine, and the dynamic expansion method is provided;
The two dimension form is played up container: the set of above-mentioned renderer, and the dynamic expansion method is provided;
1. Fig. 1 has illustrated the data model of two-dimentional form and the interface specification of concrete data source, and by this data-interface standard, the 2-D data model is provided with the value in real-time storehouse by the value in the real-time storehouse of getValue function call by setValue.
2. Fig. 2 has illustrated the built-in editing machine of two-dimentional form editor container and the cut-in method of expanded editing device, and two-dimentional form editing machine need meet the access standard of two-dimentional form editor container, and realizes with lower interface and event response function:
Component?getEditor(Object?value,int?iRow,int?iCol);
Object?getEditorValue();
void?startEditing();
void?endEditing();
3. Fig. 3 has illustrated two-dimentional form to play up the built-in renderer of container and the cut-in method of expansion renderer, and two-dimentional form renderer need meet the access standard that two-dimentional form is played up container, and realizes following interface function:
Component?getRender(Object?value,int?iRow,int?iCol)。
4. Fig. 4 has illustrated two-dimentional form editor to play up the instantiation method of container, read the definition of expanded editing device and renderer by editing machine defining interface file and renderer defining interface file, and join in the container, the editing machine of a concrete field and renderer are the editor's container and the instantiation of playing up in the container concrete editing machine and renderer.
5. Fig. 5 has illustrated the treatment scheme of two-dimentional table view and line editor, the two dimension form produces editor's incident, editor's incident is passed to the editing machine of particular column according to column, editing machine calls the startEditing method to begin data are edited, this moment, editor's data were clones of raw data, parameter by the stopEditing method after editor finishes judges whether to submit to, if submit to, edited result is at first passed to 2-D data model (abstract data source) verifies, the checking by after write concrete data source; If do not submit to or verify and do not pass through, will cancel editor.
6. Fig. 6 has illustrated the treatment scheme of two-dimentional table view and row renderer, the two dimension form produces refresh events, refresh events is passed to the renderer of particular column according to column, the getRender method of renderer is played up processing according to belonging to of obtaining from the 2-D data model, and the result is presented in the two-dimentional form.
7. Fig. 7 has illustrated the initialization and the editor of a two-dimentional form instrument to play up schematic flow sheet, and whole flow process comprises:
Figure B2009100836506D0000041
By tables of data defined file, editing machine defined file, renderer defined file initialization Container Management device;
Initialization real time data manager;
Figure B2009100836506D0000043
Editor's container instanceization;
Figure B2009100836506D0000044
Play up container instanceization;
Figure B2009100836506D0000045
By data source and constructing definitions 2-D data model;
The instantiation of two dimension form;
The line editor instantiation;
The instantiation of row renderer;
Figure B2009100836506D0000049
Enter editor's flow process and play up flow process;

Claims (10)

1. the implementation method of the two-dimentional form dynamic expansion of a non-programming mode, this method comprises:
The general-purpose accessing interface mode that provides by the industrial automation system real-time data base, can conduct interviews to tables of data according to the irrelevant mode of database structure, tables of data is conceptualized as the data model of two-dimentional form, the two dimension form is towards this abstract data model, with data and demonstration separate processes, data model is only realized basic interface, carries out data interaction with the real-time storehouse of bottom, has reduced the complicacy of program and has strengthened maintainability and dirigibility.
The two dimension form is as the edit tool and the show tools of data model, realize multiple edit mode and played up mode, for basic data type, this method provides the editing machine and the renderer of basic data type, for related data type between data type, field association and the table of complexity, this method has proposed mode of extension, is guaranteeing that two-dimentional form editor plays up container and do not revise under the prerequisite of code container is expanded.
2. the method for claim 1, the tables of data of described real-time data base (data source) is abstract to be the 2-D data model, this 2-D data model is by interface mode and data source swap data, the instantiation of described interface has realized being connected with the several data source, described interface possesses following basic function (Java language, other language can define with reference to this):
Object?getValue(int?col,int?row);
boolean?setValue(int?col,int?row,Object?value);。
3. the method for claim 1, described two-dimentional form editor plays up container and realizes built-in editing machine and extended method, support is played up editing machine and the renderer that defining interface file (form is XML) loads concrete 2-D data model from editor, and is tied to the row of relevant two-dimentional form.
4. the method for claim 1, described two-dimentional form editor plays up the interface that container has defined expanded editing device and renderer, and the editing machine of expansion and renderer realize that this interface can join two-dimentional form editor and play up in the container.
5. the method for claim 1, described basic data type has multiple: integer, floating type, double, character string type, time type, sign bit-type, color type, multiselect one type etc.
6. the method for claim 1, described complex data type are the data types that is combined by basic data type according to concrete service definition.
7. method as claimed in claim 2, described 2-D data model is the abstract of described data source, it can be a tables of data in real-time storehouse, also can be the view of real-time storehouse based on a plurality of tables, described 2-D data model defines by real-time bank interface defined file (form is XML).
8. the method for claim 1, described two-dimentional form is the view of described 2-D data model, can realize in two-dimentional form 2-D data model editing and demonstration, edited result writes data source by the data source interface of 2-D data model definition.
9. the method for claim 1, two-dimentional form editor plays up container to response method and display packing that editing machine and renderer towards row provide editor's incident, comprises following basic skills (Java language, other language define with reference to this):
Component?getEditor(Object?value,int?iRow,int?iCol);
Component?getRender(Object?value,int?iRow,int?iCol);
Object?getEditorValue();
void?startEditing();
void?endEditing();。
10. the method for claim 1 also comprises following content:
The two dimension form provides data importing, export function;
The two dimension form provides the unified disposal route towards multirow;
The interface method of expanded editing device is provided;
Two dimension form editor plays up the edit methods that container provides Interface Definition Document.
CN2009100836506A 2009-05-07 2009-05-07 Non-programmatic realization method for two-dimensional sheet dynamic expansion Pending CN101882138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100836506A CN101882138A (en) 2009-05-07 2009-05-07 Non-programmatic realization method for two-dimensional sheet dynamic expansion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100836506A CN101882138A (en) 2009-05-07 2009-05-07 Non-programmatic realization method for two-dimensional sheet dynamic expansion

Publications (1)

Publication Number Publication Date
CN101882138A true CN101882138A (en) 2010-11-10

Family

ID=43054154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100836506A Pending CN101882138A (en) 2009-05-07 2009-05-07 Non-programmatic realization method for two-dimensional sheet dynamic expansion

Country Status (1)

Country Link
CN (1) CN101882138A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591967A (en) * 2011-12-31 2012-07-18 上海昊沧系统控制技术有限责任公司 Method and device for displaying industrial real-time data
CN112233498A (en) * 2020-10-14 2021-01-15 烟台鼎钰电子科技有限公司 Tabular programmable display controller

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591967A (en) * 2011-12-31 2012-07-18 上海昊沧系统控制技术有限责任公司 Method and device for displaying industrial real-time data
CN102591967B (en) * 2011-12-31 2013-07-17 上海昊沧系统控制技术有限责任公司 Method and device for displaying industrial real-time data
CN112233498A (en) * 2020-10-14 2021-01-15 烟台鼎钰电子科技有限公司 Tabular programmable display controller

Similar Documents

Publication Publication Date Title
CN101593209B (en) Alternating type online statistical map generation and releasing device and method thereof
Tse et al. The utilisation of building information models in nD modelling: a study of data interfacing and adoption barriers
Davis HIPO (hierarchy plus input-process-output)
CN103593174A (en) Adaptable business object
US20130212472A1 (en) System to view and manipulate artifacts at a temporal reference point
CN101789045B (en) Realization method of MDA modeling tool orienting to manufacturing field
US20110225484A1 (en) Cloud based modeling for enhancing spreadsheets
CN103744676A (en) Method for displaying relevance of multi-level information
CN100470429C (en) Synchronization process of total distributed control system operator stations EMS memory database structure storage
CN114238488B (en) Multi-professional digital fruit integration and data interaction method and system
WO2021139488A1 (en) Spatial analysis task processing method and apparatus, and computer device and storage medium
US8566780B2 (en) Object model based mapping
CN103793219A (en) Mobile terminal application development system and method
CN101882138A (en) Non-programmatic realization method for two-dimensional sheet dynamic expansion
Roberti et al. Increasing Autodesk Revit Productivity for BIM Projects: A practical guide to using Revit workflows to improve productivity and efficiency in BIM projects
CN101582027B (en) Computation module based on form field fusion
CN103693163A (en) Digital information integration method of LNG (Liquefied Natural Gas) ship
Zibion Development of a BIM-enabled software tool for facility management using interactive floor plans, graph-based data management and granular information retrieval
CN100424698C (en) Object memory store based custom object processing method
CN102841918A (en) Method and device for processing binary system long-object fluidized data
Trivedi et al. The resurgence of augmented reality and virtual reality in construction: past, present, and future directions
CN101763457A (en) Digital expo information system environment and management and organization method thereof
Opdahl A platform for interoperable domain-specific enterprise modelling based on ISO 15926
Sjøgren The Norwegian buildingSMART program
CN104978264B (en) The smart dynamic modulation of picture library in configuration software

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Free format text: FORMER OWNER: BEIJING SIFANG BONENG AUTOMATION EQUIPMENT CO., LTD.

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100084 HAIDIAN, BEIJING TO: 100085 HAIDIAN, BEIJING

TA01 Transfer of patent application right

Effective date of registration: 20110812

Address after: 100085, Beijing, Haidian District on the four street, No. 9, Beijing Sifang maintenance automation Limited by Share Ltd

Applicant after: Beijing Sifang Jibao Automation Co., Ltd.

Address before: 100084, Beijing, Haidian District agricultural South Road No. 1 hospital, Silicon Valley, bright city, building No. 6 Quartet building

Applicant before: Beijing Sifang Jibao Automation Co., Ltd.

Co-applicant before: Beijing Sifang Boneng Automation Equipment Co., Ltd.

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20101110