Parameter modification device, parameter modification method, and parameter modification program

The parameter modification device and method address parameter errors in WebAPIs by correcting names, dividing prohibited parameters, and adjusting values, enhancing execution efficiency and reducing errors.

JP7813146B2Active Publication Date: 2026-02-12MITSUBISHI ELECTRIC DIGITAL INNOVATION CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2022011268
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-01-27
Publication Date
2026-02-12
Estimated Expiration
2042-01-27

AI Technical Summary

Technical Problem

Existing technologies struggle to correct parameter errors in WebAPIs, such as incorrect parameter names, simultaneous specification of prohibited parameters, and confusion between similar parameters, leading to inefficiencies and errors in program execution.

Method used

A parameter modification device and method that includes a parameter deficiency correction unit to correct parameter names, divide parameter groups to avoid simultaneous specification of prohibited parameters, and adjust parameter values to improve execution efficiency, using similarity calculation to identify correct parameter names and values.

Benefits of technology

Effectively corrects parameter errors in WebAPIs, improving program execution efficiency and reducing errors by ensuring correct parameter specification, even in cases of incorrect names, prohibited simultaneous specification, and parameter confusion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007813146000001
    Figure 0007813146000001
  • Figure 0007813146000002
    Figure 0007813146000002
  • Figure 0007813146000003
    Figure 0007813146000003
Patent Text Reader

Abstract

To correct a parameter even if a parameter name is not correctly input.SOLUTION: A parameter correction apparatus 100 according to the present invention includes a parameter error correction unit 121 which, if there is an erroneous parameter name including error in a parameter name of a target parameter included in a parameter group formed of at least one parameter designated in addition to a command name of a target command which is one for instructing execution of a target program, corrects the erroneous parameter name to a corrected parameter name which is a parameter name similar to the erroneous parameter name and is a parameter name of a parameter normally designated upon execution of the target program.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present disclosure relates to a parameter modification device, a parameter modification method, and a parameter modification program. [Background technology]

[0002] Recently, a number of services that publish Web APIs have been appearing, such as the launch of an "API platform site" that allows for the cross-sectional utilization of open data held by local governments. In addition, by linking the Web APIs published by various organizations with your own services, it is possible to expand your business and increase added value. However, from the user's perspective, WebAPIs can be difficult to use. This is because WebAPIs have many similar parameters, and the architecture of WebAPIs is subject to changes. As a result, even when executing WebAPIs by referring to the online manual, it can take a long time to resolve errors. Even if you are able to identify the location of the error, it can be difficult to know what values ​​to specify. Patent Document 1 discloses a technology in which a program is executed using input parameters, and if an error is detected, the correct parameters are searched for in an input parameter database in which the most recent input parameters from each past program execution are registered in order, and the parameters are automatically corrected. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Japanese Patent Application Publication No. 6-266590 Summary of the Invention [Problem to be solved by the invention]

[0004] According to Patent Document 1, if the parameter name is entered correctly, the parameter can be corrected. However, Patent Document 1 has the problem that the parameter cannot be corrected in each of the following cases: if the parameter name is incorrect, if multiple parameters that are prohibited from being simultaneously specified are specified at the same time, or if a value is mistakenly specified for a parameter that is easily confused when multiple parameters that are easily confused exist.

[0005] The present disclosure aims to correct parameters in a technique for correcting program execution commands in each of the following cases: when the parameter name is incorrect, when multiple parameters that are prohibited from being specified simultaneously are specified simultaneously, and when there are multiple parameters that are easily confused, a value is specified for another parameter that is easily confused by mistake. [Means for solving the problem]

[0006] The parameter modification device according to the present disclosure comprises: a parameter deficiency correction unit that corrects, when a parameter name of a target parameter included in a parameter group consisting of at least one parameter specified accompanying a command name of a target command that is a command instructing execution of a target program that is a program, an incorrect parameter name containing an error, to a corrected parameter name that is a parameter name similar to the incorrect parameter name and that is a parameter name of a parameter that can be properly specified when executing the target program; Equipped with.

[0007] When a first specific parameter included in the parameter group is prohibited from being specified simultaneously with a second specific parameter included in the parameter group, the parameter deficiency correction unit divides the parameter group into a first parameter group including the first specific parameter and a second parameter group including the second specific parameter, and generates an instruction consisting of the command name and the first parameter group, and an instruction consisting of the command name and the second parameter group.

[0008] before As a parameter value of a third specific parameter included in the parameter group 、 a parameter value of a fourth specific parameter included in the parameter group; A first change target value is specified, which is a value that can be specified as When a second change target value, which is a value that can be designated as a parameter value of the third specific parameter, is designated as a parameter value of the fourth specific parameter, The parameter defect correction unit changes the parameter value of the third specific parameter from the first change target value to the second change target value. .

[0009] The parameter modification device further comprises: a similarity calculation unit that calculates the similarity between the erroneous parameter name and the parameter name of each parameter included in the target command; Equipped with The parameter defect correction unit selects, as the correction parameter name, the parameter name of any of the parameters included in the target command based on the calculated similarity.

[0010] When the highest similarity value among the similarities between the erroneous parameter name and the parameter names of the parameters included in the target command is less than a threshold value, the similarity calculation unit calculates, for each command indicated by command information indicating each command that can be properly designated as a command to instruct execution of a program, a similarity between a parameter name of each parameter provided in each command and a parameter name of each parameter included in the parameter group, and calculates an average value of the similarities for each command based on the calculated similarities; The parameter defect correction unit corrects the target command to one of the commands indicated by the command information based on the calculated average value of the similarity.

[0011] When there is a missing parameter that is a parameter that is lacking in the parameter group, the parameter deficiency correction unit adds the missing parameter to the parameter group.

[0012] When the parameter group includes an efficiency parameter that affects the execution efficiency of the target program, the parameter deficiency correction unit adjusts the efficiency parameter included in the parameter group so as to improve the execution efficiency of the target program.

[0013] The parameter deficiency correction unit adds an efficiency parameter, which is a parameter that affects the execution efficiency of the target program, to the parameter group, and adjusts the added efficiency parameter so as to improve the execution efficiency of the target program.

[0014] The efficiency parameter is a parameter relating to the time at which the target program is executed, or a parameter relating to the hardware resources used when the target program is executed.

[0015] When there is redundant space in an instruction that describes the command name and the parameter group, the parameter deficiency correction unit corrects the parameter group using the efficiency parameter so as to improve the execution efficiency of the target program.

[0016] The parameter correction method according to the present disclosure includes: When a computer detects that the parameter name of a target parameter included in a parameter group consisting of at least one parameter specified in association with the command name of a target command, which is a command instructing the computer to execute a target program, is an incorrect parameter name containing an error, the computer corrects the incorrect parameter name to a corrected parameter name that is similar to the incorrect parameter name and is the parameter name of a parameter that can be properly specified when executing the target program.

[0017] The parameter correction program according to the present disclosure includes: A parameter defect correction process for correcting a parameter name of a target parameter included in a parameter group consisting of at least one parameter specified in association with the command name of a target command that is a command instructing the execution of a target program that is a program, to an incorrect parameter name containing an error, the parameter name being a parameter name similar to the incorrect parameter name and which is a parameter name that can be properly specified when the target program is executed. is executed by a parameter correction device which is a computer. [Effects of the Invention]

[0018] According to the present disclosure, in a technique for correcting a program execution command, parameters can be corrected in each of the following cases: when the parameter name is incorrect, when multiple parameters that are prohibited from being specified simultaneously are specified simultaneously, and when there are multiple parameters that are easily confused and a value is mistakenly specified for another parameter that is easily confused. [Brief explanation of the drawings]

[0019] [Figure 1] FIG. 1 is a diagram showing an example of the configuration of a parameter modification system 90 according to the first embodiment. [Figure 2] 1 is a diagram showing an example of the hardware configuration of a parameter modification device 100 according to a first embodiment. [Figure 3] 3 is a flowchart showing the operation of the parameter modification device 100 according to the first embodiment. [Figure 4] 3 is a flowchart showing the operation of the parameter modification device 100 according to the first embodiment. [Figure 5] 3 is a flowchart showing the operation of the parameter modification device 100 according to the first embodiment. [Figure 6] 4 is a flowchart showing the operation of a parameter defect correction unit 121 according to the first embodiment. [Figure 7] FIG. 10 is a diagram showing a specific example of simultaneous designation prohibition information 191 according to the first embodiment. [Figure 8]4 is a flowchart showing the operation of a parameter defect correction unit 121 according to the first embodiment. [Figure 9] FIG. 10 is a diagram showing a specific example of parameter information 192 according to the first embodiment. [Figure 10] 1A and 1B are diagrams showing specific examples of parameter information 192 relating to embodiment 1, in which (a) is a table showing parameter information 192 for the “Cmd.exe” command, (b) is a table showing parameter information 192 for the “New-Cmd.exe” command, and (c) is a table showing parameter information 192 for the “Extra-Cmd.exe” command. [Figure 11] FIG. 10 is a diagram showing a specific example of command information 193 according to the first embodiment. [Figure 12] FIG. 4 is a diagram showing an example of calculation of "similarity of character strings" according to the first embodiment. [Figure 13] 4 is a flowchart showing the operation of a parameter defect correction unit 121 according to the first embodiment. [Figure 14] FIG. 4 is a diagram showing a specific example of acceptable range information 194 according to the first embodiment. [Figure 15] FIG. 10 is a diagram showing a specific example of related parameter information 195 according to the first embodiment. [Figure 16] FIG. 2 is a diagram for explaining an implementation example of correction processing according to the first embodiment. [Figure 17] FIG. 10 is a diagram showing an example of the hardware configuration of a parameter modification device 100 according to a modification of the first embodiment. DETAILED DESCRIPTION OF THE INVENTION

[0020] In the description of the embodiments and drawings, the same elements and corresponding elements are given the same reference numerals. The description of elements given the same reference numerals will be omitted or simplified as appropriate. Arrows in the drawings mainly indicate the flow of data or the flow of processing. Furthermore, "unit" may be read as "circuit," "step," "procedure," "process," or "circuitry" as appropriate.

[0021] Embodiment 1 Hereinafter, this embodiment will be described in detail with reference to the drawings.

[0022] ***Configuration Description*** Fig. 1 shows an example of the configuration of a parameter modification system 90 according to this embodiment. As shown in Fig. 1, the parameter modification system 90 includes a parameter modification device 100 and a trial environment 200. The parameter modification device 100 and the trial environment 200 may be configured integrally as appropriate.

[0023] The parameter modification device 100 includes a client communication receiving unit 101, a command issuing tool 102, a reception control unit 103, an authentication unit 104, a command execution unit 105, a syntax analysis unit 106, an error location identification unit 107, a parameter deficiency correction unit 121, a command analysis result storage unit 122, a similarity calculation unit 123, and a parameter information storage DB (Database) 190. The client communication receiving unit 101 receives a [command] from a client terminal, etc. Here, the brackets [ ] indicate information. The command issuing tool 102 is a tool that issues a command. The reception control unit 103 controls the [commands] that the trial environment 200 executes. The authentication unit 104 authenticates the [command] based on the instruction from the reception control unit 103. The command execution unit 105 executes the [command] using the trial environment 200. By using the trial environment 200, the command execution unit 105 can correct run-time errors in addition to correcting syntax errors. The syntax analysis unit 106 performs syntax analysis on the [command]. The error location identifying unit 107 identifies the error location contained in the [command]. The parameter defect correction unit 121 corrects parameter defects. Parameter defects may include command defects. When the parameter name of a target parameter included in a parameter set specified in association with the command name of a target command is an incorrect parameter name containing an error, the parameter defect correction unit 121 corrects the incorrect parameter name to a corrected parameter name. The target command is a command that instructs execution of a target program, which is a program. The parameter set consists of at least one parameter. The corrected parameter name is a parameter name similar to the incorrect parameter name and is a parameter name of a parameter that can be properly specified when executing the target program. When it is prohibited to specify a first specified parameter simultaneously with a second specified parameter, the parameter defect correction unit 121 may divide the parameter set into a first parameter set including the first specified parameter and a second parameter set including the second specified parameter, and generate an instruction consisting of the command name and the first parameter set and an instruction consisting of the command name and the second parameter set. When the parameter value of the fourth specified parameter is designated as the parameter value of the third specified parameter, the parameter defect correction unit 121 may change the parameter value of the third specified parameter to the parameter value of the fourth specified parameter. The first specified parameter, the second specified parameter, the third specified parameter, and the fourth specified parameter are each included in a parameter group. The parameter defect correction unit 121 may select, as the name of the corrected parameter, one of the parameter names indicated by the parameter information 192 based on the similarity calculated by the similarity calculation unit 123. Each parameter name indicated by the parameter information 192 corresponds to the parameter name of each parameter included in the command corresponding to the parameter information 192. The command analysis result storage unit 122 stores the results of analyzing the [command]. The similarity calculation unit 123 calculates the similarity between the parameter names. The similarity calculation unit 123 calculates the similarity between the incorrect parameter name and each parameter name indicated by the parameter information 192. A specific example of this similarity is "character string similarity." The parameter information storage DB 190 is a database that stores information related to parameters. Specific examples of the parameter information storage DB 190 include simultaneous designation prohibition information 191, parameter information 192, command information 193, allowable range information 194, and related parameter information 195. The simultaneous designation prohibition information 191 is information indicating, for each parameter, parameters that are prohibited from being designated simultaneously with that parameter. Parameter information 192 is information indicating each parameter that can be specified when executing each command. Parameter information 192 indicates the parameter name of each parameter that can be properly specified along with the command name. Proper specification means that a parameter is specified without error in accordance with specifications, etc. The command information 193 is information indicating each command that can be specified in the [command]. The command information 193 indicates each command that can be properly specified as a command that instructs the execution of a program. The allowable range information 194 is information indicating the range that each parameter value can take, and may include information indicating the default value of each parameter. The related parameter information 195 is information indicating related parameters and similar parameters for each parameter. Related parameters are parameters that are somehow related to each parameter. Similar parameters are parameters that have parameter names similar to the parameter names of each parameter.

[0024] The trial environment 200 is a computer or the like that executes a [command] according to an instruction from the command execution unit 105. The trial environment 200 uses an application 202 and a DB 201 as appropriate when executing the [command].

[0025] A command consists of a command and a group of parameters. The command is the first character string in the [command]. Each parameter consists of a parameter name and a parameter value. For example, a parameter name is a character string specified as the second or subsequent character string in a [command], with two hyphens at the beginning. A parameter value is at least one character string specified following the parameter name in a [command]. Note that the description format for a parameter name does not have to include two hyphens at the beginning. As a concrete example, consider the case where [command] is "command.exe --arg1 value1 --arg2 value2", where "command.exe" is the command, "--arg1" and "--arg2" are parameter names, "value1" is the parameter value of "--arg1", and "value2" is the parameter value of "--arg2".

[0026] 2 shows an example of the hardware configuration of a parameter modification device 100 according to this embodiment. The parameter modification device 100 is composed of a computer. The parameter modification device 100 may be composed of multiple computers. The hardware configuration of the trial environment 200 may be the same as the hardware configuration of the parameter modification device 100.

[0027] As shown in the figure, the parameter modification device 100 is a computer equipped with hardware such as a processor 11, a memory 12, an auxiliary storage device 13, an input / output IF (Interface) 14, and a communication device 15. These pieces of hardware are appropriately connected via signal lines 19.

[0028] The processor 11 is an integrated circuit (IC) that performs arithmetic processing and controls the hardware of the computer. Specific examples of the processor 11 include a central processing unit (CPU), a digital signal processor (DSP), or a graphics processing unit (GPU). The parameter modification device 100 may include a plurality of processors that replace the processor 11. The plurality of processors share the role of the processor 11.

[0029] The memory 12 is typically a volatile storage device, specifically a random access memory (RAM). The memory 12 is also called a primary storage device or a main memory. Data stored in the memory 12 is saved in the secondary storage device 13 as needed.

[0030] The auxiliary storage device 13 is typically a non-volatile storage device, and specific examples thereof include a ROM (Read Only Memory), an HDD (Hard Disk Drive), or a flash memory. Data stored in the auxiliary storage device 13 is loaded into the memory 12 as needed. The memory 12 and the auxiliary storage device 13 may be integrated into one unit.

[0031] The input / output IF 14 is a port to which an input device and an output device are connected. A specific example of the input / output IF 14 is a USB (Universal Serial Bus) terminal. Specific examples of the input device are a keyboard and a mouse. A specific example of the output device is a display.

[0032] The communication device 15 is a receiver and a transmitter, and is, for example, a communication chip or a network interface card (NIC).

[0033] Each unit of the parameter modification device 100 may use the input / output IF 14 and the communication device 15 as appropriate when communicating with other devices.

[0034] The auxiliary storage device 13 stores a parameter modification program. The parameter modification program is a program that causes a computer to realize the functions of each unit included in the parameter modification device 100. The parameter modification program is loaded into the memory 12 and executed by the processor 11. The functions of each unit included in the parameter modification device 100 are realized by software.

[0035] Data used when executing the parameter modification program and data obtained by executing the parameter modification program are stored in a storage device as appropriate. Each part of the parameter modification device 100 uses a storage device as appropriate. As a specific example, the storage device comprises at least one of the memory 12, the auxiliary storage device 13, a register in the processor 11, and a cache memory in the processor 11. Note that the terms data and information may have the same meaning. The storage device may be independent of the computer. The functions of the memory 12 and the auxiliary storage device 13 may be realized by other storage devices.

[0036] The parameter modification program may be stored in a computer-readable non-volatile storage medium, such as an optical disk or a flash memory. The parameter modification program may be provided as a program product.

[0037] ***Explanation of Operation*** The operation procedure of the parameter modification device 100 corresponds to a parameter modification method, and the program that realizes the operation of the parameter modification device 100 corresponds to a parameter modification program.

[0038] 3 to 5 are flowcharts showing an example of the operation of the parameter modification device 100. The operation of the parameter modification device 100 will be described with reference to FIGS.

[0039] (Step S101) The reception control unit 103 receives a [command] from the client communication reception unit 101 or the command issuing tool 102 .

[0040] (Step S102) The reception control unit 103 requests the authentication unit 104 to authenticate the received [command]. If the [command] is authenticated by the authentication unit 104, the reception control unit 103 passes the [command] to the command execution unit 105.

[0041] (Step S103) The command execution unit 105 passes the command received from the reception control unit 103 to the syntax analysis unit 106. The syntax analysis unit 106 checks whether or not there is an error in the command. If there is no error in the [command], the parameter modification device 100 proceeds to step S113. If there is an error in the [command], the parameter modification device 100 proceeds to step S104.

[0042] (Step S104) The syntax analysis unit 106 passes to the command execution unit 105 [error information] indicating the error contained in the [command]. The command execution unit 105 passes the [command] and the [error information] received from the syntax analysis unit 106 to the error location identification unit 107 .

[0043] (Step S105) The error location identifying unit 107 refers to the received [error information] and identifies the location of the error contained in the [command]. As a specific example, the error location identifying unit 107 identifies "--Location Tokyo" as the error location.

[0044] (Step S106) The error location identifying unit 107 passes the [command], [error information], and [error location information] to the parameter defect correcting unit 121. [Error location information] is information indicating the error location identified by the error location identifying unit 107.

[0045] (Step S107) The parameter defect correction unit 121 registers the [error information], [error location information], and [command] in the command analysis result storage unit 122. At this time, if the [error information] indicates an error in which a group of prohibited parameters is included, the parameter error correction unit 121 divides and registers the contents of the [command]. The group of prohibited parameters consists of multiple parameters, and it is prohibited to simultaneously specify multiple parameters included in the group of prohibited parameters in the [command]. As a specific example, if the [group of parameters] included in the [command] is "--InFile file1.txt --InDb aqldb," the parameter error correction unit 121 divides the [group of parameters] into "--InFile file1.txt," which is the [first group of parameters], and "--InDb aqldb," which is the [second group of parameters]. Note that the parameter error correction unit 121 typically performs the correction process in ascending order, starting with the [command] that includes the [first group of parameters]. The details of the processing in this step will be described later.

[0046] (Step S108) If the [error information] indicates that the parameter name is incorrect, the parameter error correction unit 121 corrects the error contained in the parameter name. Here, the parameter name containing the error is referred to as the incorrect parameter name. First, the parameter defect correction unit 121 passes information indicating the name of the erroneous parameter to the similarity calculation unit 123 . Next, the similarity calculation unit 123 refers to the parameter information storage DB 190 to calculate the "character string similarity" between the incorrect parameter name and each correct parameter name, and passes information indicating the calculated "character string similarity" to the parameter defect correction unit 121. The correct parameter name is a parameter name registered in the parameter information storage DB 190 and is a parameter name that can be correctly specified when executing an [instruction]. As a specific example, the "character string similarity" is a value calculated using the concept of the Levenshtein distance, and is the reciprocal of the value obtained by adding 1 to the Levenshtein distance. Here, if the number of changes or the editing cost is 3, the Levenshtein distance is 3. Next, the parameter deficiency correction unit 121 receives information indicating "character string similarity" from the similarity calculation unit 123. If the highest "character string similarity" among the received "character string similarities" is equal to or greater than a threshold, the parameter deficiency correction unit 121 replaces the incorrect parameter name with the correct parameter name corresponding to the highest "character string similarity." Here, as a specific example, the threshold is 1 / 5. Also, as a specific example, the parameter deficiency correction unit 121 replaces the incorrect parameter name "--Location" with the correct parameter name "--Location." If the highest "character string similarity" is less than the threshold, the parameter defect correction unit 121 does not correct the erroneous parameter name, but replaces the command name included in the [command] with the command name having the highest recorded "average similarity" (details will be described later). As a specific example, the parameter defect correction unit 121 replaces the command name "Cmd.exe" with the command name "New-Cmd.exe". If the parameter defect correction unit 121 has replaced a command name, and if the "average similarity" corresponding to the replaced command name is less than 1.0, the parameter correction device 100 proceeds to step S110. Otherwise, the parameter correction device 100 proceeds to step S109. Note that if the "average similarity" corresponding to the replaced command name is 1.0, this is a specific example of the case where each parameter included in [command] is a parameter that can be officially specified in association with the command corresponding to the replaced command name.

[0047] (Step S109) The parameter defect correction unit 121 corrects the error of specifying a value for a parameter by mistake instead of a parameter that should have been set. A specific example of the correction method is shown in steps S401 to S404. If execution up to step S404 has been completed (normal completion), the parameter error correction unit 121 executes step S110 without executing process 109-2. Otherwise, the parameter error correction unit 121 executes process 109-2.

[0048] (Process 109-2) As a specific example, the parameter defect correction unit 121 replaces the target parameter value with candidate A if the "character string similarity" corresponding to candidate A is equal to or greater than a threshold, and replaces it with candidate B otherwise. Here, candidate A is the parameter value corresponding to the highest "character string similarity" among the "character string similarities" between the target parameter value and each parameter value candidate. Candidate B is the default value of the parameter corresponding to the target parameter value, extracted from the parameter information storage DB 190.

[0049] (Step S110) The parameter defect correction unit 121 passes information indicating the corrected parameter name and the value corresponding to the parameter name to the command execution unit 105.

[0050] (Step S111) The command execution unit 105 corrects the [command] using the parameter name and the value corresponding to the parameter name received from the parameter defect correction unit 121. Thereafter, the command execution unit 105 passes the corrected [command] to the syntax analysis unit 106, which checks whether or not there is an error in the [command].

[0051] (Step S112) The parameter modification device 100 repeatedly executes the processes from step S104 to step S111 until all errors contained in the [command] to be checked are resolved.

[0052] (Step S113) The parameter defect correction unit 121 repeatedly executes the processes from step S103 to step S112 until the error check for all the [commands] registered in the command analysis result storage unit 122 is completed.

[0053] (Step S114) The command execution unit 105 requests the trial environment 200 to execute the [command] for which error checking has been completed, and returns the execution result of the [command] to the client communication receiving unit 101 or the command issuing tool 102 via the receiving control unit 103.

[0054] The correction process in step S107 will be described in detail below. If the input to the parameter defect correction unit 121 includes a group of parameters that are prohibited from being simultaneously designated, the parameter defect correction unit 121 creates a correction proposal by dividing the [command] into two or more parts, and presents the created correction proposal to the user.

[0055] FIG. 6 is a flowchart showing an example of the correction process in step S107. The correction process will be described using FIG. 6. In the following description, a specific example will be used in which the initial current target input is "--InFile file1.txt --InDb aqldb --User aqluser" and the simultaneous designation prohibition information 191 is as shown in FIG. 7. In this example, "--InFile" corresponds to the first specified parameter and "--InDb" corresponds to the second specified parameter. The initial current target input is a group of parameters input to the parameter defect correction unit 121. "Parameter number of simultaneous designation prohibition parameter" indicates the parameter number of the simultaneous designation prohibition parameter for the parameter corresponding to the "parameter name". A simultaneous designation prohibition parameter for a certain parameter is a parameter that is prohibited from being designated simultaneously with the certain parameter in the [command].

[0056] (Step S201) The parameter error correction unit 121 refers to the simultaneous designation prohibition information 191 to check whether the current target input includes a simultaneous designation prohibition parameter. The simultaneous designation prohibition parameter is also a parameter included in the simultaneous designation prohibition information 191. If the current target input includes a simultaneous designation prohibition parameter, the parameter error correction unit 121 sets the simultaneous designation prohibition parameter as the current target parameter, includes the current target parameter in the simultaneous designation prohibition parameter group, and proceeds to step S202. Otherwise, the parameter error correction unit 121 proceeds to step S207. Note that the simultaneous designation prohibition parameter group is empty at the start of this step. As a specific example, the parameter deficiency correction unit 121 refers to the simultaneous designation prohibition information 191, confirms that the current target input contains the ``--InFile'' parameter, which is a simultaneous designation prohibition parameter, sets the ``--InFile'' parameter as the current target parameter, includes the ``--InFile'' parameter in the group of simultaneous designation prohibition parameters, and proceeds to step S202.

[0057] (Step S202) The parameter error correction unit 121 acquires the "parameter number of the simultaneous designation prohibited parameter" of the current target parameter by referring to the simultaneous designation prohibition information 191. The parameter error correction unit 121 may acquire multiple "parameter numbers of the simultaneous designation prohibited parameter" of the current target parameter. As a specific example, the parameter defect correcting unit 121 refers to the simultaneous designation prohibition information 191 and acquires "2" which is the "parameter number of simultaneous designation prohibition parameters" of the "--InFile" parameter.

[0058] (Step S203) The parameter defect correcting unit 121 acquires the "parameter name" of the simultaneous designation prohibited parameter for the current target parameter based on the "parameter number of the simultaneous designation prohibited parameter" acquired in step S202. As a specific example, the parameter defect correcting unit 121 acquires "--InDb", which is the "parameter name" of the parameter that cannot be simultaneously designated with the "--InFile" parameter, based on "2" acquired in step S202.

[0059] (Step S204) The parameter error correction unit 121 checks whether the parameter corresponding to the "parameter name" acquired in step S203 is included in the current target input. If the parameter is included in the current target input, the parameter error correction unit 121 adds the parameter to the group of parameters that cannot be simultaneously designated, and proceeds to step S205. If the parameter does not exist in the current target input, the parameter error correction unit 121 checks whether the current target input includes other prohibited simultaneous designation parameters for the current target parameter. If the current target input includes other prohibited simultaneous designation parameters for the current target parameter, the parameter error correction unit 121 proceeds to step S203. Otherwise, the parameter error correction unit 121 proceeds to step S207. As a specific example, the parameter defect correcting unit 121 confirms that the "--InDb" parameter is included in the current target input, includes the "--InDb" parameter in the group of prohibited simultaneous designation parameters, and proceeds to step S205. If the "--InDb" parameter is not included in the current target input, the parameter error correction unit 121 checks in step S202 whether or not it has acquired a "parameter number of a parameter that cannot be simultaneously designated" other than the "parameter number" corresponding to the "--InDb" parameter. If it has acquired a "parameter number of a parameter that cannot be simultaneously designated" other than the "parameter number" in question in step S202, the parameter error correction unit 121 proceeds to step S203. Otherwise, the parameter error correction unit 121 proceeds to step S207.

[0060] (Step S205) The parameter defect correcting unit 121 creates a plurality of [parameter groups] by dividing the current target parameter and the simultaneous designation prohibited parameters for the current target parameter. As a specific example, the parameter defect correcting unit 121 creates the following two [parameter groups] by dividing the "--InFile" parameter and the "--InDb" parameter. [First parameter group]: "--InFile file1.txt" [Second parameter group]: "--InDb aqldb"

[0061] (Step S206) The parameter defect correcting unit 121 adds, to each of the [parameter groups] divided in step S205, parameters included in the current target input that are not included in the simultaneous designation prohibited parameter group. As a specific example, the parameter deficiency correction unit 121 adds all parameters contained in the current target input other than the "--InFile" parameter and the "--InDb" parameter to each of the [first parameter group] and [second parameter group] as follows: [First parameter group]: "--InFile file1.txt --User aqluser" [Second parameter group]: "--InDb aqldb --User aqluser"

[0062] (Step S207) When the parameter defect correction unit 121 reaches this step via step S206, it sets the current target input to one of the [parameter group] generated in step S206. When the confirmation of all parameters included in the current target input is completed, that is, when none of the parameters included in the current target input corresponds to a parameter that cannot be simultaneously designated with other parameters included in the current target input, the parameter defect correction unit 121 proceeds to step S208. Otherwise, the parameter defect correction unit 121 proceeds to step S201. As a specific example, the parameter deficiency correction unit 121 reaches this step via step S206, and therefore sets the current target input to [first parameter group]. After that, the parameter deficiency correction unit 121 proceeds to step S201 because confirmation of the "--User" parameter among the parameters included in the [first parameter group] has not been completed. When the checking of all parameters included in the [first parameter group] is completed, the parameter deficiency correcting unit 121 proceeds to step S208.

[0063] (Step S208) The parameter deficiency correction unit 121 checks whether checking has been completed for all [parameter groups]. If checking has been completed for all [parameter groups], the parameter deficiency correction unit 121 ends the processing of this flowchart. Otherwise, the parameter deficiency correction unit 121 determines that the current target input is one of the [parameter groups] for which checking has not been completed, and proceeds to step S201. As a specific example, since the parameter deficiency correction unit 121 has not completed checking the [second parameter group], it sets the current target input to the [second parameter group] and proceeds to step S201.

[0064] The correction process in step S108 will be described in detail below. The parameter defect correction unit 121 calculates the "character string similarity" between the parameter name included in the target input, which is input to the parameter defect correction unit 121, and each "parameter name" indicated by the parameter information 192. Then, the parameter defect correction unit 121 replaces the input parameter name with the "parameter name" corresponding to the highest "character string similarity" among the calculated "character string similarities." The input parameter name is the parameter name of the parameter included in the target input. However, if the highest "character string similarity" is less than a threshold, the parameter defect correction unit 121 searches for a command that is considered more appropriate than the command included in the target input. If the parameter defect correction unit 121 finds such a command, it replaces the command included in the target input with the found command.

[0065] 8 is a flowchart showing an example of the correction process in step S108. The correction process will be described with reference to FIG. First, the process of correcting the "parameter name" will be described. In the following description, a specific example will be used in which the parameter defect correction unit 121 corrects the parameter "--Location Tokyo" included in the target input to the parameter "--Location Tokyo". In this example, it is assumed that the parameter information 192 is as shown in FIG. 9. Also, in this example, "--Location" is the incorrect parameter name and "--Location" is the corrected parameter name.

[0066] (Step S301) The parameter defect correction unit 121 selects a "parameter name" that has not yet been selected from the parameter information 192 corresponding to the command included in the target input. Then, the similarity calculation unit 123 calculates the "character string similarity" between the input parameter name and the selected "parameter name." As a specific example, the parameter defect correction unit 121 selects "Location" as the "parameter name." After that, the similarity calculation unit 123 calculates the "character string similarity" between the input parameter name "Location" and the selected "Location." A specific example of the procedure for calculating the editing cost in the process of calculating the "character string similarity" between "Location" and "Location" is as follows. In this example, if the operation cost of insertion and the operation cost of deletion are each set to 1, the editing cost is 3. Step 1: Delete the first letter R from "Location" to make it "ocaion." Step 2: Insert the letter L at the beginning of "ocaion" to make it "Locaion." Step 3: Insert the letter t into "Location" to make it "Location".

[0067] (Step S302) The parameter defect correction unit 121 and the similarity calculation unit 123 execute step S301 for all parameters included in the parameter information 192. This completes the calculation of the "similarity of character strings." If step S301 has been executed for all parameters, the parameter deficiency correcting unit 121 proceeds to step S303.

[0068] (Step S303) The parameter defect correction unit 121 identifies the "parameter name" corresponding to the highest "character string similarity" among the "character string similarities" calculated in step S301. If the "character string similarity" corresponding to the identified "parameter name" is equal to or greater than a threshold, the parameter defect correction unit 121 proceeds to step S304. Otherwise, the parameter defect correction unit 121 proceeds to step S305. As a specific example, the parameter deficiency correction unit 121 identifies "Location" as the "parameter name" corresponding to the highest "character string similarity." Note that the "character string similarity" of "Location" is 1 / 4 (=1 / (3+1)). When the threshold value is 1 / 5, the "character string similarity" corresponding to the identified "Location" is equal to or greater than the threshold value, so the parameter deficiency correction unit 121 proceeds to step S304.

[0069] (Step S304) The parameter defect correction unit 121 corrects the input parameter name to the "parameter name" identified in step S303. As a specific example, the parameter defect correction unit 121 corrects "--Location" to "--Location" identified in step S303.

[0070] Next, the process of correcting the "command name" will be described. In the following description, the parameter defect correction unit 121 changes the target input "Cmd.exe --Loc Tokyo --File file1.txt" to "New-Cmd.exe --Loc Tokyo --File file1.txt" will be used as a specific example. In this example, the parameter information 192 is as shown in FIG. 10, and the command information 193 is as shown in FIG. 11. Note that steps S301 to S304 are the same as those described above, and therefore the explanation will be omitted where appropriate. The process of correcting the "command name" is performed when the highest similarity value among the similarities between the incorrect parameter name and each parameter name indicated by the parameter information 192 is less than a threshold. In this case, the similarity calculation unit 123 calculates the similarity between each parameter name indicated by the parameter information 192 corresponding to each command and the parameter name of each parameter included in the parameter group for the [command] for each command indicated by the command information 193, and calculates the "average similarity" for each command based on the calculated similarity. Thereafter, the parameter defect correction unit 121 corrects the target command to one of the commands indicated by the command information 193 based on the calculated "average similarity."

[0071] (Step S301) As a specific example, the similarity calculation unit 123 selects the parameter name "--Location" from the parameter information 192 of the "Cmd.exe" command shown in (a) of Figure 10, and calculates the "string similarity" between the parameter name "--Loc" included in the target input and the selected "--Location".

[0072] (Step S302) As a specific example, the parameter defect correction unit 121 repeatedly executes step S301 for all parameters included in the parameter information 192 of the "Cmd.exe" command.

[0073] (Step S303) As a specific example, the parameter deficiency correction unit 121 identifies "--Location" as the parameter name corresponding to the highest "character string similarity" among the "character string similarities" calculated in step S301. The parameter deficiency correction unit 121 performs step S304 when the "character string similarity" corresponding to the identified "--Location" is equal to or greater than a threshold, and performs step S305 when the "character string similarity" is less than the threshold. In this example, the threshold value is 1 / 5, and the highest "similarity of character strings" of 1 / 6 is less than the threshold value, so the parameter deficiency correcting unit 121 performs step S305.

[0074] (Step S304) As a specific example, if the "character string similarity" corresponding to "--Location" is equal to or greater than a threshold, the parameter defect correction unit 121 corrects "--Loc" to "--Location." After that, the parameter defect correction unit 121 ends the processing of this flowchart.

[0075] (Step S305) The similarity calculation unit 123 uses all the commands included in the command information 193 to calculate the "average similarity" for each command. The similarity calculation unit 123 calculates all possible "character string similarities" between each parameter name of each command and the input parameter name, and calculates the "average similarity" for each command based on the calculated "character string similarities." When calculating the "average similarity," the similarity calculation unit 123 uses the maximum similarity. The maximum similarity is the similarity determined for each command with respect to each parameter included in the target input, and is the maximum similarity among the similarities corresponding to each parameter included in the target input. As a specific example, the maximum similarity for the "--Loc" parameter in the "Cmd.exe" command is 1 / 6, which is the similarity between "--Loc" and "--Location." FIG. 12 shows a specific example of the results of executing this step.

[0076] (Step S306) The parameter defect correction unit 121 replaces the input command name with the command name corresponding to the highest "average similarity" among the "average similarity" calculated in step S305. The input command name is the command name of the command included in the target input. As a specific example, the parameter defect correction unit 121 replaces "Cmd.exe" with "New-Cmd.exe," which is the command corresponding to the highest "average similarity" among the "average similarity" values ​​calculated in step S305. In this example, the [command] is changed as shown below. Before: "Cmd.exe --Loc Tokyo --File file1.txt" After change: "New-Cmd.exe --Loc Tokyo --File file1.txt"

[0077] The correction process in step S109 will be described in detail below. This correction process is effective when the [command] contains multiple parameters that are likely to be confused with each other by the user. As a specific example, consider the error of specifying value V for parameter B in a [command] when it should be specified for parameter A. In this case, if the user mistakenly believes that specifying value V for parameter B is appropriate, it may take time to correct the error. In this way, when a certain parameter value is mistakenly specified in a [command] for a parameter other than the parameter to which the parameter value should be specified, a mechanism for correcting the [command] is implemented in the parameter correction device 100. Specifically, the mechanism is realized by the parameter defect correction unit 121 using the allowable range information 194 and the related parameter information 195.

[0078] 13 is a flowchart showing an example of the correction process in step S109. The correction process will be described with reference to FIG. In the following explanation, a specific example will be used in which the target input to the parameter defect correction unit 121 is "--file-nam 2 --file-num File1.txt File2.txt." Here, it is assumed that the appropriate parameter value for the "--file-nam" parameter is "file name," and the appropriate parameter value for the "--file-num" parameter is "number of files." Furthermore, in this example, it is assumed that the acceptable range information 194 is that shown in FIG. 14, and the related parameter information 195 is that shown in FIG. 15. In this example, the "--file-nam" parameter corresponds to the third specific parameter, and the "--file-num" parameter corresponds to the fourth specific parameter.

[0079] (Step S401) The parameter defect correction unit 121 selects one parameter included in the target input as a selected parameter, and checks whether the parameter value of the selected parameter is within the range that the parameter value can take, by referring to the allowable range information 194. If the parameter value is within the range, the parameter defect correction unit 121 proceeds to step S405. Otherwise, the parameter defect correction unit 121 proceeds to step S402. As a specific example, the parameter defect correction unit 121 selects the "--file-nam" parameter as a selected parameter from the target input. Here, in the allowable range information 194, the "possible range" of the parameter value of the "--file-nam" parameter is "must be in the format of 'any character string.extension'." Therefore, the parameter defect correction unit 121 determines that the parameter value "2" of the "--file-nam" parameter is not within the "possible range" of the parameter value of the "--file-nam" parameter, and proceeds to step S402.

[0080] (Step S402) The parameter deficiency correction unit 121 refers to the related parameter information 195 to check whether the target input includes a parameter related to the selected parameter. If the target input includes the related parameter, the parameter deficiency correction unit 121 checks the parameter value specified for the related parameter in the target input and proceeds to step S404. Otherwise, the parameter deficiency correction unit 121 proceeds to step S403. Note that in this step, the parameter deficiency correction unit 121 uses the related parameter information 195 to check whether a parameter value that should be specified for a certain parameter may have been erroneously specified for a parameter other than the certain parameter. In addition, when the target input does not include a parameter related to the selected parameter, this includes a case where the related parameter information 195 does not indicate a parameter related to the selected parameter. As a specific example, the parameter defect correction unit 121 confirms that the related parameter of the "--file-nam" parameter is the "--file-num" parameter, because "2" is indicated in the row corresponding to the "--file-nam" parameter in the "Parameter number of related parameters" column in the related parameter information 195. Thereafter, the parameter defect correction unit 121 confirms that the target input includes the "--file-num" parameter, confirms that the parameter value specified for the "--file-num" parameter in the target input is "File1.txt File2.txt", and proceeds to step S404. If the target input does not include "--file-num", the parameter defect correction unit 121 proceeds to step S403.

[0081] (Step S403) The parameter deficiency correction unit 121 refers to the related parameter information 195 to check whether the target input includes a parameter similar to the selected parameter. At this time, the parameter deficiency correction unit 121 may exclude the related parameter indicated in the related parameter information 195 from the similar parameters indicated in the related parameter information 195. If the target input includes the similar parameter, the parameter deficiency correction unit 121 checks the parameter value specified for the similar parameter and proceeds to step S404. Otherwise, the parameter deficiency correction unit 121 specifies a default value as the parameter value of the selected parameter and proceeds to step S405. Note that the case where the target input does not include a parameter similar to the selected parameter includes a case where the related parameter information 195 does not indicate a parameter similar to the selected parameter. As a specific example, first, the parameter defect correction unit 121 checks the row corresponding to the "--file-nam" parameter in the "parameter number of similar parameters" column in the related parameter information 195, acquires numbers 2 and 5, and then excludes number 2, which is the number indicated in the corresponding row in the "parameter number of related parameters" column, from the acquired numbers. In other words, the parameter defect correction unit 121 uses only number 5. Next, the parameter defect correction unit 121 confirms that the "--file-typ" parameter, which is the parameter indicated by the set number 5, is not included in the target input, and proceeds to step S404.

[0082] (Step S404) The parameter deficiency correction unit 121 replaces the parameter value of the selected parameter in the target input with the parameter value of the related parameter confirmed in step S402 or the parameter value of the similar parameter confirmed in step S404. As a specific example, the parameter defect correction unit 121 swaps the parameter value of the "--file-nam" parameter with the parameter value of the "--file-num" parameter to make the target input "--file-nam File1.txt File2.txt --file-num 2".

[0083] (Step S405) The parameter defect correction unit 121 executes the processes from step S401 to step S404 until checking is completed for all parameters included in the target input. As a specific example, the parameter defect correcting unit 121 checks the "--file-num" parameter after checking the "--file-nam" parameter.

[0084] 16 is a diagram for explaining an example of implementation of repair processing. Here, "Service.exe" is the service itself, and "RepairProc.dll" is a library that implements the repair processing. For example, the modification process is not directly built into a command such as "Cmd.exe," but is included in a "service that accepts commands." A specific example of the form of a "service that accepts commands" is a Dynamic Link Library (DLL).

[0085] ***Explanation of the effect of the first embodiment*** As described above, according to this embodiment, in the technology for correcting program execution commands, parameters can be corrected in each of the following cases: when the parameter name is incorrect, when multiple parameters that are prohibited from being specified simultaneously are specified at the same time, and when there are multiple parameters that are easily confused and a value is mistakenly specified for another parameter that is easily confused.

[0086] ***Other Configurations*** <Variation 1> In this modified example, when a required parameter is missing in the [command], the parameter defect correction unit 121 adds the required parameter to the [command]. When there is a missing parameter that is a parameter that is missing in the parameter group for the [command], the parameter defect correction unit 121 adds the missing parameter to the parameter group. A specific example of a missing parameter is a missing required parameter. A required parameter is a parameter that must be included in the [command]. The parameter information 192 may include information indicating a required parameter. In the following explanation, it is assumed that the [command] is "CmdSQL.exe --if We will use a specific example where the input file is "InputFile.txt --user User1" and the required parameter is the "--loc" parameter. Here, the "--if" parameter indicates the input file, the "--user" parameter indicates the user name, and the "--loc" parameter indicates the execution location. In this example, the parameter defect correction unit 121 does not simply add "--loc default value" to the [command], but corrects the [command] taking into account the [client environment information] corresponding to the [command]. The [client environment information] is, as a specific example, information indicating the sender of the [command]. The sender may indicate a region such as a country. A specific example of the correction process of the parameter defect corrector 121 in this modified example will be described below.

[0087] (Step 1-1) The parameter defect correction unit 121 receives the [command] and the [client environment information].

[0088] (Steps 1-2) The parameter defect correction unit 121 refers to the parameter information storage DB 190 and checks whether or not the [command] is missing any required parameters. If the [command] is missing any required parameters, the parameter defect correction unit 121 proceeds to step 1-3. Otherwise, the parameter defect correction unit 121 ends the correction process. As a specific example, the parameter defect correction unit 121 proceeds to step 1-3 because the "--loc" parameter, which is a required parameter, is missing from the [command].

[0089] (Steps 1-3) The parameter defect correcting unit 121 searches the parameter information storage DB 190 for essential parameters.

[0090] (Steps 1-4) The parameter deficiency correction unit 121 determines parameter values ​​for the missing required parameters, which may be default values. As a specific example, the parameter defect correction unit 121 determines the parameter value of the "--loc" parameter to be a value (as a specific example, asia-west1) corresponding to the sender indicated by the [client environment information] corresponding to the [command].

[0091] (Steps 1-5) The parameter defect correction unit 121 adds the missing essential parameters to the [command], assuming the parameter values ​​of the missing essential parameters to be the parameter values ​​determined in step 1-4. As a specific example, the parameter defect correction unit 121 adds "--loc asia-west1" to the [command]. In this example, the [command] is changed as shown below. Before: "CmdSQL.exe --rq Req.sql --user User1" After: "CmdSQL.exe --rq Req.sql --user User1 --loc asia-west1"

[0092] <Variation 2> In this modified example, the parameter defect correction unit 121 adjusts the time to execute the [command]. When an efficiency parameter is included in the parameter group, the parameter defect correction unit 121 adjusts the efficiency parameter included in the parameter group so as to improve the execution efficiency of the target program. The efficiency parameter is a parameter that affects the execution efficiency of the target program. The efficiency parameter in this modified example is a parameter related to the time to execute the target program. In the following explanation, we use the specific example where [Command] is "CmdSQL.exe --if InputFile.txt --loc asia-west1 --exectime 14h", where the "--if" parameter indicates the input file, the "--loc" parameter indicates the execution location, and the "--exectime" parameter indicates the execution time zone. As a specific example, the parameter defect correction unit 121 corrects the [command] taking into consideration the communication speed from the sender indicated by the [client environment information] to the server environment. The parameter defect correction unit 121 corrects the [command] so that the [command] is executed in a time period when data can be communicated at a higher speed than 2:00 p.m. (14:00). The parameter information storage DB 190 may record information indicating the communication speed for each time period. A specific example of the correction process of the parameter defect corrector 121 in this modified example will be described below.

[0093] (Step 2-1) The parameter defect correction unit 121 receives the [command] and the [communication speed]. The [communication speed] is information indicating the communication speed from the client environment to the server environment, and specifically indicates 20 Mbyte / s.

[0094] (Step 2-2) The parameter defect correction unit 121 refers to the parameter information storage DB 190 and determines a time period during which communication is possible at a speed higher than the communication speed indicated by the received [Communication Speed]. If such a time period cannot be found, the parameter defect correction unit 121 ends the correction process without changing the [Command]. As a specific example, the parameter deficiency correcting unit 121 determines 15:00 when the communication speed is 25 MByte / s.

[0095] (Steps 2-3) The parameter defect correction unit 121 corrects the [command] so that the [command] is executed during the determined time period. As a specific example, the parameter defect correction unit 121 corrects the parameter value of the "--exectime" parameter included in the [command]. In this example, the [command] is changed as shown below. Before: "CmdSQL.exe --rq Req.sql --loc asia-west1 --exectime 14h" After: "CmdSQL.exe --rq Req.sql --loc asia-west1 --exectime 15h"

[0096] <Variation 3> In this modified example, the parameter defect correction unit 121 corrects the [command] in response to any hesitation the user may have when entering the [command]. When there is a redundant space in the [command], which describes a command name and a group of parameters, the parameter defect correction unit 121 corrects the group of parameters using an efficiency parameter so as to improve the execution efficiency of the target program. The parameter defect correction unit 121 may add an efficiency parameter to the group of parameters corresponding to the [command] and adjust the added efficiency parameter so as to improve the execution efficiency of the target program. The efficiency parameter according to this modified example is a parameter related to the hardware resources used when executing the target program. In the following explanation, a specific example in which the [command] is "CmdSQL.exe --if InputFile.txt --user User1 --cpus 8" is used. Here, the "--if" parameter indicates the input file, the "--user" parameter indicates the user name, and the "--cpus" parameter indicates the number of CPUs. In this example, there are two consecutive half-width spaces between "User1" and "--cpus," and no consecutive multiple half-width spaces anywhere else. From this situation, the parameter defect correction unit 121 determines that the user was unsure how to specify "--cpus." It investigates whether a parameter specification method that can achieve faster execution exists, and if so, presents that specification method to the user. The parameter information storage DB 190 records statistics on performance-related parameters. A specific example of the correction process of the parameter defect corrector 121 in this modified example will be described below.

[0097] (Step 3-1) The parameter defect correction unit 121 receives the [command].

[0098] (Step 3-2) The parameter defect correction unit 121 checks whether or not the [command] contains parameters related to performance (specifically, the "--cpus" parameter and the "--mems" parameter). If the [command] does not contain parameters related to performance, the parameter defect correction unit 121 terminates the correction process. Here, the "--mems" parameter indicates memory capacity.

[0099] (Step 3-3) The parameter defect correction unit 121 acquires a statistical value of the execution time required to execute the [command] under each condition from the parameter information storage DB 190. If the statistical value does not exist, the parameter defect correction unit 121 ends the correction process. As a specific example, let us assume that the execution time of the [command], which is the relevant statistical value, is as shown in (a) to (c) below. (a) Specify the input value for the "--cpus" parameter: 30.0 [seconds] (b) Specify the default value for the "--mems" parameter: 25.0 [seconds] (c) Specify the input value for the "--cpus" parameter and the default value for the "--mems" parameter: 23.0 [seconds]

[0100] (Steps 3-4) The parameter defect correction unit 121 corrects the [command] based on the statistical value acquired in step 3-3. As a specific example, the parameter defect correction unit 121 changes the [command] so that the [command] is executed under the condition corresponding to the shortest execution time among (a) to (c) in step 3-3. In this case, the execution time of (c) is the shortest, so the parameter defect correction unit 121 adds "--mems 4 (default value)" to the [command]. In this example, the [command] is changed as shown below. Before: "CmdSQL.exe --if InputFile.txt --user User1 --cpus 8" After: "CmdSQL.exe --if InputFile.txt --user User1 --cpus 8 --mems 4"

[0101] <Variation 4> FIG. 17 shows an example of the hardware configuration of the parameter modification device 100 according to this modification. The parameter modification device 100 includes a processing circuit 18 in place of the processor 11 , the processor 11 and memory 12 , the processor 11 and auxiliary storage device 13 , or the processor 11 , memory 12 and auxiliary storage device 13 . The processing circuit 18 is hardware that realizes at least a part of the components of the parameter modification device 100 . The processing circuitry 18 may be dedicated hardware or may be a processor that executes a program stored in the memory 12 .

[0102] When processing circuitry 18 is dedicated hardware, processing circuitry 18 may be, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or a combination thereof. The parameter modification device 100 may include a plurality of processing circuits that replace the processing circuit 18. The plurality of processing circuits share the role of the processing circuit 18.

[0103] In the parameter modification device 100, some functions may be realized by dedicated hardware, and the remaining functions may be realized by software or firmware.

[0104] Processing circuitry 18 is illustratively implemented in hardware, software, firmware, or a combination thereof. The processor 11, memory 12, auxiliary storage device 13, and processing circuit 18 are collectively referred to as "processing circuitry." In other words, the functions of the functional components of the parameter modification device 100 are realized by the processing circuitry.

[0105] ***Other embodiments*** Although the first embodiment has been described, it is also possible to combine multiple parts of this embodiment. Alternatively, it is also possible to implement this embodiment in part. In addition, this embodiment may be modified in various ways as needed, and may be implemented in any combination, either as a whole or in part. The above-described embodiments are essentially preferred examples and are not intended to limit the scope of the present disclosure, its applications, and uses. The procedures described using flowcharts and the like may be modified as appropriate. [Explanation of symbols]

[0106] 11 processor, 12 memory, 13 auxiliary storage device, 14 input / output IF, 15 communication device, 18 processing circuit, 19 signal line, 90 parameter modification system, 100 parameter modification device, 101 client communication receiving unit, 102 command issuing tool, 103 reception control unit, 104 authentication unit, 105 command execution unit, 106 syntax analysis unit, 107 error location identification unit, 121 parameter deficiency correction unit, 122 command analysis result storage unit, 123 similarity calculation unit, 190 parameter information storage DB, 191 simultaneous designation prohibition information, 192 parameter information, 193 command information, 194 tolerance range information, 195 related parameter information, 200 trial environment, 201 DB, 202 application.

Claims

1. a parameter deficiency correction unit that, when a parameter name of a target parameter included in a parameter group consisting of at least one parameter specified accompanying a command name of a target command that is a command instructing execution of a target program that is a program, is an incorrect parameter name containing an error, corrects the incorrect parameter name to a corrected parameter name that is a parameter name similar to the incorrect parameter name and that is a parameter name of a parameter that can be properly specified when executing the target program A parameter modification device comprising:

2. 2. The parameter modification device according to claim 1, wherein, when a first specific parameter included in the parameter group is prohibited from being specified simultaneously with a second specific parameter included in the parameter group, the parameter deficiency correction unit divides the parameter group into a first parameter group including the first specific parameter and a second parameter group including the second specific parameter, and generates an instruction consisting of the command name and the first parameter group and an instruction consisting of the command name and the second parameter group.

3. A first change target value, which is a value that can be designated as a parameter value of a fourth specific parameter included in the parameter group, is designated as a parameter value of a third specific parameter included in the parameter group, and When a second change target value, which is a value that can be designated as a parameter value of the third specific parameter, is designated as a parameter value of the fourth specific parameter, The parameter modification device according to claim 1 , wherein the parameter defect modification unit modifies the parameter value of the third specific parameter from the first modification target value to the second modification target value.

4. The parameter modification device further comprises: a similarity calculation unit that calculates the similarity between the erroneous parameter name and the parameter name of each parameter included in the target command; Equipped with The parameter correction device according to claim 1 , wherein the parameter defect correction unit selects, as the correction parameter name, a parameter name of one of the parameters included in the target command based on the calculated similarity.

5. When the highest similarity value among the similarities between the erroneous parameter name and the parameter names of the parameters included in the target command is less than a threshold value, the similarity calculation unit calculates, for each command indicated by command information indicating each command that can be properly designated as a command to instruct execution of a program, a similarity between a parameter name of each parameter provided in each command and a parameter name of each parameter included in the parameter group, and calculates an average value of the similarities for each command based on the calculated similarities; The parameter correction device according to claim 4 , wherein the parameter defect correction unit corrects the target command to one of the commands indicated by the command information based on the calculated average similarity.

6. The parameter correction device according to claim 1 , wherein when there is a missing parameter that is a parameter that is lacking in the parameter group, the parameter deficiency correction unit adds the missing parameter to the parameter group.

7. 7. A parameter correction device according to claim 1, wherein, when the parameter group includes an efficiency parameter that affects the execution efficiency of the target program, the parameter deficiency correction unit adjusts the efficiency parameter included in the parameter group so as to improve the execution efficiency of the target program.

8. 8. The parameter correction device according to claim 1, wherein the parameter deficiency correction unit adds an efficiency parameter, which is a parameter that affects the execution efficiency of the target program, to the parameter group, and adjusts the added efficiency parameter so as to improve the execution efficiency of the target program.

9. 9. The parameter modification device according to claim 7, wherein the efficiency parameter is a parameter relating to a time at which the target program is executed, or a parameter relating to a hardware resource used when the target program is executed.

10. 10. A parameter modification device according to claim 7, wherein the parameter deficiency correction unit modifies the parameter group using the efficiency parameter when there is redundant space in an instruction in which the command name and the parameter group are written so as to improve the execution efficiency of the target program.

11. A parameter correction method for correcting an erroneous parameter name, when the parameter name of a target parameter included in a parameter group consisting of at least one parameter specified in association with the command name of a target command, which is a command that instructs a computer to execute a target program, is an erroneous parameter name, to a corrected parameter name that is similar to the erroneous parameter name and is the parameter name of a parameter that can be properly specified when executing the target program.

12. A parameter defect correction process for correcting a parameter name of a target parameter included in a parameter group consisting of at least one parameter specified in association with a command name of a target command that is a command instructing execution of a target program that is a program, to an incorrect parameter name containing an error, the parameter name being a parameter name similar to the incorrect parameter name and which is a parameter name that can be properly specified when executing the target program. A parameter modification program that causes a parameter modification device, which is a computer, to execute the above.

Citation Information

Patent Citations

  • Interface testing method and device

    CN112732548A

  • Parameter inputting device

    JP1994266590A

  • Object directing program generation support device

    JP2000132387A