CN102779038B - Method and device for assembly integration - Google Patents
Method and device for assembly integration Download PDFInfo
- Publication number
- CN102779038B CN102779038B CN201210199097.4A CN201210199097A CN102779038B CN 102779038 B CN102779038 B CN 102779038B CN 201210199097 A CN201210199097 A CN 201210199097A CN 102779038 B CN102779038 B CN 102779038B
- Authority
- CN
- China
- Prior art keywords
- file
- input
- output
- calculation procedure
- configuration information
- 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
Links
Abstract
The invention discloses a method and a device for assembly integration. The method comprises collocating a calculator program needed invoking in advance, collocating input parameters in an input file and input parameters in an output file, saving configuration information of the calculator program, configuration information of the input file and configuration information of the output file into a configuration file, reading input parameters in the configuration file and displaying, collocating the displayed input parameters again, writing the reconfiguration input parameters in the input file, invoking the calculator program to calculate the input file written with the reconfiguration input parameters, writing output results in the output file through the calculator program, reading the output file of the calculator program and displaying. Therefore, automation level and efficiency of engineering calculation and design are improved, calculation operation of a user is simplified, and work load of the user is reduced.
Description
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of method and device of Components integration.
Background technology
At engineering calculation and design field, in order to complete a series of calculating and design objective, user needs to use various software to carry out collaborative work usually.Wherein there is a class to have the software of common trait, be called " calculation procedure ", for calculating data.
This calculation procedure is the executable program in Windows operating system, the input of program comes from file, and program reads one or more input file, extracts the parameter in input file, computing is carried out to parameter value, then the result obtained is write in one or more output file.By the parsing to output file, obtain result of calculation.When some calculation procedures run, also can eject interface, user further revises input parameter on interface.
Because calculation procedure may have many kinds, user needs to be grasped the using method of various calculation procedure, in addition, when often kind of calculation procedure uses, all need to prepare corresponding input file, during each run, requiring modifies to input file (uses various method, may be direct amendment, also may be use other software modifications).These operations may need the carrying out of a time a time, and uninteresting and loaded down with trivial details, workload is large.
Summary of the invention
The object of the present invention is to provide a kind of method and device of Components integration, with the gentle efficiency of the Automated water improving engineering calculation and design, simplify the calculating operation of user, reduce the workload of user.
For achieving the above object, one aspect of the present invention provides a kind of method of Components integration, it is characterized in that, comprises the following steps:
The calculation procedure that pre-configured needs call, and the input parameter in input file and the output parameter in output file, and the configuration information of the configuration information of described calculation procedure, described input file and the configuration information of described output file are saved as configuration file;
Read the input parameter in described configuration file and show;
The input parameter of display is reconfigured, and the input parameter reconfigured is write described input file;
Call described calculation procedure to calculate the input file being written with the input parameter reconfigured, by described calculation procedure, Output rusults is write in described output file;
Read the output file of described calculation procedure and show.
The method of Components integration of the present invention, the configuration information of described input parameter comprises input parameter value and positional information thereof, the configuration information of described output parameter comprises output parameter value and positional information thereof, and the configuration information of described calculation procedure comprises the title of described calculation procedure.
The method of Components integration of the present invention, described input file and described output file are text formatting.
The method of Components integration of the present invention, describedly writes described input file by the input parameter reconfigured, and is specially:
Locate described input parameter value according to the positional information of input parameter value, and write described input file.
The method of Components integration of the present invention, Output rusults writes in described output file by described calculation procedure, is specially:
The position that described calculation procedure is corresponding in output file according to the positional information of pre-configured output parameter value writes described output parameter value.
On the other hand, present invention also offers a kind of device of Components integration, comprising:
Definition module, for the calculation procedure that pre-configured needs call, and the input parameter in input file and the output parameter in output file, and the configuration information of the configuration information of described calculation procedure, described input file and the configuration information of described output file are saved as configuration file;
Read module, shows for the input parameter that reads in described configuration file;
Configuration module, reconfigures the input parameter of display, and the input parameter reconfigured is write described input file;
Calling module, calls described calculation procedure and calculates the input file being written with the input parameter reconfigured, and writes in described output file by described calculation procedure by Output rusults;
Output module, reads the output file of described calculation procedure and shows.
The device of Components integration of the present invention, the configuration information of described input parameter comprises input parameter value and positional information thereof, the configuration information of described output parameter comprises output parameter value and positional information thereof, and the configuration information of described calculation procedure comprises the title of described calculation procedure.
The device of Components integration of the present invention, described input file and described output file are text formatting.
Components integration method of the present invention, by the calculation procedure that pre-configured needs call, and the input parameter in input file and the output parameter in output file, and by the configuration information of calculation procedure, the configuration information of input file and the configuration information of output file save as configuration file, read the input parameter in configuration file and show, the input parameter of display is reconfigured, and the input parameter write input file that will reconfigure, call calculation procedure to calculate the input file being written with the input parameter reconfigured, by calculation procedure, Output rusults is write in output file, read the output file of described calculation procedure and show.Thus realize calling multiple diverse executable calculation procedure, and in invoked procedure, complete parameter read-in and the result extraction of calculation procedure, for user, the different set shielding various calculation procedure and the complicacy used, simplify the calculating operation of user, thus the gentle efficiency of the Automated water that improve engineering calculation and design, simplify the calculating operation of user, reduce the workload of user.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method for Components integration of the present invention;
Fig. 2 is the structural representation of the device of Components integration of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail:
Shown in figure 1, the method for Components integration of the present invention comprises the following steps:
Step S101, the calculation procedure that pre-configured needs call, and the input parameter in input file, and the configuration information of the configuration information of described calculation procedure and described input file is saved as configuration file.Wherein, the configuration information of input parameter comprises input parameter value and positional information thereof, and the configuration information of calculation procedure comprises the title of calculation procedure, such as xxx.exe, sometimes also may will define the command line parameter needed when xxx.exe runs as required.And input file is generally file template, i.e. once used input file, this input file is exactly the input file that xxx.exe needs when running.Configuration file can be reused, and when using, revises some or all of configuration information at every turn.
Step S102, read the input parameter in configuration file and show, namely program interface can list the input parameter in all input files.
Step S103, reconfigures the input parameter of display, according to the positional information location input parameter value of input parameter value, and is write input file.
Step S104, calls calculation procedure and calculates the input file being written with the input parameter reconfigured and write in output file by Output rusults by calculation procedure.The form of usual input file and output file is fixing text formatting.When each run, be only that the concrete data value of the inside is different, and each position with the value of physical significance is changeless.
Step S105, reads the output file of calculation procedure and is presented on program interface and checks and analyze for user.
Shown in figure 2, the device of Components integration of the present invention, comprising: definition module 21, for the calculation procedure that pre-configured needs call, and the input parameter in input file, and the configuration information of calculation procedure and the configuration information of input file are saved as configuration file.Read module 22, shows for the input parameter that reads in configuration file.Configuration module 23, reconfigures the input parameter of display, and the input parameter write input file that will reconfigure.Calling module 24, calls calculation procedure and calculates the input file being written with the input parameter reconfigured.Output module 25, reads the output file of calculation procedure and shows.Wherein, the configuration information of input parameter comprises input parameter value and positional information thereof, and the configuration information of calculation procedure comprises the title of calculation procedure, and input file and output file are text formatting.
Above embodiment is only be described the preferred embodiment of the present invention; not scope of the present invention is limited; under not departing from the present invention and designing the prerequisite of spirit; the various distortion that the common engineering technical personnel in this area make technical scheme of the present invention and improvement, all should fall in protection domain that claims of the present invention determine.
Claims (5)
1. a method for Components integration, is characterized in that, comprises the following steps:
The calculation procedure that pre-configured needs call, and the input parameter in input file and the output parameter in output file, and the configuration information of the configuration information of described calculation procedure, described input file and the configuration information of described output file are saved as configuration file, the configuration information of described input file comprises input parameter value and positional information thereof, the configuration information of described output file comprises output parameter value and positional information thereof, and the configuration information of described calculation procedure comprises the title of described calculation procedure;
Read the input parameter in described configuration file and show;
The input parameter of display is reconfigured, and locates described input parameter value according to the positional information of input parameter value, the input parameter reconfigured is write described input file;
Call described calculation procedure to calculate the input file being written with the input parameter reconfigured, by described calculation procedure, Output rusults is write in described output file;
Read the output file of described calculation procedure and show.
2. the method for Components integration according to claim 1, is characterized in that, described input file and described output file are text formatting.
3. the method for Components integration according to claim 2, is characterized in that, Output rusults writes in described output file by described calculation procedure, is specially:
The position that described calculation procedure is corresponding in output file according to the positional information of pre-configured output parameter value writes described output parameter value.
4. a device for Components integration, is characterized in that, comprising:
Definition module, for the calculation procedure that pre-configured needs call, and the input parameter in input file and the output parameter in output file, and the configuration information of the configuration information of described calculation procedure, described input file and the configuration information of described output file are saved as configuration file, the configuration information of described input file comprises input parameter value and positional information thereof, the configuration information of described output file comprises output parameter value and positional information thereof, and the configuration information of described calculation procedure comprises the title of described calculation procedure;
Read module, shows for the input parameter that reads in described configuration file;
Configuration module, reconfigures the input parameter of display, and locates described input parameter value according to the positional information of input parameter value, the input parameter reconfigured is write described input file;
Calling module, calls described calculation procedure and calculates the input file being written with the input parameter reconfigured, and writes in described output file by described calculation procedure by Output rusults;
Output module, reads the output file of described calculation procedure and shows.
5. the device of Components integration according to claim 4, is characterized in that, described input file and described output file are text formatting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210199097.4A CN102779038B (en) | 2012-06-14 | 2012-06-14 | Method and device for assembly integration |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210199097.4A CN102779038B (en) | 2012-06-14 | 2012-06-14 | Method and device for assembly integration |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102779038A CN102779038A (en) | 2012-11-14 |
CN102779038B true CN102779038B (en) | 2015-01-21 |
Family
ID=47123959
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210199097.4A Active CN102779038B (en) | 2012-06-14 | 2012-06-14 | Method and device for assembly integration |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102779038B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110428341A (en) * | 2019-08-06 | 2019-11-08 | 哈尔滨工业大学软件工程股份有限公司 | Medical insurance settlement method, equipment and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6453356B1 (en) * | 1998-04-15 | 2002-09-17 | Adc Telecommunications, Inc. | Data exchange system and method |
CN1645326A (en) * | 2005-02-05 | 2005-07-27 | 西安大唐电信有限公司 | Method and system for updating software function |
CN101263459A (en) * | 2004-10-01 | 2008-09-10 | 迪堡公司 | A graphical XML programming system and engine |
CN101840216A (en) * | 2009-03-17 | 2010-09-22 | 鸿富锦精密工业(深圳)有限公司 | Programmable logical controller parameter setting system and method thereof |
CN101960423A (en) * | 2008-03-21 | 2011-01-26 | 日本三菱东京日联银行股份有限公司 | Application development support device, program and recording medium |
-
2012
- 2012-06-14 CN CN201210199097.4A patent/CN102779038B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6453356B1 (en) * | 1998-04-15 | 2002-09-17 | Adc Telecommunications, Inc. | Data exchange system and method |
CN101263459A (en) * | 2004-10-01 | 2008-09-10 | 迪堡公司 | A graphical XML programming system and engine |
CN1645326A (en) * | 2005-02-05 | 2005-07-27 | 西安大唐电信有限公司 | Method and system for updating software function |
CN101960423A (en) * | 2008-03-21 | 2011-01-26 | 日本三菱东京日联银行股份有限公司 | Application development support device, program and recording medium |
CN101840216A (en) * | 2009-03-17 | 2010-09-22 | 鸿富锦精密工业(深圳)有限公司 | Programmable logical controller parameter setting system and method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN102779038A (en) | 2012-11-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102467414B (en) | State machine control method, device and state machine system | |
CN104468226A (en) | Nginx configuration method and device | |
JP5047401B1 (en) | Project data creation device and programmable display | |
CN104778124A (en) | Automatic testing method for software application | |
CN103593370B (en) | The method and browser of expanded application are realized in a browser | |
CN106951254B (en) | Method and device for multiplexing similar service function modules in payment system | |
CN102156640A (en) | Method for generating data operation code | |
KR101350798B1 (en) | Robot system controlled on the basis of opros platform and control method thereof | |
CN102902526B (en) | A kind of automation method to set up that realizes BMC and IP information by time delay | |
CN101604286B (en) | Method for generating keyword-driving table | |
CN112256670A (en) | Data migration method, terminal device and readable storage medium | |
CN105447224A (en) | Modelica model simulation analysis report automatic generation method | |
CN102779038B (en) | Method and device for assembly integration | |
CN103870540A (en) | Database based on structural design and analysis integration | |
CN107220044B (en) | Method and device for driving business object based on meta-model | |
CN103677852A (en) | Design method of extensible class natural language formula editor | |
CN107436883B (en) | Data extraction method, device and system based on remainder | |
CN106372359A (en) | Universal framework for equipment virtual prototype system | |
CN102799423A (en) | Method and device for implementing dynamic method in JSF (java service face) | |
CN104965742B (en) | A kind of automatized script and device handling front-end task | |
CN104317501B (en) | Touch the operational order input method and system under writing state | |
CN108228708B (en) | Big data ETL system and scheduling method thereof | |
CN113138760A (en) | Page generation method and device, electronic equipment and medium | |
JPWO2015141150A1 (en) | Source code generation apparatus, source code generation method, and recording medium | |
US20120233224A1 (en) | Data processing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |