CN102053841B - Embedded active memory object database design method - Google Patents

Embedded active memory object database design method Download PDF

Info

Publication number
CN102053841B
CN102053841B CN 201110001775 CN201110001775A CN102053841B CN 102053841 B CN102053841 B CN 102053841B CN 201110001775 CN201110001775 CN 201110001775 CN 201110001775 A CN201110001775 A CN 201110001775A CN 102053841 B CN102053841 B CN 102053841B
Authority
CN
China
Prior art keywords
memory
description
object model
message
active
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
CN 201110001775
Other languages
Chinese (zh)
Other versions
CN102053841A (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.)
Guodian Nanjing Automation Co Ltd
Original Assignee
Guodian Nanjing 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 Guodian Nanjing Automation Co Ltd filed Critical Guodian Nanjing Automation Co Ltd
Priority to CN 201110001775 priority Critical patent/CN102053841B/en
Publication of CN102053841A publication Critical patent/CN102053841A/en
Application granted granted Critical
Publication of CN102053841B publication Critical patent/CN102053841B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an embedded active memory object database design method, which is characterized in that: (1) a mode for describing an object model realizes seamless combination of object data and relational data in the process of mapping the object model and a relational model, avoids the calculation process for the object-relation mapping process and improves the access speed for a memory object database by directly mapping multi-dimensional object relationships into three special two-dimensional tables; (2) a data organization mode of taking an object attribute column as a basic structure optimizes the database reading speed; (3) a quick loading mechanism shortens system starting time and improves system availability; and (4) an active object information notification mode changes the traditional strong coupling design of 'data structure + algorithm', and simplifies a function application developing step.

Description

A kind of method for designing of embedded active memory object database
Technical field
The present invention relates to the initiatively modelling method of memory object database, the model that relates in particular to a kind of embedded active memory object database of intelligent measuring and control device generates and access technique.Belong to the power automation technical field.
Background technology
In the development process of intelligent apparatus such as the protection of Automation of Electric Systems and measurement, generally adopt the homotype hardware platform, dispose different embedded softwares and adapt to protection and the difference in functionality demand of measuring.In early days, because the intelligent apparatus hardware resource is limited, its embedded software generally should be as customization at concrete function, what software inhouse adopted is the pattern of traditional " data structure+function algorithm ", this mode adaptive hardware resource condition of limited, but in today of digital transformer substation and intelligent grid fast development, the limitation of " data structure+function algorithm " pattern comes out gradually, software often causes wherein data structure variation because add new function, the variation of data structure causes algorithm structure to change again, finally causes re-constructing of whole software.This performance history that moves in circles has brought huge later maintenance cost for intelligent apparatus manufacturer, the embedded software developing mode of tradition " data structure+function algorithm " pattern can not meet the demands, and understanding explosive growth aspect the functional requirement as the intelligent apparatus on digital transformer substation basis, manufacturer is in order to adapt to the different demands of all types of user, must further improve in the research and development production run aspects such as the adaptability of intelligent apparatus and later maintenance cost and improve.
In addition, this type of intelligent apparatus all has the real-time requirement, and particularly system start-up time, event response time, Refresh Data time etc., these real-time features must be embodied on the support system of intelligent apparatus, could satisfy the functional requirement of industry.
Summary of the invention
For solving the problem that runs in the existing embedded software developing process, the object of the present invention is to provide a kind of embedded active memory object database, make the manufacturer when the intelligent apparatus of development difference in functionality, not rely on traditional " data structure+function algorithm " pattern, but be based upon on the unified memory database basis, memory database should be able to satisfy the modeling demand based on the electric power standard of object factory such as IEC61850, and modeling process can not cause the reconstruct of corresponding function application software, during object model increase and decrease attribute, unaffected with the application that the increase and decrease attribute is irrelevant, guarantee the relatively stable of embedded software, reduce the cost that intelligent apparatus is safeguarded in manufacturer's development effectively.In addition, the present invention also must satisfy the real-time requirement of industry standard defined.
For achieving the above object, according to above-mentioned thought design, the present invention designs by following technical method:
A kind of embedded active memory object database design method is characterized in that, may further comprise the steps:
Steps A: the description list of setting up object model, by multi dimensional object relation directly being mapped as 3 object model description lists and N opens object entity description table, finish the description of 3+N kind object type and entity object thereof, simplified the computation process of object-relationship map;
Step B: based on the object model description list, set up the database storing space of classifying infrastructure mode with object properties as, can improve database effectively and read speed;
Step C: load object model and object entity description table, but set up the file map of persistence memory object, prepare for loading fast; Read persistence memory object image file, in internal memory, directly set up the memory mapping of object database, realize loading fast;
Step D: on the basis of step C, load active object message module, receive application event registration and cancellation, generation active message notice, described active object message is the incident that user's explicitly is registered its care, by system's monitoring events initiatively, in case state-event change, system according to user's registration information as condition, automatically detect event change and whether satisfy customer requirements, notify the user whether to carry out required movement.
Aforesaid a kind of embedded active memory object database design method, it is characterized in that: the parameter identification that uses in the described steps A comprises: the structure and the sign of the structure of object model description list and sign, object entity description table; The object model description list comprises object type description list, general-purpose attribute description list, object properties description list.
Aforesaid a kind of embedded active memory object database design method is characterized in that described steps A specifically comprises:
Steps A 1: decoder object model description table, the description of formation object type;
Steps A 2: decoder object model description table generates the description of general-purpose attribute;
Steps A 3: decoder object model description table, the description of formation object attribute.
Aforesaid a kind of embedded active memory object database design method is characterized in that the parameter identification that uses among described step B and the step C comprises: the structure and the sign of the structure of object model file map and sign, object entity file reflection.
Aforesaid a kind of embedded active memory object database design method is characterized in that described steps A specifically comprises:
Step B1: describe according to object properties, set up the data space of classifying tissue signature with object properties as;
Step B2: in the object properties of correspondence row, insert the object model data of description successively, comprise all " 3+N " and open data in object model and the entity description table, set up model data storage container consistent with entity, classify tissue signature as with object properties.
Aforesaid a kind of embedded active memory object database design method is characterized in that described step C specifically comprises:
Step C1:, in internal memory, create the object model reflection according to object model description list decoder object model data;
Step C2:, in internal memory, create the object solid mapping according to model reflection and object entity description tabulation sign indicating number object solid data;
Step C3: the handle of calculating object model reflection, generate the irrelevant memory mapping of handle, and write disk file, generate the memory object model file reflection of persistence;
Step C4: the handle of calculating object solid mapping, generate the irrelevant memory mapping of handle, and write disk file, generate the memory object entity file reflection of persistence;
Step C5: reading object model image file also copies in the specified memory handle according to map parameters;
Step C6: reading object solid mapping file also copies in the specified memory handle according to map parameters;
Step C7: revise the relevant parameter of handle in the internal memory, generate the free memory reflection, finish the quick loading of memory bank.
Aforesaid a kind of embedded active memory object database design method is characterized in that among the described step D, the parameter identification of use comprises: the type of the structure of active message registration table and sign, active message and triggering mode.
Aforesaid a kind of embedded active memory object database design method is characterized in that described step D specifically comprises:
Step D1: create the active message registration table;
Step D2: create active message registration/cancellation and guard task;
Step D3: the task of guarding receives the active message registration, respectively at attribute, three kinds of different triggering modes of class and object;
Step D4: the task of guarding produces active message when being registered attribute and changing, and to using, activates the message task of using according to the log-on message dispatch messages, finishes notification procedure.
The invention has the beneficial effects as follows: in the present invention, the describing mode of its object model, by directly being mapped as special " 3+N ", the multi dimensional object relation opens bivariate table, realized the seamless combination of object data and relation data in the mapping process of object model and relational model, avoid the computation process of object-relationship map process, improved memory object access of database speed; Load mechanism shortens the system start-up incident fast, improves system availability.Active object message advice method has changed the strong coupling design of traditional " data structure+algorithm ", simplifies the development procedure that function is used.
The present invention remedies the deficiency of traditional embedded software " data structure+function algorithm " pattern, adapt to for intelligent apparatus digital transformer substation foundation basic software platform, simplify the software modeling process, reduced the cost of aspects such as new function of manufacturer's developing intellectual resource device and maintenance.
Description of drawings
Fig. 1 is embedded active memory object database object model description method synoptic diagram;
Fig. 2 is embedded active memory object database data storage organization method synoptic diagram;
Fig. 3 is the quick load mode synoptic diagram of embedded active memory object database;
Fig. 4 is the active object message method for designing of an embedded active memory object database synoptic diagram.
Embodiment
Other features and advantages of the present invention will be set forth in the following description, and Partial Feature and advantage are conspicuous from instructions, perhaps understand by implementing the present invention.Objects and advantages of the present invention can realize from the description of instructions, claims and accompanying drawing and obtain.
Fig. 1 is embedded active memory object database object model description method synoptic diagram; Fig. 2 is embedded active memory object database data storage organization method synoptic diagram; Fig. 3 is the quick load mode synoptic diagram of embedded active memory object database; Fig. 4 is the active object message method for designing of an embedded active memory object database synoptic diagram.Below in conjunction with accompanying drawing the present invention is done concrete introduction.
Table 1 is the object type description list; Table 2 is a general-purpose attribute type specification table; Table 3 is the object properties description list; Table 4 is a DI object factory table.
Object model among the present invention is opened bivariate table by special " 3+N " and is described, wherein 3 are used for the object model description, N opens the entity that is used for describing N kind object model, parameter and structure are as shown in Figure 1, by 3 basic description lists: the combination of object model description list, general-purpose attribute description list and object properties description list, the feature and the composition of the object model of any one real world can be explained, and any extra table description need not be increased.
For the present invention is described better, use the 3+1 of Fig. 1 to open 4 kinds of basic object type: ObjectType, AttributeType, ObjectAttribute and DI that table has been described supposition, and the description of the entity of these 4 kinds of objects.Shown in form among the figure, 1 kind of object type of per 1 record description of object type description list, the attribute that these object types may comprise is record in the general-purpose attribute description list, the actual attribute record in the object properties description list that comprises of object type, by in these 3 tables, increasing record, just can finish the description of newly-increased object type.Object entity to newly-increased can increase new table record.In the actual implementation process, be familiar with those skilled in the art, in the technical scope that the present invention discloses, can realize describing many arbitrarily real-world object types easily by changing and replacing for any.The describing method of this object model is that model is consistent with the description of entity, has simplified the calculating in object-relationship map process.
Data organization mode of the present invention is for to classify foundation structure as by attribute, it is corresponding 1 array of per 1 object attribute record, store such attribute data, the object entity no longer is to store by the line item mode, but give the object entity 1 unified index, and visit storage data in the single object properties row respectively by this index, this kind storage organization can effectively improve the reading speed of data, when particularly reading in groups homogeneous data, meet the power industry application characteristic.Processing procedure and argument structure are as shown in Figure 2;
The present invention adopts the disk file reflection that generates the persistence object in advance, and direct mapped file is to the mode of internal memory during startup.Structure is in full accord in the structure of disk file and the internal memory, when system start-up, need not decoding and calculates, only need redress internal memory handle parameter, just can realize the quick loading of memory database, accelerate the system start-up time effectively, improve the availability of system.Because the difference of CPU structure and the difference of operating system, corresponding internal storage structure also is not quite similar, and its logical organization is by the mode that is corresponding 1 array of each object attribute record, and physical arrangement is relevant with CPU and operating system, not in the claim scope.Processing procedure and argument structure are as shown in Figure 3;
The present invention adopts active message mechanism, when the object properties of lane database change, but proactive notification related application, activate the function corresponding Processing tasks, can improve system response time effectively, simplify the application development difficulty, use the data event that only needs registration to be concerned about, write the events corresponding handling procedure, need not to carry out numerous and diverse data query process.Message data comprises contexts such as the new value of incident and old value, time of origin, notice time, occurrence cause.Processing procedure and argument structure are as shown in Figure 4.
Table 1
Object identity The object type title The object type sign Parent object ID Subobject ID tabulation
1-1 ObjectType 1 - -
1-2 AttributeType 2 - -
1-3 ObjectAttribute 3 - -
1-4 DI 4 - -
Table 2
Object identity The attribute type title The attribute data type The attribute type sign Parent object ID Subobject ID tabulation
2-1 OID ObjectID 1 - -
2-2 Name String 2 - -
2-3 ParentID ObjectID 4 - -
2-4 ChildrenList List 5 - -
2-5 ObjectTypeID Integer 3 - -
2-6 AttributeTypeID Integer 6 - -
2-7 DataType Enumerate 7 - -
2-8 State Integer 8 - -
Table 3
Object identity The attribute type title Affiliated attribute type sign Affiliated object type sign Parent object ID Subobject ID tabulation
3-1 OID 1 1 - -
3-1 Name 2 1 - -
3-2 ObjectTypeID 5 1 - -
3-3 ParentID 3 1
3-4 ChildrenList 4 1
3-1 OID 1 2 - -
3-5 Name 2 2 - -
3-6 DataType 7 2 - -
3-7 ParentID 3 2
3-8 ChildrenList 4 2
3-1 OID 1 3 - -
3-9 Name 2 3 - -
3-10 AttributeTypeID 6 3 - -
3-11 ObjectTypeID 5 3 - -
3-12 ParentID 3 3 - -
3-13 ChildrenList 4 3
3-1 OID 1 4 - -
3-14 Name 2 4 - -
3-15 State 8 4 - -
3-16 ParentID 3 4 - -
3-17 ChildrenList 4 4
Table 4
Object identity The DI object oriented The DI state Parent object ID Subobject ID tabulation
2-1 OID 0 - -
2-2 The 1# position of the switch 1 - -
2-3 The 2# position of the switch 1 - -
2-4 The 3# position of the switch 1 - -
2-5 The 4# position of the switch 0 - -
2-6 1# disconnecting link position 1 - -
2-7 2# disconnecting link position 0 - -
2-8 3# disconnecting link position 0 - -
The above embodiment, only for a kind of implementation of the present invention is described, but protection scope of the present invention is not limited thereto, all take to be equal to replace or the design that mode obtained and the implementation method of equivalent transformation, all drop in protection scope of the present invention.

Claims (1)

1. an embedded active memory object database design method is characterized in that, may further comprise the steps:
Steps A: set up the description list of object model,, finished the description of 3+N kind object type and entity object thereof by multi dimensional object relation directly being mapped as 3 object model description lists and N opens object entity description table; The parameter identification that uses in the steps A comprises: the structure and the sign of the structure of object model description list and sign, object entity description table; The object model description list comprises object type description list, general-purpose attribute description list, object properties description list, and steps A specifically comprises:
Steps A 1: decoder object model description table, the description of formation object type;
Steps A 2: decoder object model description table generates the description of general-purpose attribute;
Steps A 3: decoder object model description table, the description of formation object attribute;
Step B: based on the object model description list, set up the database storing space of classifying infrastructure mode with object properties as, step B specifically comprises:
Step B1: describe according to object properties, set up the data space of classifying tissue signature with object properties as;
Step B2: in the object properties of correspondence row, insert the object model data of description successively, comprise all " 3+N " and open data in object model and the entity description table, set up model data storage container consistent with entity, classify tissue signature as with object properties;
Step C: load object model description list and object entity description table, but set up the file map of persistence memory object, prepare for loading fast; But read the file map of persistence memory object, directly set up the memory mapping of object database in internal memory, realize loading fast, step C specifically comprises:
Step C1:, in internal memory, create the object model reflection according to object model description list decoder object model data;
Step C2:, in internal memory, create the object solid mapping according to model reflection and object entity description tabulation sign indicating number object solid data;
Step C3: the handle of calculating object model reflection, generate the irrelevant memory mapping of handle, and write disk file, generate the memory object model file reflection of persistence;
Step C4: the handle of calculating object solid mapping, generate the irrelevant memory mapping of handle, and write disk file, generate the memory object entity file reflection of persistence;
Step C5: read memory object model file reflection and copy in the specified memory handle according to map parameters;
Step C6: read memory object entity file reflection and copy in the specified memory handle according to map parameters;
Step C7: revise the relevant parameter of handle in the internal memory, generate the free memory reflection, finish the quick loading of memory bank;
Step D: on the basis of step C, load active object message module, receive application event registration and cancellation, generation active message notice, described active object message is the incident that user's explicitly is registered its care, by system's active monitoring events, in case state-event changes, system according to user's registration information as condition, automatically detect event change and whether satisfy customer requirements, notify the user whether to carry out required movement, the parameter identification that uses among the step D comprises: the structure of active message registration table and sign, the type of active message and triggering mode, step D specifically comprises:
Step D1: create the active message registration table;
Step D2: create active message registration/cancellation and guard task;
Step D3: the task of guarding receives the active message registration, and log-on message comprises: user profile, related object, triggering rule, response action, and the message registration divides 3 classes, respectively at attribute, three kinds of different triggering main bodys of class and object;
Step D4: the task of guarding is when being registered attribute and changing, produce active message, arrive application according to the log-on message dispatch messages, activate the message task of using, finish notification procedure, active message comprises: message identifier, trigger condition, triggered time, affiliated partner, relating attribute data, action response time;
The parameter identification that uses among described step B and the step C comprises: the structure and the sign of the structure of object model file map and sign, object entity file reflection.
CN 201110001775 2011-01-06 2011-01-06 Embedded active memory object database design method Active CN102053841B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110001775 CN102053841B (en) 2011-01-06 2011-01-06 Embedded active memory object database design method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110001775 CN102053841B (en) 2011-01-06 2011-01-06 Embedded active memory object database design method

Publications (2)

Publication Number Publication Date
CN102053841A CN102053841A (en) 2011-05-11
CN102053841B true CN102053841B (en) 2013-07-31

Family

ID=43958198

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110001775 Active CN102053841B (en) 2011-01-06 2011-01-06 Embedded active memory object database design method

Country Status (1)

Country Link
CN (1) CN102053841B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049345B (en) * 2012-12-10 2015-11-25 北京百度网讯科技有限公司 Based on Disk State transition detection method and the device of asynchronous mechanism
CN105955727A (en) * 2016-04-22 2016-09-21 广东凯通软件开发有限公司 Creation method and access method for universal memory entity
CN110555015B (en) * 2019-09-09 2023-11-03 腾讯科技(深圳)有限公司 Database entity management method and device, electronic equipment and storage medium
CN110780942A (en) * 2019-09-29 2020-02-11 华为技术有限公司 System starting method and device, node equipment and computer readable storage medium
CN111756572A (en) * 2020-05-28 2020-10-09 苏州浪潮智能科技有限公司 Compatible system, method and storage medium for managing information base

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6163781A (en) * 1997-09-11 2000-12-19 Physician Weblink Technology Services, Inc. Object-to-relational data converter mapping attributes to object instance into relational tables
CN101067814A (en) * 2007-05-10 2007-11-07 浪潮集团山东通用软件有限公司 Mapping conversion method between data access level Xml format data and relational data

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6163781A (en) * 1997-09-11 2000-12-19 Physician Weblink Technology Services, Inc. Object-to-relational data converter mapping attributes to object instance into relational tables
CN101067814A (en) * 2007-05-10 2007-11-07 浪潮集团山东通用软件有限公司 Mapping conversion method between data access level Xml format data and relational data

Also Published As

Publication number Publication date
CN102053841A (en) 2011-05-11

Similar Documents

Publication Publication Date Title
CN102053841B (en) Embedded active memory object database design method
CN103023970B (en) Method and system for storing mass data of Internet of Things (IoT)
CN103714129B (en) Dynamic data structure based on conditional plan and the construction device of relation and construction method
Fan et al. Svt-net: Super light-weight sparse voxel transformer for large scale place recognition
US8904381B2 (en) User defined data partitioning (UDP)—grouping of data based on computation model
US8782597B2 (en) Ontology updating apparatus, method and system
CN103700032A (en) Construction method of power grid regulation and control integration panoramic data platform
CN102271156A (en) Data sharing service system based on internet of things
CN103631596A (en) Configuration device and configuration method of business object data entry and updating rule
CN108595664A (en) A kind of agricultural data monitoring method under hadoop environment
CN111400389B (en) IFC expansion-based operation and maintenance 5D-BIM data integration and sharing system
CN108108517A (en) A kind of Electric Power Network Planning intelligence aided analysis method based on big data
CN103946794A (en) Cross-reference and priority claim to related applications
CN110019209A (en) A kind of big data emerging system and method based on Hydropower Enterprise ' business datum
CN103617167A (en) Universal metadata/ relation mapping frame
CN101221565A (en) Method for managing flash data by embedded data base
CN102420862B (en) A kind of Internet of things middleware message form conversion method
CN113986821A (en) Archive file management method based on label
CN115391151B (en) Method for intelligently discovering alarm tag based on object relationship
CN101158901B (en) Method for bridging corporation level and common level JAVABEAN
CN115270213B (en) Twinning method, subscribing method and system for current state of entity
CN101295261B (en) Componentization context processing method facing general computation surroundings
WO2010094983A1 (en) Event processing apparatus and methods
WO2024002294A1 (en) Twinning method for current state of target object, subscription method and system
Yan et al. Research on key technology for data storage in smart community based on big data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20110511

Assignee: Nanjing Guodian Nanjing Grid Automation Co., Ltd.

Assignor: Nanjing Automation Co., Ltd., China Electronics Corp.

Contract record no.: 2012320000943

Denomination of invention: Embedded active memory object database design method

License type: Common License

Record date: 20120911

LICC Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model
C14 Grant of patent or utility model
GR01 Patent grant