Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and system for generating custom forwarding table based on xml file of power distribution terminal equipment

A power distribution terminal and forwarding table technology, which is applied in the direction of electrical components, transmission systems, digital transmission systems, etc., can solve the problem that the main configuration file information cannot generate forwarding table information, etc., and achieve concise information, convenient and free equipment configuration, and high efficiency Effect

Active Publication Date: 2019-07-26
SHANDONG LUNENG SOFTWARE TECH
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The existing technology is based on the main configuration file of the communication management module of the power distribution terminal equipment, and the data such as device tree information and child nodes are designed. It is a standard multi-fork tree, and the data information can be obtained by traversing the tree and then the forwarding table can be generated. However, it is impossible to generate normal forwarding table information that can be used by power distribution terminal equipment for customized, irregular, and out-of-sequence main configuration file information.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for generating custom forwarding table based on xml file of power distribution terminal equipment
  • Method and system for generating custom forwarding table based on xml file of power distribution terminal equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0056] like figure 1 and figure 2 As shown, the custom forwarding table generation method based on the XML file of the power distribution terminal equipment includes:

[0057] Step (1): Create a new device array according to the type of power distribution terminal equipment, and initialize the device array; read the XML configuration file; judge whether the format of the XML configuration file is correct, if it is correct, enter step (2), otherwise, end;

[0058] Step (2): Locate the XML configuration file node, get Node data, judgment Whether the node data is empty; if If the node data is not empty, go to step (3); otherwise, end;

[0059] Step (3): Get The number of child nodes of the node is N, if N>0, enter step (4), otherwise, end;

[0060] Step (4): put The data records of the child nodes of the node are stored in the data ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and system for generating a custom-made forwarding table based on a power distribution terminal device XML file. The method comprises the following steps: establishing a new device array according to a power distribution terminal device type, and initializing the device array; reading an XML configuration file; judging whether the file format is correct, locating a file node, obtaining node data, and judging whether the node data are empty; if the node data are not empty, obtaining a sub-node of the node, and recording and storing the data of the sub-node of the node in a data recording table; recording and correspondingly storing all data records in the data recording table in the device array one by one; forming device information of a multi-fork tree structure composed of a father node and sub-nodes extending downward from the top according to the device information in the device array and the four-remote information and the fixed value information of the corresponding device; and generating the custom-made forwarding table of the corresponding device by means of the circular traversal of the device information of the multi-fork tree structure. By adoption of the method and system disclosed by the invention, the custom-made forwarding table of the corresponding device can be generated.

Description

technical field [0001] The invention relates to a method and system for generating a customized forwarding table based on an XML file of a power distribution terminal equipment. Background technique [0002] The existing technology is based on the main configuration file of the communication management module of the power distribution terminal equipment, and the data such as device tree information and child nodes are designed. It is a standard multi-fork tree, and the data information can be obtained by traversing the tree and then the forwarding table can be generated. However, the irregular and out-of-sequence main configuration file information customized according to user needs cannot generate normal forwarding table information that can be used by power distribution terminal equipment. [0003] The prior art only parses XML files with standard tree structures and standard patterns, and then generates data information. Contents of the invention [0004] The purpose o...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/24G06F16/84
CPCG06F16/84H04L41/0843
Inventor 熊建成王秉钧巩方波张晓花曹淑英侯贺龙王倩倩杨娜
Owner SHANDONG LUNENG SOFTWARE TECH