Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for configuring parameters

A technology for configuring parameters and parameters, applied in the direction of program control devices, etc., can solve problems such as complex analysis process, slow reading or modifying data speed, and large memory space occupation

Inactive Publication Date: 2012-07-11
PEKING UNIV FOUNDER GRP CO LTD +1
View PDF4 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] It can be seen that the existing DOM method needs to load the entire document into the memory, and then generate an object tree of corresponding nodes. In this way, when the data volume of the XML file is relatively large or the file structure is relatively complicated, a large amount of memory space will be occupied, and its parsing The process will be very complicated, and the time will be relatively long, so the speed of reading or modifying data is relatively slow

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 device for configuring parameters
  • Method and device for configuring parameters
  • Method and device for configuring parameters

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In the embodiment of the present invention, after all parameters to be configured are generated into a text file, the file is converted into a class object file, and each parameter to be configured in the class object file is configured. Then, the class object file configured with parameters is serialized, and the object is converted into a text file to form a configuration file for saving. In this way, when the application system is run, the configuration file can be called and the configuration file can be modified. Deserialize to get the executable object with configured parameters, so as to run the application system.

[0022] Among them, serialization is the process of converting objects into an easily transportable format. In the embodiment of the present invention, an object can be serialized into a text file. On the contrary, deserialization is to reconstruct the object according to the file stream. The most important class in XML serialization is the XmlSeria...

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 a device for configuring parameters, which are used for increasing parameter configuration speed. The method includes the steps: generating a text file according to attributes of parameters to be configured; converting the text file into a class object file and configuring parameters to be configured in the class object file; and serializing the class object file with the configured parameters so as to obtain a configuration file.

Description

technical field [0001] The invention relates to the field of computer application technology, in particular to a method and device for configuring parameters. Background technique [0002] With the rapid development of computer technology, different computer application systems have been developed for different application requirements. Among them, when some application systems are running, some parameters must be configured before they can be used. For example: an internal client application system needs to exchange data with external Internet resources through a proxy server. At this time, not only the IE proxy needs to be set, but also some network proxy parameters of the application system in the client need to be configured. Form a configuration file. In this way, when the application system is running, the configuration file can be invoked, the configured parameters can be read, and data exchange with external Internet resources can be realized. [0003] Currently, ...

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
IPC IPC(8): G06F9/44
Inventor 郭英涛刘可
Owner PEKING UNIV FOUNDER GRP CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products