CN104657176A - File updating method and electronic equipment - Google Patents

File updating method and electronic equipment Download PDF

Info

Publication number
CN104657176A
CN104657176A CN201510068134.1A CN201510068134A CN104657176A CN 104657176 A CN104657176 A CN 104657176A CN 201510068134 A CN201510068134 A CN 201510068134A CN 104657176 A CN104657176 A CN 104657176A
Authority
CN
China
Prior art keywords
model file
file
model
data
searching
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
CN201510068134.1A
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.)
NR Electric Co Ltd
NR Engineering Co Ltd
Original Assignee
NR Electric Co Ltd
NR Engineering 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 NR Electric Co Ltd, NR Engineering Co Ltd filed Critical NR Electric Co Ltd
Priority to CN201510068134.1A priority Critical patent/CN104657176A/en
Publication of CN104657176A publication Critical patent/CN104657176A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention discloses a file updating method and electronic equipment. According to the method, when two model files are imported, the two model files are subjected to attributive classification, and a first model file and a second model file are obtained; a backup file corresponding to the first model file is stored; the first model file and the second model file are subjected to classification comparison according to the member node name type of the model files, and a comparison result is obtained; the stored backup file corresponding to the first model file is updated according to the comparison result.

Description

A kind of file updating method and electronic equipment
Technical field
The present invention relates to file processing technology, particularly relate to a kind of file updating method and electronic equipment.
Background technology
IEC61850 standard is the unique universal standard of power system automatic field.At present, can communicating between implement device with device and between device with backstage for the ability of tracing device and the IEC61850 model file of instantiation deploy content.
In actual applications, the device put into operation at the scene, due to change or the function adjustment of demand, needs to carry out the upgrading of IEC61850 model.But, for the IEC61850 model file formed based on robotization, mathematics library instrument, when it exists newly-increased or deletion variable, the larger change of logic node instance number can be caused, make model file to be updated incompatible with the model file run.Now, the mode needing employing backstage again to import model file carrys out all measuring control points in related image, and this model escalation process must be implemented bring larger manual processing effort to Practical Project.
Summary of the invention
In view of this, the embodiment of the present invention is expected to provide a kind of file updating method and electronic equipment, can the automatic updating of implementation model file.
For achieving the above object, the technical scheme of the embodiment of the present invention is achieved in that
The embodiment of the present invention provides a kind of file updating method, is applied to electronic equipment, and described method comprises:
When there being two model files to import, attributive classification being carried out to described two model files, obtains the first model file and the second model file;
The backup file corresponding to described first model file is preserved;
According to the member node name type of model file, classification is carried out to described first model file and described second model file and compares, obtain comparative result;
According to described comparative result, upgrade the backup file corresponding to described first model file preserved.
In such scheme, the described member node name type according to model file, classification is carried out to described first model file and described second model file and compares, obtain comparative result, comprising:
According to the data structure of the member node name type of described model file, what build correspondence searches match information;
Search match information by constructed, bi-directional matching is carried out to the minor structure of searching match information described in corresponding in described first model file and described second model file and searches;
When not finding in described first model file corresponding to the minor structure of searching match information described in described second model file, in the second model file, mark described minor structure is new content;
When not finding in described second model file corresponding to the minor structure of searching match information described in described first model file, in the second model file, mark described minor structure for deleting content.
In such scheme, described according to described comparative result, upgrade the backup file corresponding to described first model file preserved, comprising:
When described comparative result is when there is new content in described second model file, described new content is added to the backup file corresponding to described first model file preserved;
When described comparative result is when there is deletion content in described second model file, delete described deletion content from what preserved corresponding to the backup file of described first model file.
In such scheme, described in search match information and comprise and search coupling key word; Or, described in search match information and comprise and search coupling major key and search coupling time key.
In such scheme, the data structure of the described member node name type according to described model file, what build correspondence searches match information, comprising:
When the member node name type of described model file is for connecting access point, according to the data structure of described connection access point, using the data attribute of described connection access point as searching coupling key word;
When the member node name type of described model file is logical device, according to the data structure of described logical device, using the Instance Name of described logical device as searching coupling key word;
When the member node name type of described model file is the data instance configuration information of logic node, according to the data structure of described data instance configuration information, using the source address of described data instance configuration information as searching coupling major key, using the description of described data instance configuration information, data type as searching coupling time key;
When the member node name type of described model file is logical node data collection, according to the data structure of described logical node data collection, using the data set name of described logical node data collection as searching coupling key word;
When the member node name type of described model file is logic node report blocks, according to the data structure of described logic node report blocks, using described logic node report blocks name as searching coupling key word.
The embodiment of the present invention also provides a kind of electronic equipment, and described electronic equipment comprises attributive classification module, memory module, comparison module and update module;
Described attributive classification module, for when there being two model files to import, carrying out attributive classification to described two model files, obtaining the first model file and the second model file;
Described memory module, for preserving the backup file corresponding to described first model file;
Described comparison module, for the member node name type according to model file, carries out classification to described first model file and described second model file and compares, obtain comparative result;
Described update module, for according to described comparative result, upgrades the backup file corresponding to described first model file preserved.
In such scheme, described comparison module comprises construction unit, matched and searched unit and indexing unit; Wherein,
Described construction unit, for the data structure of the member node name type according to described model file, what build correspondence searches match information;
Described matched and searched unit, for searching match information by constructed, carrying out bi-directional matching to the minor structure of searching match information described in corresponding in described first model file and described second model file and searching;
Described indexing unit, for when not finding in described first model file corresponding to the minor structure of searching match information described in described second model file, in the second model file, mark described minor structure is new content; When not finding in described second model file corresponding to the minor structure of searching match information described in described first model file, in the second model file, mark described minor structure for deleting content.
In such scheme, described update module, for being when there is new content in described second model file when described comparative result, adds the backup file corresponding to described first model file preserved to by described new content; Also for being when there is deletion content in described second model file when described comparative result, delete described deletion content from what preserved corresponding to the backup file of described first model file.
In such scheme, described construction unit, for when the member node name type of described model file is for connecting access point, according to the data structure of described connection access point, using the data attribute of described connection access point as searching coupling key word; When the member node name type of described model file is logical device, according to the data structure of described logical device, using the Instance Name of described logical device as searching coupling key word; When the member node name type of described model file is the data instance configuration information of logic node, according to the data structure of described data instance configuration information, using the source address of described data instance configuration information as searching coupling major key, using the description of described data instance configuration information, data type as searching coupling time key; When the member node name type of described model file is logical node data collection, according to the data structure of described logical node data collection, using the data set name of described logical node data collection as searching coupling key word; When the member node name type of described model file is logic node report blocks, according to the data structure of described logic node report blocks, using described logic node report blocks name as searching coupling key word.
The file updating method that the embodiment of the present invention provides and electronic equipment, when there being two model files to import, carrying out attributive classification to described two model files, obtaining the first model file and the second model file; The backup file corresponding to described first model file is preserved; According to the member node name type of model file, classification is carried out to described first model file and described second model file and compares, obtain comparative result; According to described comparative result, upgrade the backup file corresponding to described first model file preserved.So, the operation such as interpolation, deletion, reservation of execute file content is carried out by the automatic comparison between new ancient deed, can the automatic updating of implementation model file, manual processing effort in effective minimizing Practical Project enforcement, thus reduce model upgrading risk, promote Digitization Project efficiency of the practice.
Accompanying drawing explanation
Fig. 1 is the realization flow schematic diagram of embodiment of the present invention file updating method;
Fig. 2 is embodiment of the present invention file update principle schematic;
To be the embodiment of the present invention to classify the realization flow schematic diagram compared to described first model file and described second model file Fig. 3;
Fig. 4 is the model structure schematic diagram of embodiment of the present invention file;
Fig. 5 is the specific implementation schematic flow sheet of embodiment of the present invention file updating method;
Fig. 6 is that the embodiment of the present invention is based on the file update principle schematic connecting access point;
Fig. 7 is the file update principle schematic of embodiment of the present invention logic-based node;
Fig. 8 is the composition structural representation one of embodiment of the present invention electronic equipment;
Fig. 9 is the composition structural representation two of embodiment of the present invention electronic equipment.
Embodiment
In embodiments of the present invention, when there being two model files to import, attributive classification being carried out to described two model files, obtains the first model file and the second model file; The backup file corresponding to described first model file is preserved; According to the member node name type of model file, classification is carried out to described first model file and described second model file and compares, obtain comparative result; According to described comparative result, upgrade the backup file corresponding to described first model file preserved.
Below in conjunction with drawings and the specific embodiments, the present invention is further described in more detail.
Embodiment one
Fig. 1 is the realization flow schematic diagram of embodiment of the present invention file updating method, as shown in Figure 1, is applied to electronic equipment, and embodiment of the present invention file updating method comprises:
Step S101: when there being two model files to import, attributive classification being carried out to described two model files, obtains the first model file and the second model file;
Particularly, before embodiment of the present invention step S101 performs, when needing the upgrading of execution model file, first two model files import in electronic equipment by user.In the importing process of model file, user can refer to new, the old attribute of two imported model files in advance.Now, electronic equipment is when detection has two model files to import, new, the old attribute of described two model files of directly specifying according to user carries out attributive classification to described two model files, obtains belonging to the first model file of old model file and belonging to the second model file of new model file.Or when in the importing process at model file, user does not refer to new, the old attribute of two imported model files.Now, electronic equipment is when detection has two model files to import, can according to described two model files modification time automatically attributive classification is carried out to described two model files, obtain belonging to the first model file of old model file and belong to the second model file of new model file.In actual applications, in file update principle schematic as shown in Figure 2, usually the first model file is labeled as the on-the-spot old model file device_old.cid run, the second model file is labeled as the new model file device_new.cid revised simultaneously.
Here, described electronic equipment can comprise smart mobile phone, panel computer, notebook computer and personal digital assistant etc.
Step S102: the backup file corresponding to described first model file is preserved;
Here, the backup file corresponding to described first model file, to belong to the first model file of old model file as renewal benchmark, i.e. source, is preserved by described electronic equipment.Particularly, the backup file corresponding to described first model file can be preserved by the mode described first model file being copied to the interim internal storage data of self by described electronic equipment.
Step S103: according to the member node name type of model file, carries out classification to described first model file and described second model file and compares, obtain comparative result;
Particularly, as shown in Figure 3, electronic equipment, according to the member node name type of model file, carries out classification to described first model file and described second model file and compares, obtain comparative result, comprising:
Step S1031: according to the data structure of the member node name type of described model file, what build correspondence searches match information;
Wherein, search match information described in comprise and search coupling key word; Or, described in search match information and comprise and search coupling major key and search coupling time key.
Here, model file involved by the embodiment of the present invention is IEC61850 model file, described model file adopts XML hierarchical structure to describe, as shown in Figure 4, described top level structure comprises concrete structure: file header (Header), communication configuration (Communication), intelligent electronic device (IED), data template (Data Type Templates); Wherein, described IED is IEC61850 model file core.Described IED comprises some connection access points (Access Point), connects access point and comprises again some logical device (Ldevice) further, specifically comprise logic node LN0 ~ LNn.
Particularly, based on the model structure of file as shown in Figure 4, described electronic equipment, according to the data structure of the member node name type of described model file, builds and corresponding searches match information, comprising:
When the member node name type of described model file is for connecting access point, according to the data structure of described connection access point, using the attribute of name (name) of described connection access point as searching coupling key word;
When the member node name type of described model file is logical device, according to the data structure of described logical device, using the Instance Name (inst) of described logical device as searching coupling key word;
When the member node name type of described model file is data instance configuration information (DAI) of logic node, according to the data structure of described data instance configuration information, using the source address (sAddr) of described data instance configuration information as searching coupling major key, using the description of described data instance configuration information, data type as searching coupling time key;
When the member node name type of described model file is logical node data collection (DataSet), according to the data structure of described logical node data collection, using the data set name (name) of described logical node data collection as searching coupling key word;
When the member node name type of described model file is logic node report blocks (ReportControl), according to the data structure of described logic node report blocks, using described logic node report blocks name (name) as searching coupling key word.
Step S1032: search match information by constructed, carries out bi-directional matching to the minor structure of searching match information described in corresponding in described first model file and described second model file and searches;
Step S1033: when not finding in described first model file corresponding to the minor structure of searching match information described in described second model file, in described second model file, mark described minor structure is new content; When not finding in described second model file corresponding to the minor structure of searching match information described in described first model file, in the second model file, mark described minor structure for deleting content.
Step S104: according to described comparative result, upgrades the backup file corresponding to described first model file preserved.
Particularly, described electronic equipment is according to described comparative result, upgrade the backup file corresponding to described first model file preserved, comprise: when described comparative result is when there is new content in described second model file, described new content is added to the backup file corresponding to described first model file preserved; When described comparative result is when there is deletion content in described second model file, delete described deletion content from what preserved corresponding to the backup file of described first model file.Like this, by upgrading the backup file corresponding to described first model file preserved, obtain for the ready-made file device_run.cid replacing upgrading.
So, embodiment of the present invention file updating method carrys out the operation such as interpolation, deletion, reservation of execute file content by the automatic comparison between new ancient deed, can the automatic updating of implementation model file, manual processing effort in effective minimizing Practical Project enforcement, thus reduce model upgrading risk, promote Digitization Project efficiency of the practice.
Embodiment two
Fig. 5 is the specific implementation schematic flow sheet of embodiment of the present invention file updating method, is applied to electronic equipment, and as shown in Figure 5, embodiment of the present invention file updating method comprises:
Step S501 ~ S502: when there being two model files to import, attributive classification being carried out to described two model files, obtains the first model file and the second model file; The backup file corresponding to described first model file is preserved;
Step S503: when the member node name type of described model file is for connecting access point, according to described connection access point, classification is carried out to described first model file and described second model file and compares, obtaining comparative result; According to described comparative result, upgrade the backup file corresponding to described first model file preserved.
Particularly, according to the file update principle schematic based on connection access point (Access Point) as shown in Figure 6, travel through the ground floor child node of the intelligent electronic device structure of the first model file and the second model file, extract XML node and be called the data connecting access point, according to the data structure of described connection access point, using the attribute of name (name) of described connection access point as searching coupling key word, form <name respectively, AcessPoint*>hash shows, carry out bi-directional matching to the minor structure corresponding to described attribute of name (name) in described first model file and described second model file to search, if when the minor structure corresponding to attribute of name (name) described in described second model file does not find in described first model file, in described second model file, mark described minor structure is new content, and described new content is added to the backup file corresponding to described first model file preserved.Further, if when the minor structure corresponding to attribute of name (name) described in described first model file does not find in described second model file, in described second model file, marking described minor structure for deleting content, in the second model file, marking described minor structure for deleting content.In addition, for the connection access point that name value in described first model file and the second model file is identical, a couple can be formed, carry out the minor structure of step S504, be i.e. the file update of logic-based equipment.
Step S504: when the member node name type of described model file is logical device (LDevice), according to described logical device, carries out classification to described first model file and described second model file and compares, obtain comparative result; According to described comparative result, upgrade the backup file corresponding to described first model file preserved.
Particularly, when the member node name type of described model file is logical device, according to the data structure of described logical device, using the Instance Name (inst) of described logical device as searching coupling key word, form <inst respectively, LDevice*>hash shows, and carries out bi-directional matching search the minor structure corresponding to described Instance Name (inst) in described first model file and described second model file; If when the minor structure corresponding to Instance Name (inst) described in described second model file does not find in described first model file, in described second model file, mark described minor structure is new content, and described new content is added to the backup file corresponding to described first model file preserved.Further, if when the minor structure corresponding to Instance Name (inst) described in described first model file does not find in described second model file, in described second model file, marking described minor structure for deleting content, in the second model file, marking described minor structure for deleting content.In addition, for the logical device that described first model file is identical with Instance Name (inst) value in the second model file, a couple can be formed, carry out the minor structure of step S505, be i.e. the file update of logic-based node (LN).
Step S505: when the member node name type of described model file is data instance configuration information (DAI), according to described data instance configuration information (DAI), carry out classification to described first model file and described second model file to compare, obtain comparative result; According to described comparative result, upgrade the backup file corresponding to described first model file preserved.
Particularly, according to the file update principle schematic of logic-based node (LN) as shown in Figure 7, when the member node name type of described model file is data instance configuration information (DAI) of logic node (LN), according to the data structure of described data instance configuration information (DAI), using the source address (sAddr) of described data instance configuration information as searching coupling major key, by the description of described data instance configuration information, data type is as searching coupling time key, form multikey value <sAddr, DAI*>hash shows, carry out bi-directional matching and search to corresponding to the minor structure of described source address (sAddr) in described first model file and described second model file and carry out bi-directional matching and search, if when the minor structure corresponding to source address (sAddr) described in described second model file does not find in described first model file, in described second model file, mark described minor structure is new content, and described new content is added to the backup file corresponding to described first model file preserved.Further, if when the minor structure corresponding to source address (sAddr) described in described first model file does not find in described second model file, in described second model file, marking described minor structure for deleting content, in the second model file, marking described minor structure for deleting content.In addition, for the data instance configuration information (DAI) that described first model file is identical with Instance Name (inst) value in the second model file, with the Instance Name of the first model file (inst) for benchmark, realize the reservation function of Instance Name.
Step S506: when the member node name type of described model file is logical node data collection (DataSet), according to described logical node data collection, carry out classification to described first model file and described second model file to compare, obtain comparative result; According to described comparative result, upgrade the backup file corresponding to described first model file preserved.
Particularly, when the member node name type of described model file is logical node data collection (DataSet), according to the data structure of described logical node data collection, using the data set name (name) of described logical node data collection as searching coupling key word, form <name respectively, DataSet*>hash shows, and carries out bi-directional matching search the minor structure corresponding to described data set name (name) in described first model file and described second model file; If when the minor structure corresponding to data set name (name) described in described second model file does not find in described first model file, in described second model file, mark described minor structure is new content, and described new content is added to the backup file corresponding to described first model file preserved.Further, if when the minor structure corresponding to data set name (name) described in described first model file does not find in described second model file, in described second model file, marking described minor structure for deleting content, in the second model file, marking described minor structure for deleting content.In addition, for the logical node data collection (DataSet) that described first model file is identical with data set name (name) value in the second model file, a couple can be formed, carry out the file update process of the sub-member (FCDA) of logic-based node data collection (DataSet).Further, for data set member (FCDA), the attribute key value of data set member is spliced into major key, build <key, the hash table of FCDA*>, for newly-increased, the deletion relation of flag data collected works member, upgrades the backup file corresponding to described first model file preserved, being about to newly-increased FCDA adds in interim internal storage data, deletes the FCDA of identical key value from interim internal storage data.
Step S507: when the member node name type of described model file is logic node report blocks (ReportControl), according to described logic node report blocks, carry out classification to described first model file and described second model file to compare, obtain comparative result; According to described comparative result, upgrade the backup file corresponding to described first model file preserved.
Particularly, when the member node name type of described model file is logic node report blocks (ReportControl), according to the data structure of described logic node report blocks, using described logic node report blocks name (name) as searching coupling key word, form <name respectively, ReportControl*>hash shows, and carries out bi-directional matching search the minor structure corresponding to described logic node report blocks name (name) in described first model file and described second model file; If when the minor structure corresponding to described logic node report blocks name (name) described in described second model file does not find in described first model file, in described second model file, mark described minor structure is new content, and described new content is added to the backup file corresponding to described first model file preserved.Further, if when the minor structure corresponding to described logic node report blocks name (name) described in described first model file does not find in described second model file, in described second model file, marking described minor structure for deleting content, in the second model file, marking described minor structure for deleting content.
In actual applications, embodiment of the present invention file updating method can also comprise: upgrade data template (DataTypeTemplates) information, namely according to logic node instantiation information, flag data template quote number of times, delete quote the template that number of times is 0; Upgrade transformer substation communication and (Communication) information be set, namely using the name attribute of subnet (Sub Network) as major key, mark subnet newly-increased, delete, and carry out copying, delete processing; Updating file head (Header) information, namely to each Document History (Hitem), is spliced into major key by its all properties value, for mark revisions record (Hitem) newly-increased, delete, and carry out copying, delete processing.
Like this, by upgrading the backup file corresponding to described first model file preserved, obtain for the ready-made file device_run.cid replacing upgrading, as the final IEC61850 model file running upgrading.
So, embodiment of the present invention file updating method carrys out the operation such as interpolation, deletion, reservation of execute file content by the automatic comparison between new ancient deed, can the automatic updating of implementation model file, manual processing effort in effective minimizing Practical Project enforcement, thus reduce model upgrading risk, promote Digitization Project efficiency of the practice.
Embodiment three
Fig. 8 is the composition structural representation of embodiment of the present invention electronic equipment, and as shown in Figure 8, described electronic equipment comprises attributive classification module 801, memory module 802, comparison module 803 and update module 804;
Described attributive classification module 801, for when there being two model files to import, carrying out attributive classification to described two model files, obtaining the first model file and the second model file;
Described memory module 802, for preserving the backup file corresponding to described first model file;
Described comparison module 803, for the member node name type according to model file, carries out classification to described first model file and described second model file and compares, obtain comparative result;
Described update module 804, for according to described comparative result, upgrades the backup file corresponding to described first model file preserved.
In one embodiment, as shown in Figure 9, described comparison module 803 comprises construction unit 8031, matched and searched unit 8032 and indexing unit 8033; Wherein,
Described construction unit 8031, for the data structure of the member node name type according to described model file, what build correspondence searches match information;
Wherein, search match information described in comprise and search coupling key word; Or, described in search match information and comprise and search coupling major key and search coupling time key.
Particularly, described construction unit 8031, specifically for when the member node name type of described model file is for connecting access point, according to the data structure of described connection access point, using the data attribute of described connection access point as searching coupling key word; When the member node name type of described model file is logical device, according to the data structure of described logical device, using the Instance Name of described logical device as searching coupling key word; When the member node name type of described model file is the data instance configuration information of logic node, according to the data structure of described data instance configuration information, using the source address of described data instance configuration information as searching coupling major key, using the description of described data instance configuration information, data type as searching coupling time key; When the member node name type of described model file is logical node data collection, according to the data structure of described logical node data collection, using the data set name of described logical node data collection as searching coupling key word; When the member node name type of described model file is logic node report blocks, according to the data structure of described logic node report blocks, using described logic node report blocks name as searching coupling key word.
Described matched and searched unit 8032, for searching match information by constructed, carrying out bi-directional matching to the minor structure of searching match information described in corresponding in described first model file and described second model file and searching;
Described indexing unit 8033, for when not finding in described first model file corresponding to the minor structure of searching match information described in described second model file, in the second model file, mark described minor structure is new content; When not finding in described second model file corresponding to the minor structure of searching match information described in described first model file, in the second model file, mark described minor structure for deleting content.
In one embodiment, described update module 804, specifically for being when there is new content in described second model file when described comparative result, adds the backup file corresponding to described first model file preserved to by described new content; Also for being when there is deletion content in described second model file when described comparative result, delete described deletion content from what preserved corresponding to the backup file of described first model file.
In actual applications, each unit included in each module in the described electronic equipment provided in the embodiment of the present invention and module all can be realized by the processor in described electronic equipment, also can be realized by concrete logical circuit; Such as, in actual applications, can realize by being positioned at the central processing unit (CPU) of electronic equipment, microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA); In addition, described memory module 802 can also be realized by the storer being positioned at electronic equipment.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.

Claims (10)

1. a file updating method, is applied to electronic equipment, it is characterized in that, described method comprises:
When there being two model files to import, attributive classification being carried out to described two model files, obtains the first model file and the second model file;
The backup file corresponding to described first model file is preserved;
According to the member node name type of model file, classification is carried out to described first model file and described second model file and compares, obtain comparative result;
According to described comparative result, upgrade the backup file corresponding to described first model file preserved.
2. method according to claim 1, is characterized in that, the described member node name type according to model file, carries out classification and compares, obtain comparative result, comprising described first model file and described second model file:
According to the data structure of the member node name type of described model file, what build correspondence searches match information;
Search match information by constructed, bi-directional matching is carried out to the minor structure of searching match information described in corresponding in described first model file and described second model file and searches;
When not finding in described first model file corresponding to the minor structure of searching match information described in described second model file, in the second model file, mark described minor structure is new content;
When not finding in described second model file corresponding to the minor structure of searching match information described in described first model file, in the second model file, mark described minor structure for deleting content.
3. method according to claim 2, is characterized in that, described according to described comparative result, upgrades the backup file corresponding to described first model file preserved, comprising:
When described comparative result is when there is new content in described second model file, described new content is added to the backup file corresponding to described first model file preserved;
When described comparative result is when there is deletion content in described second model file, delete described deletion content from what preserved corresponding to the backup file of described first model file.
4. method according to claim 2, is characterized in that, described in search match information and comprise and search coupling key word; Or, described in search match information and comprise and search coupling major key and search coupling time key.
5. method according to claim 4, is characterized in that, the data structure of the described member node name type according to described model file, and what build correspondence searches match information, comprising:
When the member node name type of described model file is for connecting access point, according to the data structure of described connection access point, using the data attribute of described connection access point as searching coupling key word;
When the member node name type of described model file is logical device, according to the data structure of described logical device, using the Instance Name of described logical device as searching coupling key word;
When the member node name type of described model file is the data instance configuration information of logic node, according to the data structure of described data instance configuration information, using the source address of described data instance configuration information as searching coupling major key, using the description of described data instance configuration information, data type as searching coupling time key;
When the member node name type of described model file is logical node data collection, according to the data structure of described logical node data collection, using the data set name of described logical node data collection as searching coupling key word;
When the member node name type of described model file is logic node report blocks, according to the data structure of described logic node report blocks, using described logic node report blocks name as searching coupling key word.
6. an electronic equipment, is characterized in that, described electronic equipment comprises attributive classification module, memory module, comparison module and update module;
Described attributive classification module, for when there being two model files to import, carrying out attributive classification to described two model files, obtaining the first model file and the second model file;
Described memory module, for preserving the backup file corresponding to described first model file;
Described comparison module, for the member node name type according to model file, carries out classification to described first model file and described second model file and compares, obtain comparative result;
Described update module, for according to described comparative result, upgrades the backup file corresponding to described first model file preserved.
7. electronic equipment according to claim 6, is characterized in that, described comparison module comprises construction unit, matched and searched unit and indexing unit; Wherein,
Described construction unit, for the data structure of the member node name type according to described model file, what build correspondence searches match information;
Described matched and searched unit, for searching match information by constructed, carrying out bi-directional matching to the minor structure of searching match information described in corresponding in described first model file and described second model file and searching;
Described indexing unit, for when not finding in described first model file corresponding to the minor structure of searching match information described in described second model file, in the second model file, mark described minor structure is new content; When not finding in described second model file corresponding to the minor structure of searching match information described in described first model file, in the second model file, mark described minor structure for deleting content.
8. electronic equipment according to claim 7, is characterized in that,
Described update module, for being when there is new content in described second model file when described comparative result, adds the backup file corresponding to described first model file preserved to by described new content; Also for being when there is deletion content in described second model file when described comparative result, delete described deletion content from what preserved corresponding to the backup file of described first model file.
9. electronic equipment according to claim 7, is characterized in that, described in search match information and comprise and search coupling key word; Or, described in search match information and comprise and search coupling major key and search coupling time key.
10. electronic equipment according to claim 9, is characterized in that,
Described construction unit, for when the member node name type of described model file is for connecting access point, according to the data structure of described connection access point, using the data attribute of described connection access point as searching coupling key word; When the member node name type of described model file is logical device, according to the data structure of described logical device, using the Instance Name of described logical device as searching coupling key word; When the member node name type of described model file is the data instance configuration information of logic node, according to the data structure of described data instance configuration information, using the source address of described data instance configuration information as searching coupling major key, using the description of described data instance configuration information, data type as searching coupling time key; When the member node name type of described model file is logical node data collection, according to the data structure of described logical node data collection, using the data set name of described logical node data collection as searching coupling key word; When the member node name type of described model file is logic node report blocks, according to the data structure of described logic node report blocks, using described logic node report blocks name as searching coupling key word.
CN201510068134.1A 2015-02-09 2015-02-09 File updating method and electronic equipment Pending CN104657176A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510068134.1A CN104657176A (en) 2015-02-09 2015-02-09 File updating method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510068134.1A CN104657176A (en) 2015-02-09 2015-02-09 File updating method and electronic equipment

Publications (1)

Publication Number Publication Date
CN104657176A true CN104657176A (en) 2015-05-27

Family

ID=53248355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510068134.1A Pending CN104657176A (en) 2015-02-09 2015-02-09 File updating method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104657176A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107808134A (en) * 2017-10-26 2018-03-16 广东欧珀移动通信有限公司 Image processing method, image processing apparatus and electric terminal
CN115178397A (en) * 2022-07-07 2022-10-14 阿维塔科技(重庆)有限公司 Spraying program debugging method, device and equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060206537A1 (en) * 2002-09-30 2006-09-14 Chiang Ying-Hsin R Updating electronic files using byte-level file differencing and updating algorithms
CN101789042A (en) * 2010-01-29 2010-07-28 华东电网有限公司 Model increment comparing tool of common information model (CIM) of electric network enterprise
CN101996251A (en) * 2010-11-17 2011-03-30 浙江省电力试验研究院 Rapid processing method of large SCL (substation configuration language) document
CN103218398A (en) * 2013-03-13 2013-07-24 江苏省电力公司电力科学研究院 Intelligent substation SCL (substation configuration description language) file difference comparison method
CN103605814A (en) * 2013-12-10 2014-02-26 国家电网公司 Information processing method and information processing system in substation transformation process

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060206537A1 (en) * 2002-09-30 2006-09-14 Chiang Ying-Hsin R Updating electronic files using byte-level file differencing and updating algorithms
CN101789042A (en) * 2010-01-29 2010-07-28 华东电网有限公司 Model increment comparing tool of common information model (CIM) of electric network enterprise
CN101996251A (en) * 2010-11-17 2011-03-30 浙江省电力试验研究院 Rapid processing method of large SCL (substation configuration language) document
CN103218398A (en) * 2013-03-13 2013-07-24 江苏省电力公司电力科学研究院 Intelligent substation SCL (substation configuration description language) file difference comparison method
CN103605814A (en) * 2013-12-10 2014-02-26 国家电网公司 Information processing method and information processing system in substation transformation process

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107808134A (en) * 2017-10-26 2018-03-16 广东欧珀移动通信有限公司 Image processing method, image processing apparatus and electric terminal
CN107808134B (en) * 2017-10-26 2021-05-25 Oppo广东移动通信有限公司 Image processing method, image processing device and electronic terminal
CN115178397A (en) * 2022-07-07 2022-10-14 阿维塔科技(重庆)有限公司 Spraying program debugging method, device and equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
US9047330B2 (en) Index compression in databases
CN105706078A (en) Automatic definition of entity collections
CN103686244A (en) Video data managing method and system
CN106202149B (en) A kind of IEC61850 model file conversion method
CN103020295B (en) A kind of problem label for labelling method and device
CN104572833A (en) Mapping rule establishing method and device
CN113434557B (en) Method, device, equipment and storage medium for querying range of label data
CN113051347B (en) Method, system, equipment and storage medium for synchronizing data between heterogeneous databases
CN104778192A (en) Representing directory structure in content-addressable storage systems
CN105138538A (en) Cross-domain knowledge discovery-oriented topic mining method
CN101178726A (en) Method to efficiently use the disk space while unarchiving
CN102375827A (en) Method for fast loading versioned electricity network model database
CN106951593B (en) Method and device for generating configuration file of protection measurement and control device
CN109871233B (en) Cloud programming file management method and device, equipment and storage medium
US11436279B2 (en) Dynamically building file graph
CN104657176A (en) File updating method and electronic equipment
CN103793401A (en) Method and device for creating sharing indexes of a plurality of database tables
CN103631854B (en) ICD and SCD consistency calibration method based on model objectification semantics
CN115705313A (en) Data processing method, device, equipment and computer readable storage medium
CN102737082A (en) Method and system for dynamically updating file data indexes
CN107943912A (en) A kind of response type Resource TOC data visualization management method, terminal and device
CN105447616A (en) Knowledge management system based on multidimensional classification and full-text retrieval
CN105488165A (en) Data retrieval method and system based on index database
CN115017161A (en) Method, device and application for updating tree data structure by combining virtual DOM
CN114896252A (en) Query method and device for Internet of things equipment, computer equipment and storage medium

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: 20150527