JP2010003204A - Switching device, switching program, and switching method - Google Patents

Switching device, switching program, and switching method Download PDF

Info

Publication number
JP2010003204A
JP2010003204A JP2008163023A JP2008163023A JP2010003204A JP 2010003204 A JP2010003204 A JP 2010003204A JP 2008163023 A JP2008163023 A JP 2008163023A JP 2008163023 A JP2008163023 A JP 2008163023A JP 2010003204 A JP2010003204 A JP 2010003204A
Authority
JP
Japan
Prior art keywords
unit
service
switching
user
instruction information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2008163023A
Other languages
Japanese (ja)
Other versions
JP5208594B2 (en
Inventor
Futoshi Yokouchi
太 横内
Hideki Yoshida
英希 吉田
Koji Miyoshi
孝治 三吉
Toyohiko Hanakawa
豊彦 花河
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 Solution Innovators Ltd
Original Assignee
NEC System Technologies Ltd
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 System Technologies Ltd filed Critical NEC System Technologies Ltd
Priority to JP2008163023A priority Critical patent/JP5208594B2/en
Publication of JP2010003204A publication Critical patent/JP2010003204A/en
Application granted granted Critical
Publication of JP5208594B2 publication Critical patent/JP5208594B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To solve the problem that a user-defined service unit or a system-defined service unit cannot be switched and activated to a corresponding service ID, without altering a user processing unit. <P>SOLUTION: A switching program makes a computer having a configuration storage unit 20, which stores instructional information to correspond to a service ID perform processings for service ID input from a user processing unit 12; and select and activate either a user-defined service unit 14 or a system-defined service unit 15 that corresponds to the service ID, based on the instruction information corresponding to the service ID. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、切り替え装置、切り替えプログラム、および、切り替え方法に関する。   The present invention relates to a switching device, a switching program, and a switching method.

特許文献1は、照度が一定範囲内であれば特殊プログラムを起動し、当該範囲外であればOS(Operating System)を起動するデータ処理装置を開示する。   Patent Document 1 discloses a data processing device that activates a special program when the illuminance is within a certain range, and activates an OS (Operating System) when the illuminance is outside the range.

特許文献2は、所定の起動条件を満たすときに、サブプログラムをメインプログラムから起動するシステムを開示する。   Patent Document 2 discloses a system for starting a subprogram from a main program when a predetermined start condition is satisfied.

特許文献3は、ユーザがプログラム作成時に2つの実行時ルーチンを設け、モードによって何れか一方のルーチンを実行する視覚センサシステムを開示する。本システムは、コンソール入力からモードを選択する。   Patent Document 3 discloses a visual sensor system in which a user provides two runtime routines when creating a program and executes either one of the routines depending on the mode. The system selects a mode from console input.

特開2005−284637号公報Japanese Patent Laid-Open No. 2005-284737 特開平9−282019号公報Japanese Patent Laid-Open No. 9-282019 特開平2−13804号公報JP-A-2-13804

上記特許文献のいずれも、サービスID対応に指示情報を格納する設定記憶部を備えていない。更に、上記特許文献は、ユーザ処理部からサービスIDを入力して、サービスIDに対応する前記指示情報に基づいて、サービスIDに対応する、ユーザ定義サービス部またはシステム定義サービス部のいずれか一方を選択して起動する切り替え部も備えていない。   None of the above patent documents includes a setting storage unit that stores instruction information corresponding to a service ID. Furthermore, the above-mentioned patent document inputs a service ID from a user processing unit, and based on the instruction information corresponding to the service ID, either the user-defined service unit or the system-defined service unit corresponding to the service ID There is also no switching section to select and start.

従って、上記特許文献の技術は、ユーザ処理部を変更することなく、サービスID対応にユーザ定義サービス部またはシステム定義サービス部を切り替えて起動することが出来ないという課題があった。   Therefore, the technique of the above-mentioned patent document has a problem that the user-defined service unit or the system-defined service unit cannot be switched and started in correspondence with the service ID without changing the user processing unit.

本発明の目的は、上記課題を解決する、切り替え装置、切り替えプログラム、および、切り替え方法を提供することにある。   An object of the present invention is to provide a switching device, a switching program, and a switching method that solve the above problems.

本発明の一実施形態の切り替えプログラムは、サービスID対応に指示情報を格納する設定記憶部を備えたコンピュータに、ユーザ処理部から前記サービスIDを入力して、前記サービスIDに対応する前記指示情報に基づいて、前記サービスIDに対応する、ユーザ定義サービス部またはシステム定義サービス部のいずれか一方の選択をして起動する処理を実行させる。   The switching program according to an embodiment of the present invention is configured to input the service ID from a user processing unit to a computer including a setting storage unit that stores instruction information corresponding to a service ID, and the instruction information corresponding to the service ID. Based on the above, a process for selecting and starting either the user-defined service unit or the system-defined service unit corresponding to the service ID is executed.

本発明の一実施形態の切り替え装置は、サービスID対応に指示情報を格納する設定記憶部と、ユーザ処理部から前記サービスIDを入力して、前記サービスIDに対応する前記指示情報に基づいて、前記サービスIDに対応する、ユーザ定義サービス部またはシステム定義サービス部のいずれか一方の選択をして起動する切り替え部を備える。   A switching device according to an embodiment of the present invention includes a setting storage unit that stores instruction information corresponding to a service ID, and the service ID input from a user processing unit, and based on the instruction information corresponding to the service ID, A switching unit is provided that is activated by selecting either the user-defined service unit or the system-defined service unit corresponding to the service ID.

本発明の一実施形態の切り替え方法は、サービスID対応に指示情報を格納する設定記憶部を備えたコンピュータが、ユーザ処理部から前記サービスIDを入力して、前記サービスIDに対応する前記指示情報に基づいて、前記サービスIDに対応する、ユーザ定義サービス部またはシステム定義サービス部のいずれか一方の選択をして起動する行程を有する。   In the switching method according to an embodiment of the present invention, a computer including a setting storage unit that stores instruction information corresponding to a service ID inputs the service ID from a user processing unit, and the instruction information corresponding to the service ID And a process of selecting and starting either the user-defined service unit or the system-defined service unit corresponding to the service ID.

ユーザ処理部を変更することなく、ユーザ処理部が、ユーザ定義サービス部またはシステム定義サービス部を切り替えて起動することが出来る。   The user processing unit can switch and start the user-defined service unit or the system-defined service unit without changing the user processing unit.

図1は、本発明の第1の実施形態にかかる切り替え装置10の構成を示す。切り替え装置10は、設定部11、ユーザ処理部12、切り替え部13、ユーザ定義サービス部14、および、システム定義サービス部15を包含する。   FIG. 1 shows a configuration of a switching device 10 according to the first embodiment of the present invention. The switching device 10 includes a setting unit 11, a user processing unit 12, a switching unit 13, a user definition service unit 14, and a system definition service unit 15.

各部は、コンピュータ40である切り替え装置10の図示しないプロセッサが、図示しない主記憶装置に格納された、各部に対応したプログラムを実行することで機能する。この場合、切り替え装置10は、各部対応のプログラムの実行を制御するOS30(Operating System)を備える。なお、ハードウェアが、上記各部と同等な機能を実現していても良い。   Each unit functions when a processor (not shown) of the switching device 10 that is the computer 40 executes a program corresponding to each unit stored in a main storage device (not shown). In this case, the switching device 10 includes an OS 30 (Operating System) that controls execution of a program corresponding to each unit. Note that the hardware may realize functions equivalent to the above-described units.

ユーザ処理部12は経理処理などを実行する。ユーザ処理部12がプログラムで構成される場合、アプリケーションプログラム42となる。   The user processing unit 12 executes accounting processing and the like. When the user processing unit 12 is configured by a program, the application program 42 is obtained.

ユーザ定義サービス部14およびシステム定義サービス部15は、ユーザ処理部12のために、所定の処理を実行して処理結果を出力(サービスを提供)する。ユーザ定義サービス部14は、例えば、ユーザによってユーザ処理部12と共に作成される。システム定義サービス部15は、切り替え装置10の開発者または管理者によって作成される。   The user definition service unit 14 and the system definition service unit 15 execute predetermined processing for the user processing unit 12 and output a processing result (provide a service). The user definition service unit 14 is created together with the user processing unit 12 by a user, for example. The system definition service unit 15 is created by the developer or administrator of the switching device 10.

ユーザ定義サービス部14、および、システム定義サービス部15は、サービスの種類ごとに複数存在しても良い。ユーザ定義サービス部14およびシステム定義サービス部15がプログラムで構成される場合、各々は、ユーザ定義サービスプログラム44、システム定義サービスプログラム45となる。   There may be a plurality of user-defined service units 14 and system-defined service units 15 for each type of service. When the user-defined service unit 14 and the system-defined service unit 15 are configured by programs, they are a user-defined service program 44 and a system-defined service program 45, respectively.

設定記憶部20は、切り替え装置10に接続されたディスク装置等にファイルとして設けられる。設定部11は、設定記憶部20の内容を設定・変更する。設定部11がプログラムで構成される場合、設定プログラム41となる。   The setting storage unit 20 is provided as a file in a disk device or the like connected to the switching device 10. The setting unit 11 sets / changes the contents of the setting storage unit 20. When the setting unit 11 is configured by a program, the setting unit 41 is used.

切り替え部13は、ユーザ処理部12のサービス要求を受けて、システム定義サービス部15またはユーザ定義サービス部14のいずれかを選択して起動する。選択は、設定記憶部20の内容に基づいて行われる。   The switching unit 13 receives the service request from the user processing unit 12 and selects and starts either the system definition service unit 15 or the user definition service unit 14. The selection is performed based on the contents of the setting storage unit 20.

ユーザ処理部12が切り替え部13にサービスを要求するインターフェースは、システム定義サービス部15またはユーザ定義サービス部14のいずれが選択される場合でも同一である。切り替え部13がプログラムで構成される場合、切り替えプログラム43となる。   The interface from which the user processing unit 12 requests a service to the switching unit 13 is the same regardless of whether the system definition service unit 15 or the user definition service unit 14 is selected. When the switching unit 13 is configured by a program, the switching program 43 is obtained.

図2は、設定記憶部20の格納データを示す。設定記憶部20は、サービスID21と指示情報22を格納する。サービスID21は、ユーザ定義サービス部14またはシステム定義サービス部15が提供するサービスの種類を示す。本実施の形態に於いて、指示情報22は、システム定義サービス部15とユーザ定義サービス部14うち、どちらを起動するかの区別を示す2値情報等である。   FIG. 2 shows data stored in the setting storage unit 20. The setting storage unit 20 stores a service ID 21 and instruction information 22. The service ID 21 indicates the type of service provided by the user-defined service unit 14 or the system-defined service unit 15. In the present embodiment, the instruction information 22 is binary information indicating the distinction between the system definition service unit 15 and the user definition service unit 14 to be activated.

図3は、切り替え部13の動作フローチャートである。切り替え部13は、ユーザ処理部12から、サービスID21を入力パラメータとするサービス要求を受けて、同部からサービスID21を入力する(S11)。   FIG. 3 is an operation flowchart of the switching unit 13. The switching unit 13 receives a service request using the service ID 21 as an input parameter from the user processing unit 12, and inputs the service ID 21 from the same unit (S11).

切り替え部13は、入力したサービスID21に対応する指示情報22がシステム定義サービス部15の起動を指示するかを判断する(S12)。このとき切り替え部13は、サービスID21をキーとして設定記憶部20を検索して、指示情報22を得る。   The switching unit 13 determines whether the instruction information 22 corresponding to the input service ID 21 instructs the activation of the system definition service unit 15 (S12). At this time, the switching unit 13 searches the setting storage unit 20 using the service ID 21 as a key to obtain the instruction information 22.

指示情報22が、システム定義サービス部15の起動を指示する場合(S12でY)、切り替え部13は、サービスID21からシステム定義サービス部15の名称を生成する(S13)。その後切り替え部13は、当該名称を用いてシステム定義サービス部15を起動し、その処理結果を同部から受け取る(S14)。   When the instruction information 22 instructs activation of the system definition service unit 15 (Y in S12), the switching unit 13 generates the name of the system definition service unit 15 from the service ID 21 (S13). Thereafter, the switching unit 13 activates the system definition service unit 15 using the name, and receives the processing result from the same unit (S14).

切り替え部13がプロセス(第1のプロセス)上で実行される切り替えプログラム43である場合、同部はS13、S14の処理を以下の第1、第2例ように実現しても良い。ここで、プロセスは、プロセッサに複数のプログラムを並行して実行させる為に、OS30が実行単位として設けたものである。   When the switching unit 13 is the switching program 43 executed on the process (first process), the same unit may realize the processing of S13 and S14 as in the following first and second examples. Here, the process is provided by the OS 30 as an execution unit in order for the processor to execute a plurality of programs in parallel.

第1例では、同部は、S13において、例えば、サービスID21に接頭語“システム”を付加して、システム定義サービス部15として機能するプロセス(第2のプロセス)の名称を生成する。ここで、第2のプロセスは、システム定義サービスプログラム45をプロセッサに実行させるプロセスである。   In the first example, in S13, the same part adds a prefix “system” to the service ID 21, for example, and generates a name of a process (second process) that functions as the system definition service part 15. Here, the second process is a process for causing the processor to execute the system definition service program 45.

切り替え部13は、S14にて、第2のプロセスにサービスの提供を要求し、その終了を待ち合わせ、さらに、第2のプロセスから処理結果を入力する。このとき同部は、生成した名称をOS30に出力して、OS30が提供するプロセス間通信機能を用いて、第1と第2のプロセス間の同期や情報授受を実現する。   In S14, the switching unit 13 requests the second process to provide the service, waits for the end of the service, and further inputs the processing result from the second process. At this time, the same unit outputs the generated name to the OS 30 and realizes synchronization and information exchange between the first and second processes using the inter-process communication function provided by the OS 30.

第2例では、切り替え部13は、S13において、例えば、サービスID21に接頭語“システム”を付加して、システム定義サービスプログラム45の名称を生成する。同部は、S14にて、当該名称をOS30に出力して、OS30の提供する動的リンク機能を用いて当該プログラムを呼び出して、処理結果を入力する。   In the second example, the switching unit 13 generates the name of the system definition service program 45 by adding the prefix “system” to the service ID 21 in S13, for example. In S14, the same unit outputs the name to the OS 30, calls the program using the dynamic link function provided by the OS 30, and inputs the processing result.

切り替え部13は、上記S13、S14の処理をハードウェアで実現されたシステム定義サービス部15との起動/応答信号の電気的な授受で実現しても良い。   The switching unit 13 may realize the processes of S13 and S14 by electrical transmission / reception of an activation / response signal with the system definition service unit 15 realized by hardware.

最後に、切り替え部13は、処理結果をユーザ処理部12に出力して(S15)処理を終了する。   Finally, the switching unit 13 outputs the processing result to the user processing unit 12 (S15) and ends the process.

指示情報22がユーザ定義サービス部14の起動を指示する場合(S12でN)、切り替え部13は、サービスID21からユーザ定義サービス部14の名称を生成する(S16)。その後切り替え部13は、当該名称を用いてユーザ定義サービス部14を起動し、その処理結果を同部から受け取る(S17)。   When the instruction information 22 instructs activation of the user-defined service unit 14 (N in S12), the switching unit 13 generates the name of the user-defined service unit 14 from the service ID 21 (S16). Thereafter, the switching unit 13 activates the user-defined service unit 14 using the name, and receives the processing result from the same unit (S17).

S16、S17の処理の詳細は、S13、S14と同様である。なお、ユーザ処理部12およびユーザ定義サービス部14がプログラムで実現されている場合、両者は静的にリンクされていても良い。更に、切り替え部13もプログラムである場合は、3者が静的にリンクされていても良い。   Details of the processing of S16 and S17 are the same as those of S13 and S14. When the user processing unit 12 and the user definition service unit 14 are realized by a program, both may be statically linked. Further, when the switching unit 13 is also a program, the three parties may be linked statically.

本実施形態の切り替え装置10は、ユーザ処理部12を変更せずに、ユーザ定義サービス部14とシステム定義サービス部15を切り替えて起動できる。切り替え部13が、指示情報22の指定に従って、両者の何れかを選択して起動するからである。   The switching device 10 according to the present embodiment can switch and start the user definition service unit 14 and the system definition service unit 15 without changing the user processing unit 12. This is because the switching unit 13 selects and activates either of them according to the designation of the instruction information 22.

本実施形態は、例えば、アプリケーションプログラム42がユーザ作成サービスプログラム(ユーザ定義サービスプログラム44)を使用していた環境で、高速で高品質なシステム定義サービスプログラム45が後から用意された場合に効果がある。その理由は、アプリケーションプログラム42の変更をせずに新たなシステム定義サービスプログラム45を使用でき、導入によるアプリケーションプログラム42再作成を省略したり、評価工程を減らしたり出来るからである。   This embodiment is effective when, for example, a high-speed and high-quality system definition service program 45 is prepared later in an environment where the application program 42 uses a user-created service program (user-defined service program 44). is there. The reason is that the new system definition service program 45 can be used without changing the application program 42, and the re-creation of the application program 42 by introduction can be omitted, and the evaluation process can be reduced.

図4は、本発明の第2の実施形態の切り替え装置10の全体構成を示す。本実施形態の切り替え装置10は環境変数31を備える。他は第1の実施形態の切り替え装置10と同様である。   FIG. 4 shows the overall configuration of the switching device 10 according to the second embodiment of the present invention. The switching device 10 of this embodiment includes an environment variable 31. Others are the same as that of the switching apparatus 10 of 1st Embodiment.

環境変数31は、切り替え装置10の図示しない主記憶装置等に格納された、切り替え装置10各部の実行環境を表す変数である。環境変数31は、単数の場合も複数の場合もある。   The environment variable 31 is a variable representing an execution environment of each part of the switching device 10 stored in a main storage device or the like (not shown) of the switching device 10. The environment variable 31 may be singular or plural.

環境変数31は、例えば、OS30の所定の機能(所定通信パス経由の通信機能、等)の使用の可否を示す値を格納する。OS30は、所定通信パスが正常であれば環境変数31に当該機能が使用可である旨の値を格納し、当該通信パスに異常が検出されると当該環境変数31に当該機能が使用不可である旨の値を格納する。   The environment variable 31 stores, for example, a value indicating whether or not a predetermined function (such as a communication function via a predetermined communication path) of the OS 30 can be used. If the predetermined communication path is normal, the OS 30 stores a value indicating that the function is usable in the environment variable 31, and if an abnormality is detected in the communication path, the function cannot be used in the environment variable 31. Stores a certain value.

環境変数31は、切り替え装置10の負荷情報(空きメモリ量、プロセッサ使用率、等)を格納するものであっても良い。この場合は、例えば、OS30が定期的に情報を更新する。   The environment variable 31 may store load information (amount of free memory, processor usage rate, etc.) of the switching device 10. In this case, for example, the OS 30 periodically updates the information.

更に、環境変数31は、実時間タイマ値やある種の計測値を格納するものでも良い。この場合は、例えば、図示しない実時間タイマや計測器が環境変数31を更新する。   Furthermore, the environment variable 31 may store a real-time timer value or some kind of measurement value. In this case, for example, a real time timer or measuring instrument (not shown) updates the environment variable 31.

図5は、本発明の第2の実施形態の設定記憶部20に格納される指示情報22の詳細を示す。他は第1の実施形態の設定記憶部20と同様である。   FIG. 5 shows details of the instruction information 22 stored in the setting storage unit 20 according to the second embodiment of this invention. Others are the same as the setting memory | storage part 20 of 1st Embodiment.

本実施形態に於いて、指示情報22は変数名27と条件値28の対を格納する。変数名27は環境変数31の名称である。条件値28は当該名称の環境変数31が取りうる値(例えば、所定機能の使用が可または不可の指示)、または、値の範囲(例えば、10メガバイト<空きメモリ量<50メガバイト)を示す。変数名27と条件値28の対は、単数でも複数でも良い。   In the present embodiment, the instruction information 22 stores a pair of a variable name 27 and a condition value 28. The variable name 27 is the name of the environment variable 31. The condition value 28 indicates a value that can be taken by the environment variable 31 of the name (for example, an instruction that the predetermined function can be used or not), or a value range (for example, 10 megabytes <free memory amount <50 megabytes). The variable name 27 and the condition value 28 may be singular or plural.

図6は、本発明の第2の実施形態の切り替え部13のフローチャートである。切り替え部13は、ユーザ処理部12から、サービスID21を入力パラメータとするサービス要求を受けて、同部からサービスID21を入力する(S21)。   FIG. 6 is a flowchart of the switching unit 13 according to the second embodiment of this invention. The switching unit 13 receives a service request using the service ID 21 as an input parameter from the user processing unit 12, and inputs the service ID 21 from the same unit (S21).

続いて切り替え部13は、指示情報22に基づく実行環境の判定を行う(S22)。具体的には、同部は、指示情報22から変数名27および条件値28を取得して、当該変数名27の環境変数31の値が、当該条件値28の値に合致、または値の範囲内であるかを判定する。指示情報22に複数の変数名27および条件値28の対が格納されているときは、全ての変数名27および条件値28の対について、上記判定を順次実施する。   Subsequently, the switching unit 13 determines the execution environment based on the instruction information 22 (S22). Specifically, the same unit acquires the variable name 27 and the condition value 28 from the instruction information 22, and the value of the environment variable 31 of the variable name 27 matches the value of the condition value 28, or the value range It is determined whether it is within. When a plurality of pairs of variable names 27 and condition values 28 are stored in the instruction information 22, the above determination is sequentially performed for all pairs of variable names 27 and condition values 28.

判定結果が全て真であれば(S23でY)、同部は、サービスID21からシステム定義サービス部15の名称を生成する(S24)。その後切り替え部13は、当該名称を用いてシステム定義サービス部15を起動し、その処理結果を同部から受け取る(S25)。   If all the determination results are true (Y in S23), the same part generates the name of the system definition service part 15 from the service ID 21 (S24). Thereafter, the switching unit 13 activates the system definition service unit 15 using the name, and receives the processing result from the same unit (S25).

最後に、切り替え部13は、処理結果をユーザ処理部12に出力して(S26)処理を終了する。   Finally, the switching unit 13 outputs the processing result to the user processing unit 12 (S26) and ends the process.

判定結果の何れかが偽であれば(S23でN)、切り替え部13は、サービスID21からユーザ定義サービス部14の名称を生成する(S27)。その後切り替え部13は、当該名称を用いてユーザ定義サービス部14を起動し、その処理結果を同部から受け取る(S28)。   If any of the determination results is false (N in S23), the switching unit 13 generates the name of the user-defined service unit 14 from the service ID 21 (S27). Thereafter, the switching unit 13 activates the user-defined service unit 14 using the name, and receives the processing result from the same unit (S28).

なお、切り替え部13は、判定結果が全て真であれば(S23でY)切り替え部13はユーザ定義サービス部14を起動し、逆の場合(S23でN)にシステム定義サービス部15を起動するように構成しても良い。   Note that the switching unit 13 activates the user-defined service unit 14 if the determination results are all true (Y in S23), and activates the system-defined service unit 15 in the opposite case (N in S23). You may comprise as follows.

また、切り替え部13は、判定結果の何れかが真であるか否かでユーザ定義サービス部14またはシステム定義サービス部15を選択しても良い。   The switching unit 13 may select the user-defined service unit 14 or the system-defined service unit 15 depending on whether any of the determination results is true.

本実施形態の切り替え装置10は、ユーザ処理部12を変更せずに、実行環境に応じて、ユーザ定義サービス部14とシステム定義サービス部15を動的に切り替えて起動できる。切り替え部13が、環境変数31の値が条件値28に整合しているかを判定して、その判定結果に従って、両者の何れかを選択して起動するからである。本実施形態は、例えば、アプリケーションプログラム42(ユーザ処理部12)の実行中に実行環境が変化したときに、柔軟に対応できるという効果がある。   The switching device 10 of the present embodiment can dynamically start and switch between the user-defined service unit 14 and the system-defined service unit 15 according to the execution environment without changing the user processing unit 12. This is because the switching unit 13 determines whether the value of the environment variable 31 matches the condition value 28, and selects and activates either of them according to the determination result. The present embodiment has an effect that, for example, when the execution environment changes during the execution of the application program 42 (user processing unit 12), it is possible to respond flexibly.

図7は、本発明の第3の実施形態の設定記憶部20の格納データを示す。なお、本実施形態では、ユーザ処理部12および切り替え部13がプロセス(第1のプロセス)上で実行されるプログラムであると仮定している。さらに、ユーザ定義サービス部14とシステム定義サービス部15がプログラムで構成されているものとする。   FIG. 7 shows data stored in the setting storage unit 20 according to the third embodiment of this invention. In the present embodiment, it is assumed that the user processing unit 12 and the switching unit 13 are programs executed on a process (first process). Furthermore, it is assumed that the user-defined service unit 14 and the system-defined service unit 15 are configured by programs.

本実施形態の設定記憶部20は、第1名称23、フラグ24、呼び出し法25、第2名称26を格納する。他は、第2の実施形態の設定記憶部20と同様である。   The setting storage unit 20 of the present embodiment stores a first name 23, a flag 24, a calling method 25, and a second name 26. Others are the same as the setting memory | storage part 20 of 2nd Embodiment.

第1名称23は、ユーザ定義サービスプログラム44の名称である。第2名称26は、システム定義サービスプログラム45、または、システム定義サービスプログラム45をプロセッサに実行させるプロセス(第2のプロセス)の名称である。   The first name 23 is the name of the user-defined service program 44. The second name 26 is the name of the system definition service program 45 or a process (second process) that causes the processor to execute the system definition service program 45.

フラグ24は、対応サービスID21を指定したサービス要求があったときに、ユーザ定義サービスプログラム44とシステム定義サービスプログラム45との間で一方を選択して起動するか否か(選択起動の有無)を示す情報である。フラグ24が、選択起動有りを示している場合に、呼び出し法25、第2名称26、指示情報22の内容が有効である。   The flag 24 indicates whether one of the user-defined service program 44 and the system-defined service program 45 is selected and activated when there is a service request specifying the corresponding service ID 21 (whether or not selective activation is performed). It is information to show. When the flag 24 indicates the presence of selective activation, the contents of the calling method 25, the second name 26, and the instruction information 22 are valid.

呼び出し法25は、システム定義サービスプログラム45を起動するときに、動的リンクを使用した呼び出しを行うか、プロセス間通信を用いた処理要求を行うかを指定する。呼び出し法25の値は、システム定義サービスプログラム45の切り替え装置10への登録方法に依存して決まる。   The calling method 25 specifies whether to call using a dynamic link or to make a processing request using inter-process communication when the system definition service program 45 is activated. The value of the calling method 25 is determined depending on the registration method of the system definition service program 45 to the switching device 10.

図8は、本発明の第3の実施形態の切り替え部13のフローチャートである。切り替え部13は、ユーザ処理部12から、サービスID21を入力パラメータとするサービス要求を受けて、同部からサービスID21を入力する(S31)。   FIG. 8 is a flowchart of the switching unit 13 according to the third embodiment of this invention. The switching unit 13 receives a service request using the service ID 21 as an input parameter from the user processing unit 12, and inputs the service ID 21 from the same unit (S31).

切り替え部13は、入力したサービスID21に対応するフラグ24が選択起動有りを指示するかを判断する(S32)。このとき同部は、サービスID21をキーとして設定記憶部20を検索して、フラグ24を得る。   The switching unit 13 determines whether or not the flag 24 corresponding to the input service ID 21 indicates the presence of selective activation (S32). At this time, the same unit searches the setting storage unit 20 using the service ID 21 as a key to obtain the flag 24.

フラグ24が、選択起動有りを指示する場合(S32でY)、切り替え部13は、指示情報22に基づく実行環境の判定を行う(S33)。この詳細は第2の実施形態と同じでよい。   When the flag 24 indicates the presence of selective activation (Y in S32), the switching unit 13 determines the execution environment based on the instruction information 22 (S33). The details may be the same as in the second embodiment.

判定結果が全て真である場合(S34でY)、切り替え部13は、呼び出し法25が動的リンク起動を指示するかを判断する(S35)。   When all the determination results are true (Y in S34), the switching unit 13 determines whether the calling method 25 instructs dynamic link activation (S35).

呼び出し法25が動的リンク起動を指示する場合(S35でY)、同部は、第2名称26をOS30に出力して、OS30の提供する動的リンク機能を用いてシステム定義サービスプログラム45を第1のプロセス上で呼び出して、処理結果を受け取る(S36)。   When the calling method 25 instructs dynamic link activation (Y in S35), the same unit outputs the second name 26 to the OS 30, and uses the dynamic link function provided by the OS 30 to execute the system definition service program 45. Called on the first process and receives the processing result (S36).

最後に、切り替え部13は、処理結果をユーザ処理部12に出力して(S37)処理を終了する。   Finally, the switching unit 13 outputs the processing result to the user processing unit 12 (S37) and ends the process.

呼び出し法25がプロセス間通信起動を指示する場合(S35でN)、切り替え部13は以下のことを行う。即ち、同部は、第2名称26をOS30に出力して、OS30が提供するプロセス間通信機能を用いて、第2のプロセスにサービスを要求し、その終了を待ち合わせ、さらに、第2のプロセスから処理結果を入力する(S38)。     When the calling method 25 instructs the inter-process communication activation (N in S35), the switching unit 13 performs the following. That is, the same unit outputs the second name 26 to the OS 30, uses the inter-process communication function provided by the OS 30, requests a service from the second process, waits for the termination, and further processes the second process 26. The processing result is input from (S38).

フラグ24が選択起動無しを指示する(S32でN)、または、判定結果の何れかが偽であれば(S34でN)、切り替え部13は以下を行う。即ち、同部は、第1名称23をOS30に出力して、OS30の提供する動的リンク機能を用いてユーザ定義サービスプログラム44を呼び出して、処理結果を入力する(S39)。   If the flag 24 indicates no selective activation (N in S32) or if any of the determination results is false (N in S34), the switching unit 13 performs the following. That is, the same unit outputs the first name 23 to the OS 30, calls the user-defined service program 44 using the dynamic link function provided by the OS 30, and inputs the processing result (S39).

本実施の形態の切り替え装置10は、システム定義サービスプログラム45の作成登録にさいして、最適な方法を取ることを許容する。切り替え部13が、呼び出し法25に基づいて、システム定義サービスプログラム45の起動方法を切り替えるからである。   The switching device 10 according to the present embodiment allows an optimum method to be used when creating and registering the system definition service program 45. This is because the switching unit 13 switches the activation method of the system definition service program 45 based on the calling method 25.

さらに、本実施の形態の切り替え装置10は、呼び出し法25、第2名称26および指示情報22を設定記憶部20に無駄に登録する必要性を無くす。切り替え部13は、フラグ24が選択起動有りを示す場合のみ、それらを参照するからである。   Furthermore, the switching device 10 according to the present embodiment eliminates the need to register the calling method 25, the second name 26, and the instruction information 22 in the setting storage unit 20 in vain. This is because the switching unit 13 refers to them only when the flag 24 indicates the presence of selective activation.

図9は、本発明の基本的な構成を示す。本発明の切り替えプログラム43は、サービスID21対応に指示情報22を格納する設定記憶部20を備えたコンピュータ40に、以下の処理を実行させる。即ち、コンピュータ40は、ユーザ処理部12からサービスID21を入力して、当該IDに対応する指示情報22に基づいて、当該IDに対応するユーザ定義サービス部14またはシステム定義サービス部15のいずれか一方の選択をして起動する。   FIG. 9 shows the basic configuration of the present invention. The switching program 43 of the present invention causes the computer 40 including the setting storage unit 20 that stores the instruction information 22 corresponding to the service ID 21 to execute the following processing. That is, the computer 40 receives the service ID 21 from the user processing unit 12 and, based on the instruction information 22 corresponding to the ID, either the user-defined service unit 14 or the system-defined service unit 15 corresponding to the ID. Select and start.

図10は、システムプログラム46の構成を示す。システムプログラム46は、切り替えプログラム43、ユーザ定義サービスプログラム44、および、システム定義サービスプログラム45から構成される。   FIG. 10 shows the configuration of the system program 46. The system program 46 includes a switching program 43, a user definition service program 44, and a system definition service program 45.

図1は、本発明にかかる切り替え装置10の構成を示す。FIG. 1 shows a configuration of a switching device 10 according to the present invention. 図2は、設定記憶部20の格納データを示す。FIG. 2 shows data stored in the setting storage unit 20. 図3は、切り替え部13の動作フローチャートである。FIG. 3 is an operation flowchart of the switching unit 13. 図4は、本発明の第2の実施形態の切り替え装置10の構成を示す。FIG. 4 shows the configuration of the switching device 10 according to the second embodiment of the present invention. 図5は、本発明の第2の実施形態の設定記憶部20に格納される指示情報22の詳細を示す。FIG. 5 shows details of the instruction information 22 stored in the setting storage unit 20 according to the second embodiment of this invention. 図6は、本発明の第2の実施形態の切り替え部13のフローチャートである。FIG. 6 is a flowchart of the switching unit 13 according to the second embodiment of this invention. 図7は、本発明の第3の実施形態の設定記憶部20の格納データを示す。FIG. 7 shows data stored in the setting storage unit 20 according to the third embodiment of this invention. 図8は、本発明の第3の実施形態の切り替え部13のフローチャートである。FIG. 8 is a flowchart of the switching unit 13 according to the third embodiment of this invention. 図9は、本発明の基本的な構成を示す。FIG. 9 shows the basic configuration of the present invention. 図10は、システムプログラム40の構成を示す。FIG. 10 shows the configuration of the system program 40.

符号の説明Explanation of symbols

10 切り替え装置
11 設定部
12 ユーザ処理部
13 切り替え部
14 ユーザ定義サービス部
15 システム定義サービス部
20 設定記憶部
21 サービスID
22 指示情報
23 第1名称
24 フラグ
25 呼び出し法
26 第2名称
27 変数名
28 条件値
30 OS
31 環境変数
40 コンピュータ
41 設定プログラム
42 アプリケーションプログラム
43 切り替えプログラム
44 ユーザ定義サービスプログラム
45 システム定義サービスプログラム
46 システムプログラム
DESCRIPTION OF SYMBOLS 10 Switching apparatus 11 Setting part 12 User processing part 13 Switching part 14 User definition service part 15 System definition service part 20 Setting storage part 21 Service ID
22 Instruction information 23 First name 24 Flag 25 Calling method 26 Second name 27 Variable name 28 Condition value 30 OS
31 Environment Variable 40 Computer 41 Setting Program 42 Application Program 43 Switching Program 44 User Defined Service Program 45 System Definition Service Program 46 System Program

Claims (12)

サービスID対応に指示情報を格納する設定記憶部を備えたコンピュータに、
ユーザ処理部から前記サービスIDを入力して、前記サービスIDに対応する前記指示情報に基づいて、前記サービスIDに対応する、ユーザ定義サービス部またはシステム定義サービス部のいずれか一方の選択をして起動する処理を実行させる切り替えプログラム。
In a computer having a setting storage unit for storing instruction information corresponding to a service ID,
The service ID is input from the user processing unit, and either the user-defined service unit or the system-defined service unit corresponding to the service ID is selected based on the instruction information corresponding to the service ID. A switching program that executes the process to be started.
前記コンピュータに、
前記指示情報に基づいて実行環境を判定して前記選択を実行させる請求項1の切り替えプログラム。
In the computer,
The switching program according to claim 1, wherein an execution environment is determined based on the instruction information and the selection is executed.
前記コンピュータに、
前記実行環境として、所定機能の使用可否を判定させる請求項2の切り替えプログラム。
In the computer,
The switching program according to claim 2, wherein the execution environment is determined to determine whether or not a predetermined function can be used.
前記ユーザ処理部、前記ユーザ定義サービス部および前記システム定義サービス部は、前記コンピュータに実行されるプログラムであり、
前記ユーザ処理部から呼び出されて、
前記コンピュータに、前記ユーザ処理部に動的に結合される前記ユーザ定義サービス部の呼び出し処理を実行させる、請求項1乃至3のいずれかの切り替えプログラム。
The user processing unit, the user-defined service unit, and the system-defined service unit are programs executed on the computer,
Called from the user processing unit,
The switching program according to any one of claims 1 to 3, which causes the computer to execute a calling process of the user-defined service unit that is dynamically coupled to the user processing unit.
前記ユーザ処理部、前記ユーザ定義サービス部および前記システム定義サービス部は、前記コンピュータによって実行されるプログラムであり、
第1のプロセス上で実行される前記ユーザ処理部から呼び出されて、前記第1のプロセス上で実行されて、
前記コンピュータに、第2のプロセスに前記システム定義サービス部の起動を要求するプロセス間通信処理を実行させる、請求項1乃至3のいずれかの切り替えプログラム。
The user processing unit, the user-defined service unit, and the system-defined service unit are programs executed by the computer,
Called from the user processing unit executed on the first process, executed on the first process,
4. The switching program according to claim 1, wherein the switching program causes the second process to execute an inter-process communication process that requests activation of the system definition service unit. 5.
請求項4または5の切り替えプログラム、前記ユーザ定義サービス部、および、前記システム定義サービス部とから構成される、システムプログラム。 6. A system program comprising the switching program according to claim 4 or 5, the user-defined service unit, and the system-defined service unit. サービスID対応に指示情報を格納する設定記憶部と、
ユーザ処理部から前記サービスIDを入力して、前記サービスIDに対応する前記指示情報に基づいて、前記サービスIDに対応する、ユーザ定義サービス部またはシステム定義サービス部のいずれか一方の選択をして起動する切り替え部を備える、切り替え装置。
A setting storage unit for storing instruction information corresponding to the service ID;
The service ID is input from the user processing unit, and either the user-defined service unit or the system-defined service unit corresponding to the service ID is selected based on the instruction information corresponding to the service ID. A switching device comprising a switching unit to be activated.
前記切り替え部は、前記指示情報に基づいて外部条件を判定して前記選択を行う請求項7の切り替え装置。 The switching device according to claim 7, wherein the switching unit determines the external condition based on the instruction information and performs the selection. 前記切り替え部は、前記外部条件として、所定機能の使用可否を判定する請求項8の切り替え装置。 The switching device according to claim 8, wherein the switching unit determines whether or not a predetermined function can be used as the external condition. サービスID対応に指示情報を格納する設定記憶部を備えたコンピュータが、
ユーザ処理部から前記サービスIDを入力して、前記サービスIDに対応する前記指示情報に基づいて、前記サービスIDに対応する、ユーザ定義サービス部またはシステム定義サービス部のいずれか一方の選択をして起動する行程を有する切り替え方法。
A computer including a setting storage unit that stores instruction information corresponding to a service ID is provided.
The service ID is input from the user processing unit, and either the user-defined service unit or the system-defined service unit corresponding to the service ID is selected based on the instruction information corresponding to the service ID. A switching method with a starting process.
前記コンピュータが、
前記指示情報に基づいて実行環境を判定して前記選択を実行する請求項10の切り替え方法。
The computer is
The switching method according to claim 10, wherein the selection is performed by determining an execution environment based on the instruction information.
前記コンピュータが、
前記実行環境として、所定機能の使用可否を判定する請求項11の切り替え方法。
The computer is
The switching method according to claim 11, wherein whether or not a predetermined function is usable is determined as the execution environment.
JP2008163023A 2008-06-23 2008-06-23 Switching device, switching program, and switching method Expired - Fee Related JP5208594B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008163023A JP5208594B2 (en) 2008-06-23 2008-06-23 Switching device, switching program, and switching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008163023A JP5208594B2 (en) 2008-06-23 2008-06-23 Switching device, switching program, and switching method

Publications (2)

Publication Number Publication Date
JP2010003204A true JP2010003204A (en) 2010-01-07
JP5208594B2 JP5208594B2 (en) 2013-06-12

Family

ID=41584852

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008163023A Expired - Fee Related JP5208594B2 (en) 2008-06-23 2008-06-23 Switching device, switching program, and switching method

Country Status (1)

Country Link
JP (1) JP5208594B2 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001075758A (en) * 1999-09-02 2001-03-23 Ricoh Co Ltd Host device provided with printer driver and printer system
JP2001142600A (en) * 1999-11-15 2001-05-25 Canon Inc Multi-language display switching device and its switching method
JP2002108618A (en) * 2000-10-02 2002-04-12 Techno Core:Kk Module selective activation system
JP2003044301A (en) * 2001-07-26 2003-02-14 Mitsubishi Electric Corp Radio communication equipment for realizing radio communication function by software
JP2003202990A (en) * 2002-01-08 2003-07-18 Hitachi Information Systems Ltd System and method for managing and starting program, program and recording medium
JP2004265174A (en) * 2003-03-03 2004-09-24 Nippon Telegr & Teleph Corp <Ntt> Communication device, service control method, agent program of communication device and recording medium having agent program recorded thereon
JP2005084916A (en) * 2003-09-08 2005-03-31 Ntt Docomo Inc Program control device and program control method
JP2005223788A (en) * 2004-02-09 2005-08-18 Matsushita Electric Ind Co Ltd Software radio equipment and software download method thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001075758A (en) * 1999-09-02 2001-03-23 Ricoh Co Ltd Host device provided with printer driver and printer system
JP2001142600A (en) * 1999-11-15 2001-05-25 Canon Inc Multi-language display switching device and its switching method
JP2002108618A (en) * 2000-10-02 2002-04-12 Techno Core:Kk Module selective activation system
JP2003044301A (en) * 2001-07-26 2003-02-14 Mitsubishi Electric Corp Radio communication equipment for realizing radio communication function by software
JP2003202990A (en) * 2002-01-08 2003-07-18 Hitachi Information Systems Ltd System and method for managing and starting program, program and recording medium
JP2004265174A (en) * 2003-03-03 2004-09-24 Nippon Telegr & Teleph Corp <Ntt> Communication device, service control method, agent program of communication device and recording medium having agent program recorded thereon
JP2005084916A (en) * 2003-09-08 2005-03-31 Ntt Docomo Inc Program control device and program control method
JP2005223788A (en) * 2004-02-09 2005-08-18 Matsushita Electric Ind Co Ltd Software radio equipment and software download method thereof

Also Published As

Publication number Publication date
JP5208594B2 (en) 2013-06-12

Similar Documents

Publication Publication Date Title
US8365153B2 (en) Server-based code compilation
JP6571277B2 (en) Method and apparatus for loading terminal application
US20140201717A1 (en) Simulation environment for distributed programs
US20140098814A1 (en) Virtual machine multicast/broadcast in virtual network
CN110837424A (en) Service instance determining method and device, storage medium and electronic equipment
JP2012088863A (en) Virtual machine moving method, computer and program
KR101198437B1 (en) Method, apparatus and computer program product for providing context triggered distribution of context models
US20070136733A1 (en) Method, medium and apparatus storing and restoring register context for fast context switching between tasks
CN108762800A (en) The dynamic updating method and device of application program
CN111125604A (en) Page management method and device, terminal equipment and storage medium
US8935402B2 (en) Resource launch from application within application container
US20100077411A1 (en) Routing function calls to specific-function dynamic link libraries in a general-function environment
JP2005228183A (en) Program execution method and computer system for executing the program
JP2008217721A (en) Program profiling system, program profiling method, and program
JP5208594B2 (en) Switching device, switching program, and switching method
WO2023083367A1 (en) Method and apparatus for resuming loading of file in background, and storage medium and electronic device
JP6542865B2 (en) Interface aggregation device and interface management method
EP3872630B1 (en) Request processing method and apparatus, electronic device, and computer storage medium
CN110704760A (en) Data processing method and device
CN108874569A (en) The method, apparatus and electronic equipment of event response and file generated
JP2010041182A (en) Program moving control system and program moving control method
CN108520025B (en) Service node determination method, device, equipment and medium
CN111221651A (en) Load balancing configuration method and device, server and readable storage medium
KR100716169B1 (en) Apparatus and method for processing the message for network management system
JP2011118508A (en) Multiprocessor system and multiprocessor control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110510

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20110712

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120905

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120918

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121106

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121127

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130111

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130129

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130220

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20160301

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees