JPH02285420A - Parameter setting system - Google Patents

Parameter setting system

Info

Publication number
JPH02285420A
JPH02285420A JP10802489A JP10802489A JPH02285420A JP H02285420 A JPH02285420 A JP H02285420A JP 10802489 A JP10802489 A JP 10802489A JP 10802489 A JP10802489 A JP 10802489A JP H02285420 A JPH02285420 A JP H02285420A
Authority
JP
Japan
Prior art keywords
parameter
information
entry
parameter information
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10802489A
Other languages
Japanese (ja)
Inventor
Atsushi Goto
淳 後藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP10802489A priority Critical patent/JPH02285420A/en
Publication of JPH02285420A publication Critical patent/JPH02285420A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To facilitate operation by storing a parameter which is specified in program execution automatically in a specific file, and assigning a parameter being specified before automatically when the setting of a parameter is omitted. CONSTITUTION:When an interpreting means 11 decides that information indicating whether or not parameter information is set in flag fields of all entries is not set, an in-parameter-omission interpreting means 13 takes parameter information corresponding to an entry where information indicating whether or not the parameter information is set out of a file F1 for parameter storage, and sets it in the data field of the entry. Then a parameter storage means 12 stores the information of a parameter table 20 in the file F1 for parameter storage after the in-parameter-omission interpreting means 13 finishes its processing. Consequently, when repetitive execution is performed at a certain period by using the same parameter, the parameter is easily specified.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は計算機プログラムのパラメータの設定方式に関
し、特に省略したパラメータを自動的に設定するパラメ
ータ設定方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a parameter setting method for a computer program, and more particularly to a parameter setting method for automatically setting omitted parameters.

(従来の技術) 計算機プログラムを実行する場合、プログラムによって
は実行時に種々の指定を必要とするものがある。このよ
うな指定をパラメータと称する。
(Prior Art) When executing a computer program, some programs require various specifications at the time of execution. Such specifications are called parameters.

従来このようなプログラムを実行する場合には、プログ
ラムによって次のような方式が採られていた。
Conventionally, when executing such a program, the following method was adopted depending on the program.

■プログラムの実行中または実行に先立って、必要なパ
ラメータをそのプログラムが実行される毎に指定する方
式。
■A method in which necessary parameters are specified each time the program is executed, either during or prior to program execution.

■パラメータを特定のファイルに格納しておき、パラメ
ータの指定が省略されるとそのファイル内のパラメータ
を適用する方式。
■A method in which parameters are stored in a specific file and when parameters are omitted, the parameters in that file are applied.

(発明が解決しようとする課題) 上述したように、従来の各方式には次のような欠点があ
る。従来方式■は、そのプログラムが実行される毎に必
要なパラメータを指定する必要がある。従って、ある時
期に同一のパラメータ内容でそのプログラムを繰り返し
実行する場合でも、同じ指定を繰り返し指定しなければ
ならないので多くの手間が必要であった。特に、指定す
るパラメータの数が多い場合や指定するパラメータの情
報が多い場合には非常に不便であった。
(Problems to be Solved by the Invention) As described above, each of the conventional systems has the following drawbacks. Conventional method (2) requires necessary parameters to be specified each time the program is executed. Therefore, even if the program is repeatedly executed with the same parameter contents at a certain time, the same specifications must be repeatedly specified, which requires a lot of effort. This is particularly inconvenient when there are a large number of parameters to be specified or when there is a lot of information about the parameters to be specified.

また、特定のファイルにそのプログラムの実行に必要な
パラメータを格納してお〈従来方式■は、指定しないパ
ラメータの内容が変更される毎にファイルの内容をエデ
ィタ等を使用して変更する必要がある。従って、パラメ
ータの内容の変更が頻発するような場合には、従来方式
■と同様に多くの手間が必要であった。このように従来
のパラメータ設定方式には解決すべき課題があった。
In addition, in the <conventional method> where the parameters necessary to run the program are stored in a specific file, it is necessary to change the contents of the file using an editor, etc. each time the contents of parameters that are not specified are changed. be. Therefore, when the contents of parameters are frequently changed, much effort is required as in the conventional method (2). As described above, the conventional parameter setting method has problems that need to be solved.

本発明は、このような事情に鑑みてなされたものであり
、その目的は、ある時期に同一のパラメータを用いて繰
り返し実行するような場合、そのパラメータの指定を容
易にすることができるパラメータ設定方式を提供するこ
とにある。
The present invention has been made in view of the above circumstances, and its purpose is to provide parameter settings that can facilitate the specification of parameters when repeated execution is performed using the same parameters at a certain time. The purpose is to provide a method.

(課題を解決するための手段) 本発明のパラメータ設定方式は、上記目的を達成するた
めに、パラメータ情報が設定されているか否かを示すフ
ラグフィールドおよびパラメータ情報が設定されるデー
タフィールドを有するパラメータテーブルを含む計算機
プログラムを実行する際に、前記パラメータテーブルに
パラメータ情報を設定しているシステムにおいて、 前記パラメータ情報を記憶するパラメータ保存用ファイ
ルと、 パラメータ情報を入力して該パラメータ情報に対応する
前記パラメータテーブルのエントリのデータフィールド
に前記パラメータ情報を設定した後に該エントリのフラ
グフィールドにパラメータ情報が設定された旨の情報を
設定し、前記パラメータテーブルの全てのフラグフィー
ルドにパラメータ情報が設定された旨を示す情報が設定
されているか否かを判定するパラメータ解釈手段と、該
パラメータ解釈手段により全てのエントリのフラグフィ
ールドにパラメータ情報が設定された旨を示す情報が設
定されていないと判定されたとき、前記パラメータ保存
用ファイルからパラメータ情報が設定された旨を示す情
報が設定されていないエントリに対応するパラメータ情
報を取り出して前記エントリのデータフィールドに設定
するパラメータ省略時解釈手段と、 該パラメータ省略時解釈手段による処理が終了した後に
前記パラメータテーブルの情報を前記パラメータ保存用
ファイルに格納するパラメータ保存手段とを有する。
(Means for Solving the Problems) In order to achieve the above object, the parameter setting method of the present invention provides a parameter setting method having a flag field indicating whether parameter information is set or not, and a data field in which parameter information is set. In a system in which parameter information is set in the parameter table when a computer program including a table is executed, a parameter storage file that stores the parameter information; After setting the parameter information in the data field of the entry in the parameter table, information indicating that the parameter information has been set in the flag field of the entry is set, and information indicating that the parameter information has been set in all flag fields of the parameter table. When it is determined by the parameter interpretation means that information indicating that parameter information is set in the flag field of all entries is not set. , parameter omitted interpretation means for extracting parameter information corresponding to an entry for which information indicating that parameter information has been set is not set from the parameter storage file and setting it in the data field of the entry; and when the parameter is omitted. and parameter storage means for storing information of the parameter table in the parameter storage file after the processing by the interpretation means is completed.

(作用) 本発明のパラメータ設定方式においては、パラメータ保
存用ファイルが、パラメータ情報を記憶し、パラメータ
解釈手段が、パラメータ情報を入力してこのパラメータ
情報に対応するパラメータテーブルのエントリのデータ
フィールドにパラメータ情報を設定しな後このエントリ
のフラグフィールドにパラメータ情報が設定された旨の
情報を設定し、パラメータテーブルの全てのフラグフィ
ールドにパラメータ情報が設定された旨を示す・[n報
が設定されているか否かを判定する。そして、パラメー
タ省略時解釈手段が、パラメータ解釈手段により全ての
エントリのフラグフィールドにパラメータ情報が設定さ
れた旨を示す情報が設定されていないと判定されたとき
、パラメータ保存用ファイルからパラメータ情報が設定
された旨を示す情報が設定されていないエントリに対応
するパラメータ情報を取り出してエントリのデータフィ
ールドに設定し、パラメータ保存手段が、パラメータ省
略時解釈手段による処理が終了した後パラメータテーブ
ルの情報をパラメータ保存用ファイルに格納する。
(Function) In the parameter setting method of the present invention, the parameter storage file stores parameter information, and the parameter interpretation means inputs the parameter information and inputs the parameter into the data field of the entry of the parameter table corresponding to this parameter information. After setting information, set information indicating that parameter information has been set in the flag field of this entry, and indicate that parameter information has been set in all flag fields of the parameter table. Determine whether or not there is. Then, when the parameter interpretation means determines that information indicating that parameter information has been set in the flag field of all entries is not set, the parameter information is set from the parameter storage file. The parameter storage means retrieves the parameter information corresponding to the entry for which information indicating that the parameter has been omitted is not set and sets it in the data field of the entry. Store in a save file.

(実施例) 次に、本発明の実施例について図面を参照して詳細に説
明する。
(Example) Next, an example of the present invention will be described in detail with reference to the drawings.

第1図は本発明の一実施例の構成図である。同図におい
て、1はパラメータ設定m楕、2はパラメータテーブル
20を含むユーザプログラム、Flはパラメータ保存用
ファイル、Plはカード又は磁気テープ装置等に格納さ
れているパラメータである。パラメータ設定機#41は
、パラメータ解釈手段11、パラメータ保存手段12お
よびパラメータ省略時解釈手段13を含む。
FIG. 1 is a block diagram of an embodiment of the present invention. In the figure, 1 is a parameter setting file, 2 is a user program including a parameter table 20, Fl is a parameter storage file, and Pl is a parameter stored in a card, magnetic tape device, or the like. Parameter setting machine #41 includes parameter interpretation means 11, parameter storage means 12, and parameter default interpretation means 13.

第2図はパラメータテーブル20の内容例であり、ユー
ザプログラム2に含まれているパラメータ数分のエント
リを有する。各エントリは、そのエントリに対応するパ
ラメータの情報が設定されるデータフィールド20−a
およびデータフィールド20−aにパラメータ情報が設
定されているか否かを示す情報(例えば「1」でパラメ
ータ情報が設定されていることを示し、「0」でパラメ
ータ情報が設定されていないことを示す)が設定される
フラグフィールド20−bから成る。
FIG. 2 shows an example of the contents of the parameter table 20, which has entries for the number of parameters included in the user program 2. Each entry has a data field 20-a in which parameter information corresponding to the entry is set.
and information indicating whether parameter information is set in the data field 20-a (for example, "1" indicates that parameter information is set, "0" indicates that parameter information is not set) ) is set in a flag field 20-b.

第3図はパラメータ解釈手段11の処理を、第4図はパ
ラメータ省略時解釈手段13の処理例をそれぞれ示す流
れ図である。
FIG. 3 is a flow chart showing the processing of the parameter interpretation means 11, and FIG. 4 is a flowchart showing an example of the processing of the parameter omission interpretation means 13.

以下、各図を用いて本発明の実施例の動作を説明する。Hereinafter, the operation of the embodiment of the present invention will be explained using each figure.

外部よりパラメータ設定機WU1が起動されると、先ず
、パラメータ解釈手段11が動作を始める。パラメータ
解釈手段11は、第3図に示すように、ステップSIO
でパラメータP1から一つのパラメータ情報を取り出し
、ステップSitでパラメータテーブル20の該当する
エントリのデータフィールド20−aに設定する。そし
てそのエントリのフラグフィールド20−bに「1」を
設定する。そしてステップ813でパラメータP1に他
のパラメータがあるが否かを判定する。パラメータがあ
るときは、ステップ310に戻って上述した処理を繰り
返す。
When the parameter setting machine WU1 is started from the outside, first, the parameter interpretation means 11 starts operating. The parameter interpretation means 11, as shown in FIG.
One parameter information is extracted from the parameter P1 in step Sit, and set in the data field 20-a of the corresponding entry in the parameter table 20 in step Sit. Then, "1" is set in the flag field 20-b of that entry. Then, in step 813, it is determined whether there are other parameters in parameter P1. If there are parameters, the process returns to step 310 and repeats the process described above.

一方、パラメータがパラメータP1にないときは、ステ
ップS14でパラメータテーブル2oの全てのエントリ
のフラグフィールド20−bが「1」が設定されている
か否かを判定する。全てのエントリのフラグフィールド
20−bが「1」のときは、ステップ315でパラメー
タ保存手段12を起動する(詳細Cよ後述)0反対に全
てのエントリのフラグフィールド20−bに「1」が設
定されていないときは、ステップS16でパラメータ省
略時解釈手段13を起動する。
On the other hand, if the parameter is not included in the parameter P1, it is determined in step S14 whether "1" is set in the flag field 20-b of all entries in the parameter table 2o. When the flag fields 20-b of all entries are "1", the parameter storage means 12 is activated in step 315 (details C will be described later).0 Conversely, when the flag fields 20-b of all entries are "1", the parameter storage means 12 is activated in step 315. If not set, the parameter omitted interpretation means 13 is activated in step S16.

起動されたパラメータ省略時解釈手段13は、第4図に
示すように、ステップ320でパラメータテーブル20
のフラグフィールド20−bに「0」が設定されている
エントリを見つけ出す。
The activated parameter default interpretation means 13 reads the parameter table 20 in step 320, as shown in FIG.
The entry whose flag field 20-b is set to "0" is found.

そして、ステップS21でそのエントリに対応するパラ
メータ情報をパラメータ保存用ファイルF1から取り出
す。次にそのエントリのデータフィールド20−aにパ
ラメータ情報を設定し、ステップ323でフラグフィー
ルド20−bに「1」を設定する。そして、ステップ3
24でフラグフィールド20−bに「0」が設定されて
いるエントリがあるか否かを判定する。フラグフィール
ド20−bに「0」が設定されているエントリがあると
きは、ステップ320に戻って上述した処理(ステップ
320〜524)を繰り返す。一方、フラグフィールド
20−bに「0」が設定されているエントリがないとき
は、ステップ325でパラメータ保存手段12を起動す
る。
Then, in step S21, the parameter information corresponding to the entry is extracted from the parameter storage file F1. Next, parameter information is set in the data field 20-a of that entry, and in step 323, "1" is set in the flag field 20-b. And step 3
In step 24, it is determined whether there is an entry in which "0" is set in the flag field 20-b. If there is an entry in which "0" is set in the flag field 20-b, the process returns to step 320 and the above-described processes (steps 320 to 524) are repeated. On the other hand, if there is no entry in which "0" is set in the flag field 20-b, the parameter storage means 12 is activated in step 325.

パラメータ解釈手段11またはパラメータ省略時解釈手
段13により起動されたパラメータ保存手段12は、パ
ラメータテーブル20内の全てのパラメータ情報を読み
出し、パラメータ保存用ファイルF1に格納する。従っ
て、パラメータ保存用ファイルF1には、ユーザプログ
ラム2を今回実行する為に必要な全てのパラメータ情報
が格納されていることになる。
The parameter storage means 12 activated by the parameter interpretation means 11 or the parameter omission interpretation means 13 reads out all the parameter information in the parameter table 20 and stores it in the parameter storage file F1. Therefore, all the parameter information necessary for executing the user program 2 this time is stored in the parameter storage file F1.

(発明の効果) 以上に説明したように、本発明のパラメータ設定方式は
、プログラム実行時に指定されたパラメータを自動的に
特定ファイルに保存し、パラメータの設定が省略された
時には自動的に以前に指定されたパラメータを充当する
。従って、−時的に同一のパラメータ指定を多用するよ
うな場合には、最初の1回のみ正しくパラメータを指定
すれば、後は全て省略可能である。特にパラメータの措
定が長い場合や多量におよぶ場合にはパラメータ措定に
要する操作が著しく簡略化される。また、パラメータ指
定の変更が頻発するような場合でもパラメータ保存用フ
ァイルの内容を自動的に変更する為、利用者はその変更
に煩わされることがない。
(Effects of the Invention) As explained above, the parameter setting method of the present invention automatically saves the parameters specified at the time of program execution in a specific file, and when the parameter settings are omitted, the parameters are automatically saved in the previous file. Applies the specified parameters. Therefore, if the same parameter designation is frequently used from time to time, all the rest can be omitted by correctly designating the parameter only the first time. Particularly when the parameter setting is long or involves a large number of parameters, the operations required for parameter setting are significantly simplified. Furthermore, even if parameter specifications are frequently changed, the contents of the parameter storage file are automatically changed, so the user does not have to worry about making the changes.

す図、 第3図はパラメータ解釈手段11の処理例を示す流れ図
、 第4図はパラメータ省略時解釈手段13の処理例を示す
流れ図である。
3 is a flowchart showing an example of processing by the parameter interpretation means 11, and FIG. 4 is a flowchart showing an example of processing by the parameter omission interpretation means 13.

1・・・パラメータ設定機構、2・・・ユーザプログラ
ム、11・・・パラメータ解釈手段、12・・・パラメ
ータ保存手段、13・・・パラメータ省略時解釈手段、
20・・・パラメータテーブル、Pl・・・パラメータ
、Fl・・・パラメータ保存用ファイル。
DESCRIPTION OF SYMBOLS 1... Parameter setting mechanism, 2... User program, 11... Parameter interpretation means, 12... Parameter storage means, 13... Parameter omitted interpretation means,
20...parameter table, Pl...parameter, Fl...parameter storage file.

Claims (1)

【特許請求の範囲】 パラメータ情報が設定されているか否かを示すフラグフ
ィールドおよびパラメータ情報が設定されるデータフィ
ールドを有するパラメータテーブルを含む計算機プログ
ラムを実行する際に、前記パラメータテーブルにパラメ
ータ情報を設定しているシステムにおいて、 前記パラメータ情報を記憶するパラメータ保存用ファイ
ルと、 パラメータ情報を入力して該パラメータ情報に対応する
前記パラメータテーブルのエントリのデータフィールド
に前記パラメータ情報を設定した後に該エントリのフラ
グフィールドにパラメータ情報が設定された旨の情報を
設定し、前記パラメータテーブルの全てのフラグフィー
ルドにパラメータ情報が設定された旨を示す情報が設定
されているか否かを判定するパラメータ解釈手段と、該
パラメータ解釈手段により全てのエントリのフラグフィ
ールドにパラメータ情報が設定された旨を示す情報が設
定されていないと判定されたとき、前記パラメータ保存
用ファイルからパラメータ情報が設定された旨を示す情
報が設定されていないエントリに対応するパラメータ情
報を取り出して前記エントリのデータフィールドに設定
するパラメータ省略時解釈手段と、 該パラメータ省略時解釈手段による処理が終了した後に
前記パラメータテーブルの情報を前記パラメータ保存用
ファイルに格納するパラメータ保存手段と を設けたことを特徴とするパラメータ設定方式。
[Claims] When executing a computer program including a parameter table having a flag field indicating whether parameter information is set and a data field in which parameter information is set, parameter information is set in the parameter table. In a system that uses a parameter storage file that stores the parameter information, and after inputting the parameter information and setting the parameter information in the data field of the entry of the parameter table corresponding to the parameter information, a flag of the entry is set. parameter interpretation means for setting information indicating that parameter information has been set in a field and determining whether information indicating that parameter information has been set in all flag fields of the parameter table; When the parameter interpretation means determines that information indicating that parameter information has been set is not set in the flag field of all entries, information indicating that parameter information has been set from the parameter storage file is set. a parameter default interpretation means for extracting parameter information corresponding to an entry that has not been entered and set it in the data field of the entry; and after the processing by the parameter default interpretation means is completed, the information in the parameter table is transferred to the parameter storage file. A parameter setting method characterized by comprising a parameter storage means for storing parameters.
JP10802489A 1989-04-27 1989-04-27 Parameter setting system Pending JPH02285420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10802489A JPH02285420A (en) 1989-04-27 1989-04-27 Parameter setting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10802489A JPH02285420A (en) 1989-04-27 1989-04-27 Parameter setting system

Publications (1)

Publication Number Publication Date
JPH02285420A true JPH02285420A (en) 1990-11-22

Family

ID=14474037

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10802489A Pending JPH02285420A (en) 1989-04-27 1989-04-27 Parameter setting system

Country Status (1)

Country Link
JP (1) JPH02285420A (en)

Similar Documents

Publication Publication Date Title
JPH02285420A (en) Parameter setting system
JPS63205731A (en) Program start processing system
JPH04156615A (en) System rising system
JP2629051B2 (en) File organization information acquisition processing method
JPH05241890A (en) Data trace system
JPH0484355A (en) Terminal-relying command executing system
JPS63198129A (en) Input data processing system in procedure
JPH04305756A (en) Command processor
JPH02118726A (en) Job performance control system
JPH0651857A (en) Method for outputting voice and image
JPH06110712A (en) Terminal start processing monitoring system
JPH01185729A (en) Overlay structure program execution system
JPH02151956A (en) Command procedure starting system
JPH05134920A (en) Information processing method
JPH04128936A (en) Program execution environment changeover system
JPH0628286A (en) Method and device for controlling communication
JPS63228207A (en) Function key setting system
JPS63236134A (en) Register system for job control language of command procedure
JPH0540612A (en) Computer prperty conversion processor
JPH0340144A (en) Snap shot dump output processor containing pattern analyzing function
JPH0695922A (en) Method for detecting loop of program
JPH04163668A (en) Linking system for text editor in time sharing
JPH0546375A (en) Editor device
JPH02280240A (en) File processing system for program
JPH03282636A (en) Data storing method for execution of test package