CN102968485B - A kind of real-time data base menu item methods of exhibiting based on virtual Domain - Google Patents

A kind of real-time data base menu item methods of exhibiting based on virtual Domain Download PDF

Info

Publication number
CN102968485B
CN102968485B CN201210486004.6A CN201210486004A CN102968485B CN 102968485 B CN102968485 B CN 102968485B CN 201210486004 A CN201210486004 A CN 201210486004A CN 102968485 B CN102968485 B CN 102968485B
Authority
CN
China
Prior art keywords
virtual domain
menu item
real
virtual
actual field
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.)
Active
Application number
CN201210486004.6A
Other languages
Chinese (zh)
Other versions
CN102968485A (en
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.)
State Grid Beijing Electric Power Co Ltd
Nari Technology Co Ltd
Original Assignee
Nari 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 Nari Technology Co Ltd filed Critical Nari Technology Co Ltd
Priority to CN201210486004.6A priority Critical patent/CN102968485B/en
Publication of CN102968485A publication Critical patent/CN102968485A/en
Application granted granted Critical
Publication of CN102968485B publication Critical patent/CN102968485B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of real-time data base menu item methods of exhibiting based on virtual Domain, the mapping with real-time data base menu item is realized by virtual Domain, comprise the following steps: every table definable virtual Domain in (1) real-time data base, virtual Domain is made up of some mark bit fields, each mark bit field can a corresponding menu item, and set the actual field of flag bit thresholding and correspondence;(2) provide interface to realize the transparent access to virtual Domain, for virtual Domain, can take out from corresponding actual field, do AND-operation, Returning mark bit field value according to its figure place and actual thresholding;(3) application program can obtain, according to above-mentioned interface, the menu item set in virtual Domain, it is not necessary to distinguishes virtual Domain or actual field, it is simple to user is to the maintenance of real-time data base menu item and use.

Description

A kind of real-time data base menu item methods of exhibiting based on virtual Domain
Art
The present invention relates to a kind of real-time data base menu item methods of exhibiting based on virtual Domain, belong to Real-Time Databases System Technique Application.
Background technology
At present, existing menu item can be used for parameter definition in real-time database and safeguards, can be respective for the definition of not same area Menu item, it is achieved the dynamic configuration of parameter.The menu item being stored in actual field is an integer numerical value, readable poor, visits Actual field can only be operated when asking and arrange, it is impossible to operate for some menu item, operation complexity, bring to operation and maintenance Difficulty.
Summary of the invention
For solving existing methodical deficiency, it is an object of the invention to provide a kind of real time data library menu based on virtual Domain Methods of exhibiting, is mapped in real-time data base menu item in the flag bit of virtual Domain, can by name or numbering access flag position Territory, thus obtain the menu entry value of correspondence, extra conversion work need not be carried out again, it is achieved that the transparent access to menu item, Simplify menu item operation and maintenance.
For solving above-mentioned technical problem, technical scheme is as follows:
A kind of real-time data base menu item methods of exhibiting based on virtual Domain, it is characterised in that real-time database menu item is reflected Being mapped in virtual Domain, its method step is as follows:
(1) being virtual Domain by every table definition in real-time data base, described virtual Domain is made up of, often some mark bit fields Individual mark bit field can a corresponding menu item, and set the actual field of flag bit thresholding and correspondence;
(2) interface is provided to realize the transparent access to virtual Domain, for virtual Domain, according to the reality that virtual Domain number conversion is corresponding Territory number, border, and take out from corresponding actual field, do AND-operation according to corresponding actual field figure place and actual thresholding, return Flag bit thresholding;
(3) application program takes virtual mark bit field value according to above-mentioned interface, finally obtains the menu item set in virtual Domain, real The now access to single menu item, and show menu content by row.
Aforesaid real-time data base menu item methods of exhibiting based on virtual Domain, wherein, in described step (2), described It is integer territory number that interface enters ginseng, and going out ginseng is character string type thresholding;Described interface include multiple heavy duty form:
The individual domain comprising virtual Domain takes out;
The multiple territories comprising virtual Domain are taken out;
Virtual thresholding is taken from local real-time database;
Virtual thresholding is taken from the network real-time database specified.
Aforesaid real-time data base menu item methods of exhibiting based on virtual Domain, it is characterised in that: provide one group based on void Near-field accesses the interface of real-time data base menu item, methods of exhibiting calling interface, can realize the access to single menu item, and will Menu content is shown by row.
What the present invention was reached has the beneficial effect that:
1, user can by name or numbering realizes transparent access to real-time data base menu item, it is simple to operation and maintenance;
2, virtual Domain does not stores, the mark bit field that only storage is corresponding, saves memory headroom;
3, the interface of multiple heavy duty type is provided, is suitable for the needs of various application;
4, portable high, it is adaptable to each operating system platform.
Accompanying drawing explanation
Fig. 1 is to change actual field flow process according to virtual Domain number;
Fig. 2 real-time database based on virtual Domain menu item shows interface handling process.
Detailed description of the invention
Below in conjunction with accompanying drawing, the present invention made further details of introduction.
The present embodiment provides a kind of real-time data base menu item methods of exhibiting based on virtual Domain, by real-time data base Menu item is mapped in the flag bit of virtual Domain, by name or numbering access flag bit field, thus can obtain the menu item of correspondence Value, need not carry out extra conversion work, it is achieved that the transparent access to menu item again, simplifies menu item operation and maintenance.Its Method step is as follows:
(1) every table definable virtual Domain in real-time data base, virtual Domain is made up of some mark bit fields, each mark Bit field can a corresponding menu item, and set the actual field of flag bit thresholding and correspondence;
(2) provide interface to realize the transparent access to virtual Domain, for virtual Domain, change actual field according to virtual Domain number Number, can take out from corresponding actual field, do AND-operation, Returning mark bit field value according to its figure place and actual thresholding.
Fig. 2 is that present invention real-time database based on virtual Domain menu item shows interface process chart.One group based on virtual Domain Access the interface of real-time data base menu item, i.e. methods of exhibiting calling interface, the access to single menu item can be realized, and by dish Single content is shown by row.This displaying interface handling process is: navigate to current record according to incoming territory number, and territory pointer points to first Individual territory, then judges whether territory number is equal to all territories number, if equal, then territory pointer points to the step of the current field.Otherwise, then Taking out actual field number, then judge whether actual field number exists, if there is actual field number, then carrying out virtual Domain number conversion actual field Number, the step of the current field is pointed to subsequently into territory pointer;After last pointer points to the current field, take out thresholding, enter corresponding menu ?.
Fig. 1 is that the present invention changes actual field flow chart according to virtual Domain number;Its present invention provides a class interface to access base In the real-time data base menu item of virtual Domain, it changes actual field number according to virtual Domain number so that it is can quickly, accurately obtain this dish Whether individual event is selected, and shows to get up the most very convenient.Its operational approach is: it is first determined whether be internal actual field number;If It is to return first menu;If it is not, take out virtual Domain number to be converted to internal virtual territory number and corresponding internal actual field number, then The actual field number of correspondence is converted to again by internal actual field number.
(3) application program can obtain, according to above-mentioned interface, the menu item set in virtual Domain, shows by row, it is not necessary to distinguishes void Near-field or actual field.
The above-mentioned interface provided in the present invention realizes conducting interviews real-time data base menu item based on virtual Domain, this kind of The ginseng that enters of interface is integer territory number, and going out ginseng is character string type thresholding, has multiple heavy duty form, supports the individual domain comprising virtual Domain Take out, also support that the multiple territories comprising virtual Domain are taken out;Support to take virtual thresholding from local real-time database, also support from the net specified Network real-time database takes virtual thresholding.
In the present embodiment, first virtual mark bit field, this mark are created for the actual field that data type is Menu Type Will bit field fills storage down, thus without committed memory space.The corresponding menu item of each mark bit field, deposits in actual field The menu value set.When accessing menu item, it can be taken out from corresponding mark bit field, according to its figure place and actual thresholding Do AND-operation, judge that menu item is the most selected or sets successfully by returning 0 or 1.
Assuming to have in real-time Kuku spark gap table, structure is as follows:
ID(major key), title, running status
Wherein " running status " comprises each sub-states, is a menu area, each the corresponding menu item of sub-state, The corresponding virtual Domain of each menu item.
The table content not using virtual Domain is as follows:
ID Title Running status ……
117093590328410113 No. 1 spark gap 25
The table content using virtual Domain is as follows:
ID Title Running status There is block (empty) Alarm is had to be suppressed (empty) Need to confirm (empty) Light word is had to confirm (empty) There is accident (empty) There is light word (empty) ……
117093590328410113 No. 1 spark gap 25 0 1 1 0 0 1
For No. 1 spark gap, in running status menu, the 0th, 3,4 menu items are selected, and 20+23+24=25, therefore its Running status menu thresholding is 25.When not using virtual Domain, only display running status menu area, after using virtual Domain, will run Each sub-state in state, as menu item, is mapped by virtual Domain.
Visible when not using virtual Domain, running status menu area can only be accessed, it is impossible to accurately obtain the most each menu item Information, need to carry out extra conversion work, add operation easier, show to get up the most directly perceived.And use virtual Domain Time, the menu subitem that virtual Domain is corresponding can be directly accessed, this menu item can be quickly, accurately obtained according to virtual thresholding the most selected Fixed, show to get up the most very convenient.
The present invention provides above-mentioned interface accessing real-time data base based on virtual Domain menu item, and the ginseng that enters of this interface is numerical value Type keyword, going out ginseng is to describe character string, has multiple heavy duty form, supports that single keyword takes single description character string, also prop up Hold multiple keyword and take multiple description character string;Support to take description character string from local real-time database, also support from the network specified Real-time database takes description character string.Virtual Domain operationally, can be taken out and change, according to its position from corresponding actual field by interface Number and actual thresholding do AND-operation, thus are converted into desired menu entry value and return.
Use the real-time database man machine interface of present mechanism when accessing menu item, can obtain in virtual Domain according to above-mentioned interface and set Fixed menu item, it is not necessary to distinguish virtual Domain or actual field.
The real-time data base menu item methods of exhibiting based on virtual Domain that the present invention relates to is to combine to be operated in application layer Realize in the real-time database of independent development, do not rely on concrete operating system, it is adaptable to various operating systems.The present invention relates to Real-time data base menu item methods of exhibiting based on virtual Domain ensure that portability, it is possible to along with real-time database security of system, surely Surely operate in the operating system platforms such as IBM AIX, Sun Solaris, Alpha Tru64, HPUX, Linux, Windows; System programming language uses ANSI C/C++, and meets IEEE POSIX.2 standard.
Examples detailed above limits the present invention the most in any form, and the mode of all employing equivalents or equivalent transformation is obtained Technical scheme, all falls within protection scope of the present invention.

Claims (2)

1. a real-time data base menu item methods of exhibiting based on virtual Domain, it is characterised in that real-time database menu item is mapped In virtual Domain, its method step is as follows:
(1) being virtual Domain by every table definition in real-time data base, described virtual Domain is made up of some mark bit fields, Mei Gebiao The corresponding menu item of will bit field, and set the actual field of flag bit thresholding and correspondence;
(2) interface is provided to realize the transparent access to virtual Domain, for virtual Domain, according to the actual field that virtual Domain number conversion is corresponding Number, and take out from corresponding actual field, do AND-operation, Returning mark according to corresponding actual field figure place and actual thresholding Bit field value;
(3) application program takes virtual mark bit field value according to above-mentioned interface, finally obtains the menu item set in virtual Domain, it is achieved right The access of single menu item, and show menu content by row;
Described interface realizes:
Navigating to current record according to incoming territory number, territory pointer points to first territory;Then judge that whether territory number is equal to all Territory number;If equal, then territory pointer points to the step of the current field;Otherwise, then take out actual field number, more whether judge actual field number Exist, if there is actual field number, then carry out virtual Domain number conversion actual field step, point to the current field subsequently into territory pointer Step;
After last pointer points to the current field, take out thresholding, enter corresponding menu item;
Described virtual Domain number conversion actual field step is: it is first determined whether be internal actual field number;If so, first dish is returned Single;If it is not, take out virtual Domain number to be converted to internal virtual territory number and corresponding internal actual field number, the most again by internal actual Territory number is converted to the actual field number of correspondence.
Real-time data base menu item methods of exhibiting based on virtual Domain the most according to claim 1, it is characterised in that: in institute Stating in step (2), the ginseng that enters of described interface is integer territory number, and the ginseng that goes out of described interface is character string type thresholding, described interface bag Including multiple heavy duty form, described multiple heavy duty form is that the individual domain comprising virtual Domain takes out, and the multiple territories comprising virtual Domain take Go out, take virtual thresholding from local real-time database and take virtual thresholding from the network real-time database specified.
CN201210486004.6A 2012-11-26 2012-11-26 A kind of real-time data base menu item methods of exhibiting based on virtual Domain Active CN102968485B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210486004.6A CN102968485B (en) 2012-11-26 2012-11-26 A kind of real-time data base menu item methods of exhibiting based on virtual Domain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210486004.6A CN102968485B (en) 2012-11-26 2012-11-26 A kind of real-time data base menu item methods of exhibiting based on virtual Domain

Publications (2)

Publication Number Publication Date
CN102968485A CN102968485A (en) 2013-03-13
CN102968485B true CN102968485B (en) 2016-08-10

Family

ID=47798623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210486004.6A Active CN102968485B (en) 2012-11-26 2012-11-26 A kind of real-time data base menu item methods of exhibiting based on virtual Domain

Country Status (1)

Country Link
CN (1) CN102968485B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165053B (en) * 2018-08-15 2022-04-01 康美健康云服务有限公司 Application software menu configuration method, mobile terminal and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001075840A (en) * 1999-09-03 2001-03-23 Meidensha Corp Storage and retrieval system of monitored data
CN1808433A (en) * 2006-01-26 2006-07-26 北京和利时系统工程股份有限公司 Quick and safe real-time database access method
CN102214228A (en) * 2011-06-24 2011-10-12 国电南瑞科技股份有限公司 Large-grid distributed real-time database system and data management method thereof
CN101901269B (en) * 2010-08-04 2012-05-23 国电南瑞科技股份有限公司 Real-time library foreign key reference and display method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001075840A (en) * 1999-09-03 2001-03-23 Meidensha Corp Storage and retrieval system of monitored data
CN1808433A (en) * 2006-01-26 2006-07-26 北京和利时系统工程股份有限公司 Quick and safe real-time database access method
CN101901269B (en) * 2010-08-04 2012-05-23 国电南瑞科技股份有限公司 Real-time library foreign key reference and display method
CN102214228A (en) * 2011-06-24 2011-10-12 国电南瑞科技股份有限公司 Large-grid distributed real-time database system and data management method thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
实时数据库技术在荆门石化的应用;陈海宁;《信息与电脑》;20091115(第11期);109,111 *
调度自动化系统实时数据库模型的研究与实现;吴文传等;《电网技术》;20010924;第25卷(第9期);28-32 *

Also Published As

Publication number Publication date
CN102968485A (en) 2013-03-13

Similar Documents

Publication Publication Date Title
US8306971B2 (en) Methods and systems of automatically geocoding a dataset for visual analysis
CN101346000B (en) System for providing local mobile geographic information service based on GPS and mobile terminal
CN105022770B (en) A kind of Geocoding and system based on smart city
CN104484790A (en) Address match method and device of logistics business
CN107766309B (en) Data table generation method and device, storage medium and electronic device
EP2891993A1 (en) Method for virtualizing large-scale distributed heterogeneous data
US20120072448A1 (en) Location-based data service apparatus and method
CN101908165A (en) Geographic information system (GIS)-based industrial cluster information integration service system and method
CN103412863A (en) Embedded-device-oriented method for achieving rapid visualization of high-capacity vector map
US20150006517A1 (en) Generating business intelligence geospatial elements
CN107220308B (en) Method, device and equipment for detecting rationality of POI (Point of interest) and readable medium
CN104077322A (en) Method and system for mining geographic information on basis of problems
CN103235798B (en) Business domains space resources storage means and the system of multi-source geographic grid
CN113326314B (en) Data visualization method, device, electronic equipment and readable storage medium
CN105787034A (en) Data presentation method and device
CN106408489A (en) Targeted poverty alleviation information processing method and device
CN103852080B (en) The map-indication method of object and system
CN102999610A (en) Data access system and data access method
CN102968485B (en) A kind of real-time data base menu item methods of exhibiting based on virtual Domain
CN102831501A (en) Interactive type geospatial information based labor service resource management system
CN104156364B (en) Map search result shows method and apparatus
CN101901269B (en) Real-time library foreign key reference and display method
US9449110B2 (en) Geotiles for finding relevant results from a geographically distributed set
CN116594683A (en) Code annotation information generation method, device, equipment and storage medium
CN115309747A (en) Fire fighting management method and platform based on spatial grid data and electronic 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
C14 Grant of patent or utility model
GR01 Patent grant
CB03 Change of inventor or designer information

Inventor after: Wang Jin

Inventor after: Wang Zhiyong

Inventor after: Jin Jing

Inventor after: Peng Hui

Inventor after: Sun Yunfeng

Inventor after: Zhang Haibin

Inventor after: Liu Runsheng

Inventor after: Wang Peng

Inventor after: Lin Tao

Inventor after: Xin Feng

Inventor before: Wang Jin

Inventor before: Jin Jing

Inventor before: Peng Hui

Inventor before: Sun Yunfeng

Inventor before: Zhang Haibin

CB03 Change of inventor or designer information
TR01 Transfer of patent right

Effective date of registration: 20180327

Address after: 211106 Jiangning City, Nanjing Province, the integrity of the road No. 19,

Co-patentee after: State Grid Beijing Electric Power Company

Patentee after: NARI Technology Development Co., Ltd.

Address before: High road high tech Development Zone Nanjing city Jiangsu province 210061 No. 20

Patentee before: NARI Technology Development Co., Ltd.

TR01 Transfer of patent right