JP3735730B2 - Agent system and communication method - Google Patents

Agent system and communication method Download PDF

Info

Publication number
JP3735730B2
JP3735730B2 JP2004252528A JP2004252528A JP3735730B2 JP 3735730 B2 JP3735730 B2 JP 3735730B2 JP 2004252528 A JP2004252528 A JP 2004252528A JP 2004252528 A JP2004252528 A JP 2004252528A JP 3735730 B2 JP3735730 B2 JP 3735730B2
Authority
JP
Japan
Prior art keywords
agent
communication device
communication
memory area
route
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.)
Expired - Fee Related
Application number
JP2004252528A
Other languages
Japanese (ja)
Other versions
JP2005004793A (en
Inventor
弓束 重森
武史 長沼
晶 仲島
哲人 西山
Original Assignee
オムロンエンタテインメント株式会社
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 オムロンエンタテインメント株式会社 filed Critical オムロンエンタテインメント株式会社
Priority to JP2004252528A priority Critical patent/JP3735730B2/en
Publication of JP2005004793A publication Critical patent/JP2005004793A/en
Application granted granted Critical
Publication of JP3735730B2 publication Critical patent/JP3735730B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

本発明は、エージェントサーバから生成したエージェントを、通信回線を介して通信機器間を順次移動させるエージェントシステム及び通信方法に関する。   The present invention relates to an agent system and a communication method for sequentially moving an agent generated from an agent server between communication devices via a communication line.

近年、普及してきているエージェントシステムは、図14に示すように、エージェントサーバ50と、複数のパーソナルコンピュータ,ワークステーション等の通信機器60と、エージェントを生成するためのソースプログラムを記憶する記憶装置80とが有線回線90(図に示さないが無線回線でもよい)で接続され、各通信機器間を後述するエージェント70が移動するように構成されている。   As shown in FIG. 14, an agent system that has become popular in recent years includes an agent server 50, a plurality of communication devices 60 such as personal computers and workstations, and a storage device 80 that stores a source program for generating an agent. Are connected by a wired line 90 (which may be a wireless line (not shown)), and an agent 70 described later moves between the communication devices.

このエージェントシステムは、エージェントサーバ50が記憶装置80に記憶されているソースプログラムに基づき、オブジェクトコードからなるエージェント70を生成し、この生成したエージェント70を指定した通信機器60に送信し、その通信機器60のシステムエージェント601が受信したエージェント70を実行するようになっている。   In this agent system, the agent server 50 generates an agent 70 composed of an object code based on the source program stored in the storage device 80, transmits the generated agent 70 to the designated communication device 60, and the communication device The agent 70 received by the 60 system agents 601 is executed.

ところで、上述したエージェントシステムでは、エージェント70の移動方法として、(ア)エージェントに対しては目的地と目的処理とが与えられるが、目的地に至るまでの移動経路が与えられていない方法と、(イ)エージェントに対しては目的処理のみが与えられており、目的地、かつ、移動経路が与えられていない方法との2通りの方法が採用されている。   By the way, in the agent system described above, as a movement method of the agent 70, (a) a method in which a destination and a destination process are given to the agent, but a movement route to the destination is not given, (B) Only the target process is given to the agent, and two methods are adopted, that is, a method in which the destination and the movement route are not given.

以下、この2通りの方法についての動作を、図15および図16のフローチャートを参照して説明する。   Hereinafter, the operation of these two methods will be described with reference to the flowcharts of FIGS. 15 and 16.

(ア)エージェントに対して目的地と目的処理とが与えられる場合
エージェントサーバ50は、記憶装置80に記憶されている所定の目的処理を行うソースプログラムからオブジェクトコードを形成し、さらに、このオブジェクトに移動先を示す目的地を与えてエージェントを生成し(ステップ510)、このエージェント70を目的地に送信する。
(A) When destination and purpose processing are given to the agent The agent server 50 forms an object code from a source program for performing a predetermined purpose processing stored in the storage device 80, and further adds to this object An agent is generated by giving a destination indicating the destination (step 510), and the agent 70 is transmitted to the destination.

すると、送信されたエージェント70は、回線90を介して指定された目的地のノードを有する通信機器60に移動し(ステップ520)、この通信機器60に取り込まれ、通信機器60内のシステムエージェント601により、実行される。   Then, the transmitted agent 70 moves to the communication device 60 having the designated destination node via the line 90 (step 520), is taken into the communication device 60, and is a system agent 601 in the communication device 60. Is executed.

通信機器60内のシステムエージェント601は、エージェント70が有する目的処理が完了するか否かを判断しており(ステップ530)、目的処理が完了しないと判断した場合には(ステップ530;N)、生成元のエージェントサーバ50に戻る。   The system agent 601 in the communication device 60 determines whether or not the objective process of the agent 70 is completed (step 530). If it is determined that the objective process is not completed (step 530; N), The process returns to the generation agent server 50.

エージェント70が戻ってきたエージェントサーバ50は、目的地および目的処理を再設定し(ステップ550)、処理を520に戻し、上述した処理を続行する。   The agent server 50 to which the agent 70 has returned resets the destination and the target process (step 550), returns the process to 520, and continues the above-described process.

一方、システムエージェント601は、目的処理が完了したと判断した場合には(ステップ530;Y)、エージェント70をエージェントサーバ50に戻し(ステップ540)、処理を終了する。   On the other hand, when the system agent 601 determines that the target process has been completed (step 530; Y), it returns the agent 70 to the agent server 50 (step 540), and ends the process.

(イ)エージェントに対しては目的処理のみが与えられている場合
エージェントサーバ50のシステムエージェント601は、生成したエージェントに目的処理を与えたエージェントを生成し(ステップ610)、このエージェント70を回線90を介して移動させる(ステップ620)。
(A) When only the target processing is given to the agent The system agent 601 of the agent server 50 generates an agent that gives the target processing to the generated agent (step 610). (Step 620).

すると、エージェント70は、移動先の通信機器60に取り込まれ、通信機器60内のシステムエージェント601により目的処理の実行が開始される。   Then, the agent 70 is taken into the destination communication device 60 and execution of the target process is started by the system agent 601 in the communication device 60.

システムエージェント601は、移動先の通信機器60において、目的処理が完了するか否かを判断しており(ステップ630)、目的処理が完了しないと判断した場合には(ステップ630;NO)、ステップ620に戻り、次の移動先の通信機器60に移動し、上述したと同様な処理を続行する。   The system agent 601 determines whether or not the target process is completed in the destination communication device 60 (step 630), and if it is determined that the target process is not completed (step 630; NO), the step The process returns to 620, moves to the next destination communication device 60, and continues the same processing as described above.

一方、システムエージェント601は、目的処理が完了したと判断した場合には(ステップ630;Y)、エージェント70をエージェントサーバ50に戻し(ステップ640)、処理を終了する。   On the other hand, when the system agent 601 determines that the target process has been completed (step 630; Y), the system agent 601 returns the agent 70 to the agent server 50 (step 640) and ends the process.

上述したように、エージェントシステムでは、(ア)エージェントに対して目的地と目的処理とが与えられる方法の場合においても、また、(イ)エージェントに対しては目的処理のみが与えられている方法の場合においても、それぞれ以下のような問題点があった。   As described above, in the agent system, (a) in the case of a method in which a destination and a target process are given to the agent, and (b) a method in which only the target process is given to the agent. In each case, there were the following problems.

(1)(ア)エージェント70に対して目的地と目的処理とが与えられる方法の場合のエージェントシステムでは、目的処理を実行するに際して目的地が1対1で与えられるので、複数の所定の通信機器60のノードを経由するときには、それらのノードを指定する必要がある。   (1) (a) In the agent system in the case where the destination and the destination process are given to the agent 70, the destination is given on a one-to-one basis when executing the destination process. When passing through the nodes of the device 60, it is necessary to specify those nodes.

このため、目的処理が達成できなかった場合には、エージェントサーバ50がこれら複数の目的地を再度設定する必要があり、設定に要する時間が無駄であるという問題点があった。   For this reason, when the objective process cannot be achieved, the agent server 50 needs to set these plural destinations again, and there is a problem that the time required for the setting is wasted.

(2)(イ)エージェント70に対しては目的処理のみが与えられている方法の場合のエージェントシステムでは、任意の場所(ルールによって検索)に移動して目的処理を行うため、一度目的処理を与えると目的の再設定は不要であるが、経路を選択することができないので、シーケンシャルな処理、例えば、ファィヤーウォール上に形成されるアプリケーションゲートウエイにおいて、不正アクセスとみなされ、ファィヤーウォールから以下に接続する通信機器60のノードに移動する処理を実行することができないという問題点があった。   (2) (A) In the agent system in the case where only the target processing is given to the agent 70, the target processing is performed once by moving to an arbitrary place (search by rule). If it is given, it is not necessary to reconfigure the purpose, but the route cannot be selected. Therefore, in sequential processing, for example, an application gateway formed on the firewall, it is regarded as unauthorized access, and the firewall Therefore, there is a problem that it is not possible to execute the process of moving to the node of the communication device 60 connected to the following.

(3)(ア)エージェントに対して目的地と目的処理とが与えられる方法の場合のエージェントシステム、および(イ)エージェントに対しては目的処理のみが与えられている方法の場合のエージェントシステムは、エージェント70が移動する際には、移動先の通信機器60の資源状態、例えばメモリの空き領域を知らずに移動するため、仮に、移動先の通信機器60の資源を使用できない場合、例えばメモリにエージェント70を格納する空き領域が無い場合には、その通信機器60にエージェント70が生成されず、エージェントサーバ50に所定時間内にエージェント70が戻ってこず、エージェントサーバ50がエラー処理を実行せざるを得ないという問題点があった。   (3) (a) An agent system in a method in which a destination and a target process are given to an agent, and (b) an agent system in a method in which only a target process is given to an agent When the agent 70 moves, it moves without knowing the resource state of the destination communication device 60, for example, the free area of the memory, and if the resource of the destination communication device 60 cannot be used, for example, in the memory If there is no free space for storing the agent 70, the agent 70 is not generated in the communication device 60, the agent 70 does not return to the agent server 50 within a predetermined time, and the agent server 50 does not execute error processing. There was a problem of not getting.

(4)通信機器60が実行する処理コードには、現在、通常のMPUが実行するネイティブコードと、JAVA(登録商標)等で代表される仮想マシン上で実行させるバイトコードとがある。   (4) Processing codes executed by the communication device 60 include native code currently executed by a normal MPU and bytecode executed on a virtual machine represented by JAVA (registered trademark) or the like.

従って、エージェントサーバ50および通信機器60に有するシステムエージェント601が同一な処理コードを実行する処理系で構成されているエージェントシステム間では、図17に示すように、移動してきたエージェント70を移動先のシステムエージェント601を実行することができるが、異なる処理コードを実行する処理系で構成されているエージェントシステム間では、実行することができないという問題点があった。   Therefore, between the agent systems that are configured by processing systems in which the system agent 601 included in the agent server 50 and the communication device 60 executes the same processing code, as shown in FIG. Although the system agent 601 can be executed, there is a problem in that it cannot be executed between agent systems configured by processing systems that execute different processing codes.

なお、異なる処理コードを実行する処理系で構成されているエージェントシステム間で実行する場合には、JAVA(登録商標) Virtual Machineのような仮想プロセッサを有する通信機器60を使用しなければならない。   Note that in the case of execution between agent systems configured with processing systems that execute different processing codes, a communication device 60 having a virtual processor such as JAVA (registered trademark) Virtual Machine must be used.

そこで、本発明は上述した問題点に鑑み、目的地を再度設定する必要をなくし、設定に要する無駄な時間を省くエージェントシステムを提供することを第1の目的とする。   Therefore, in view of the above-described problems, the first object of the present invention is to provide an agent system that eliminates the need to set a destination again and saves unnecessary time for setting.

また、本発明は、エージェントがあるノードを経由しなくても他のノードにたどり着けるエージェントシステムを提供することを第2の目的とする。   In addition, a second object of the present invention is to provide an agent system that allows an agent to reach another node without going through a node.

さらに、本発明は、エージェントが移動する際には、移動先の通信機器の資源状態をチェックしてエラー処理を回避するエージェントシステムを提供することを第3の目的とする。   Furthermore, a third object of the present invention is to provide an agent system that, when an agent moves, checks the resource state of a destination communication device and avoids error processing.

さらにまた、本発明は、異なる処理系で構成されているエージェントシステム間においても実行し得るエージェントシステムを提供することを第4の目的とする。   Furthermore, a fourth object of the present invention is to provide an agent system that can be executed between agent systems configured by different processing systems.

上述した目的を達成するために、請求項1記載の発明は、エージェントサーバと複数の通信機器とが有線回線または無線回線の通信回線で接続されており、前記エージェントサーバから生成した移動経路情報を有するエージェントを、前記通信回線を介して前記移動経路情報に基づき前記通信機器間を移動させるエージェントシステムであって、前記通信機器は、先に受信してメモリ領域に記憶されているエージェントの移動経路情報を、必要に応じて変更して、所定の移動経路情報を有するエージェントに復元し、この復元したエージェントを送信するエージェント復元送信手段と、前記移動経路情報に基づき、送信を予定している通信機器に対し、予め、送信を予定しているエージェントを記憶させるメモリ領域を予約するメモリ領域予約手段と、前記移動経路情報に基づき、前記エージェントを次の通信機器に送信するに際し、その送信先の通信機器が仮に異なる処理コードを実行する通信機器であっても、処理可能な中間コードに前記エージェントを変換し、これを送信する中間コード変換送信手段と、を具備し、前記エージェントは、前記移動経路情報とともに、通過した通信機器のノード番号の履歴を経路収集情報として有しており、前記エージェント復元送信手段は、他の通信機器にエージェントを送信するに際し、自己のノード番号を前記経路収集情報に追加登録したエージェントを復元して送信するとともに、前記エージェントサーバは、互いに相違する移動経路の途中の通信機器のノード番号と互いに一致する最終目的地の通信機器のノード番号とが登録された移動経路情報を各々が一つずつ有する複数のエージェントを同時に通信機器に送信し、帰還したエージェント中の前記経路収集情報を読み出す一方、前記最終目的地の通信機器は、前記エージェントサーバから送信された複数のエージェントのうち、自身に最も早く到達したエージェントのみを前記エージェントサーバに帰還させることを特徴とする。
In order to achieve the above-described object, the invention according to claim 1 is characterized in that the agent server and a plurality of communication devices are connected by a communication line of a wired line or a wireless line, and movement route information generated from the agent server. An agent system that moves between the communication devices via the communication line based on the movement route information, the communication device moving the agent previously received and stored in the memory area The route information is changed as necessary, restored to an agent having predetermined travel route information, and agent restoration transmission means for transmitting the restored agent, and transmission is scheduled based on the travel route information. A memory area for reserving a memory area for storing agents scheduled to be transmitted to communication devices in advance When the agent is transmitted to the next communication device based on the means and the movement route information, even if the communication device of the transmission destination is a communication device that executes a different processing code, the intermediate code that can be processed Intermediate code conversion transmission means for converting the agent and transmitting the agent, the agent has a history of the node number of the communication device passed as route collection information together with the movement route information, The agent restoration transmitting means restores and transmits an agent in which its node number is additionally registered in the route collection information when transmitting an agent to another communication device, and the agent server has different moving routes. The node number of the communication device in the middle of the process and the node number of the communication device at the final destination that match each other are registered. A plurality of agents each having one of the travel route information transmitted to the communication device at the same time, and the route collection information in the returned agent is read, while the communication device at the final destination is transmitted from the agent server. Of the plurality of agents, only the agent that has reached the earliest is returned to the agent server .

請求項2記載の発明は、請求項1に記載の発明において、前記通信機器は、エージェントが移動してくる際に予め、このエージェントを記憶するメモリ領域を確保し、また、このエージェントを送信したのち前記メモリ領域から前記エージェントをクリアして開放するメモリ領域予約開放手段を具備することを特徴とする。
According to a second aspect of the present invention, in the first aspect of the present invention, when the agent moves, the communication device secures a memory area for storing the agent in advance and transmits the agent. After that, there is provided memory area reservation releasing means for clearing and releasing the agent from the memory area.

請求項3に記載の発明は、請求項1または2に記載の発明において、前記メモリ領域予約手段は、先に受信したエージェントの処理の進捗具合を検知するエージェント処理進捗検知手段、を有しており、このエージェント処理進捗検知手段により、前記先に受信したエージェントが所定箇所を実行したと検知されると、送信を予定している通信機器に対し、メモリ領域を予約することを特徴とする。
According to a third aspect of the present invention, in the first or second aspect of the present invention, the memory area reservation unit includes an agent process progress detection unit that detects a progress of the process of the agent received earlier. When the agent processing progress detection means detects that the previously received agent has executed a predetermined location, it reserves a memory area for the communication device scheduled to transmit.

請求項4に記載の発明は、エージェントサーバと複数の通信機器とが有線回線または無線回線の通信回線で接続されており、前記エージェントサーバから生成した移動経路情報を有するエージェントを、前記通信回線を介して前記移動経路情報に基づき前記通信機器間を移動させる通信方法であって、前記通信機器により、先に受信してメモリ領域に記憶されているエージェントの移動経路情報を、必要に応じて変更して、所定の移動経路情報を有するエージェントに復元し、前記移動経路情報に基づき、送信を予定している通信機器に対し、予め、送信を予定しているエージェントを記憶させるメモリ領域を予約し、前記移動経路情報に基づき、前記エージェントを次の通信機器に送信するに際し、その送信先の通信機器が仮に異なる処理コードを実行する通信機器であっても、処理可能な中間コードに前記エージェントを変換し、これを送信するとともに、前記エージェントは、前記移動経路情報とともに、通過した通信機器のノード番号の履歴を経路収集情報として有しており、前記通信機器により、他の通信機器にエージェントを送信するに際し、自己のノード番号を前記経路収集情報に追加登録したエージェントを復元して送信するとともに、前記エージェントサーバにより、互いに相違する移動経路の途中の通信機器のノード番号と互いに一致する最終目的地の通信機器のノード番号とが登録された移動経路情報を各々が一つずつ有する複数のエージェントを同時に通信機器に送信し、帰還したエージェント中の前記経路収集情報を読み出す一方、前記最終目的地の通信機器により、前記エージェントサーバから送信された複数のエージェントのうち、自身に最も早く到達したエージェントのみを前記エージェントサーバに帰還させることを特徴とする。
According to a fourth aspect of the present invention, an agent server and a plurality of communication devices are connected by a communication line of a wired line or a wireless line, and an agent having movement path information generated from the agent server is connected to the communication line. A communication method for moving between the communication devices based on the movement route information via the communication device, wherein the communication device changes the agent movement route information previously received and stored in the memory area as necessary. Then, based on the movement route information, a memory area for storing the agent scheduled for transmission is reserved in advance for the communication device scheduled for transmission based on the movement route information. When the agent is transmitted to the next communication device on the basis of the movement route information, the transmission destination communication device is temporarily different. Be a communication device that performs the over-de, converting the agent can be processed intermediate code, and transmits this, the agent, together with the travel route information, a history of the node number of the communication device that has passed through When the agent is transmitted to the other communication device by the communication device, the agent additionally registering its node number in the route collection information is restored and transmitted, and the agent server Thus, the communication device simultaneously has a plurality of agents each having one piece of movement path information in which the node number of the communication device in the middle of the different movement route and the node number of the communication device of the final destination that match each other are registered. The route collection information in the returned agent is read out while the final destination is communicated. Device via the one of the plurality of agents sent from the agent server, and wherein the feeding back only the agent who earliest reach itself to the agent server.

請求項5に記載の発明は、請求項4に記載の発明において、前記通信機器により、エージェントが移動してくる際に予め、このエージェントを記憶するメモリ領域を確保し、また、このエージェントを送信したのち前記メモリ領域から前記エージェントをクリアして開放することを特徴とする。
According to a fifth aspect of the present invention, in the invention of the fourth aspect, when the agent moves, the communication device secures a memory area for storing the agent in advance and transmits the agent. After that, the agent is cleared and released from the memory area.

本発明では、通信機器が、先に受信したエージェントから、必要に応じて移動経路情報を変更したエージェントを復元するため、目的地を再度設定する必要がなくなる。   In the present invention, since the communication device restores the agent whose movement route information has been changed as necessary from the agent received earlier, it is not necessary to set the destination again.

また、通信機器が、復元したエージェントの送信を予定している通信機器に対して、この復元したエージェントを記憶するメモリ領域を予約するため、復元したエージェントを確実に送信先に送ることができる。   In addition, since the communication device reserves a memory area for storing the restored agent for the communication device scheduled to transmit the restored agent, the restored agent can be reliably sent to the transmission destination.

さらに、この異なる処理系の通信機器がともに処理できる中間コードに変換して送信するため、異なる処理系で構成された通信機器間にエージェントを送信することができる。   Furthermore, since the communication device of the different processing system is converted into an intermediate code that can be processed together, the agent can be transmitted between the communication devices configured in different processing systems.

また、本発明では、他の通信機器にエージェントを送信するに際してエージェントを復元するに際し、復元したエージェントに経路収集情報を有しているため、エージェントサーバから目的地の通信機器に到達するまでの経路収集情報を得ることができる。   Further, in the present invention, when restoring an agent when transmitting the agent to another communication device, the restored agent has route collection information, so the route from the agent server to the destination communication device Collected information can be obtained.

従って、エージェントサーバから複数のエージェントを同時に目的地に送信することで、最も短時間に目的地に到達したエージェントの経路収集情報を調べることができる。   Therefore, by transmitting a plurality of agents from the agent server to the destination at the same time, it is possible to check the route collection information of the agent that has reached the destination in the shortest time.

以上本発明によれば、通信機器が、先に受信したエージェントから、必要に応じて移動経路情報を変更したエージェントを復元することにより、目的地を再度設定する必要性がなくなるため、再設定に要する無駄な時間を省くことがで、応答性を高くすることができる。   As described above, according to the present invention, it is not necessary to set the destination again by restoring the agent whose movement route information has been changed as necessary from the agent that has been received earlier. Responsiveness can be improved by eliminating unnecessary time.

また、通信機器が、復元したエージェントの送信を予定している通信機器に対して、この復元したエージェントを記憶するメモリ領域を予約するため、確実に復元したエージェントを送信先に送ることができる。   In addition, since the communication device reserves a memory area for storing the restored agent for the communication device scheduled to transmit the restored agent, the restored agent can be reliably sent to the transmission destination.

さらに、この異なる処理系の通信機器がともに処理できる中間コードに変換して送信するため、異なる処理系で構成された通信機器においてのエージェントを送信することができる。   Furthermore, since the communication device of the different processing system is converted into an intermediate code that can be processed and transmitted, the agent in the communication device configured in the different processing system can be transmitted.

さらにまた、他の通信機器にエージェントを送信するに際してエージェントを復元するに際し、復元したエージェントに経路収集情報を有しているため、エージェントサーバにおいて生成されたエージェントが目的地の通信機器に到達するまでの経路収集情報を得ることができる。   Furthermore, when the agent is restored when sending the agent to another communication device, the restored agent has route collection information, so that the agent generated in the agent server reaches the destination communication device. Route collection information can be obtained.

従って、エージェントサーバから複数のエージェントを同時に目的地に送信すると、最も短時間に目的地に到達したエージェントの経路収集情報を調べることができ、以後、この経路収集情報に基づき経路設定を行えば、応答性を高くすることができる。   Therefore, if a plurality of agents are simultaneously transmitted from the agent server to the destination, the route collection information of the agent that has reached the destination in the shortest time can be checked. Thereafter, if route setting is performed based on this route collection information, Responsiveness can be increased.

以下、本発明に係るエージェントシステム及び通信方法の実施形態を図面に基づき説明する。   Embodiments of an agent system and a communication method according to the present invention will be described below with reference to the drawings.

<第1実施形態>
図1は本発明に係るエージェントシステムの第1実施形態の構成を示すブロック図である。
<First Embodiment>
FIG. 1 is a block diagram showing the configuration of the first embodiment of the agent system according to the present invention.

この実施形態のエージェントシステムは、図1に示すように、エージェントサーバ1と、複数のパーソナルコンピュータ,ワークステーション等の通信機器2と、モバイルエージェントを生成するためのソースプログラムを記憶する記憶装置3とが有線回線または無線回線でなる通信回線4で接続されて構成されている。   As shown in FIG. 1, the agent system of this embodiment includes an agent server 1, a communication device 2 such as a plurality of personal computers and workstations, and a storage device 3 for storing a source program for generating a mobile agent. Are connected by a communication line 4 comprising a wired line or a wireless line.

そして、エージェントサーバ1は、記憶装置3に記憶されているソースプログラムを読み出してオブジェクトコードからなるエージェント10(このエージェント10は、後述するように、通信機器2間を順次移動するものであるため、以下、モバイルエージェントという)を生成するようになっている。   Then, the agent server 1 reads the source program stored in the storage device 3 and an agent 10 made up of an object code (this agent 10 moves sequentially between the communication devices 2 as will be described later. (Hereinafter referred to as mobile agent).

(1)エージェントサーバの構成について説明する。   (1) The configuration of the agent server will be described.

上述したエージェントサーバ1は、図2に示すように、システムエージェント20を有しており、このシステムエージェント20にはエージェント生成部201,フラグ格納部202,MPUコード変換部203,中間コード変換部204,資源管理部205およびエージェント間通信部206から構成されている。   The agent server 1 described above has a system agent 20 as shown in FIG. 2. The system agent 20 includes an agent generation unit 201, a flag storage unit 202, an MPU code conversion unit 203, and an intermediate code conversion unit 204. , A resource management unit 205 and an inter-agent communication unit 206.

エージェント生成部201は、制御部(図示せず)から所定のエージェントを作成するように指示を受けると(図2中の(1)参照)、フラグ格納部202に“ON”(=1)のフラグをセットさせ、資源をロックするとともに(図2中の(2)参照)、記憶装置3に記憶されている所定のソースプログラムを読み出してオブジェクトを形成し、さらに、このオブジェクトの送信先を示す後述する経路リスト101を設けたモバイルエージェント10を生成し、これをメモリ領域に記憶するようになっている。   When the agent generation unit 201 receives an instruction from the control unit (not shown) to create a predetermined agent (see (1) in FIG. 2), the flag storage unit 202 sets “ON” (= 1). The flag is set, the resource is locked (see (2) in FIG. 2), a predetermined source program stored in the storage device 3 is read to form an object, and the transmission destination of this object is indicated. A mobile agent 10 having a route list 101 to be described later is generated and stored in a memory area.

なお、エージェント生成部201は、すでにメモリ領域内に該当するモバイルエージェント10が記憶されている場合には、改めて、ソースプログラムからモバイルエージェント10を生成する必要がないことはいうまでもない。   Needless to say, the agent generation unit 201 does not need to generate the mobile agent 10 from the source program again when the corresponding mobile agent 10 is already stored in the memory area.

また、エージェント生成部201は、生成したモバイルエージェント10の送信先である通信機器2に対して、送信予約を入れるように資源管理部205に指示するようになっている(図2中の(3)参照)。   The agent generation unit 201 instructs the resource management unit 205 to make a transmission reservation for the communication device 2 that is the transmission destination of the generated mobile agent 10 ((3 in FIG. 2). )reference).

さらに、エージェント生成部201は、送信先の通信機器2に対して送信予約を入れた旨の通知を資源管理部205から受けると(図2中の(7)参照)、先に生成してメモリ領域に記憶されているエージェント10を読み出し(図2中の(8)参照)、これをMPUコード変換部203に出力するようになっている(図2中の(9)参照)。   Further, upon receiving a notification from the resource management unit 205 (see (7) in FIG. 2) that the agent generation unit 201 has made a transmission reservation for the communication device 2 of the transmission destination (see (7) in FIG. 2), the agent generation unit 201 generates the memory first. The agent 10 stored in the area is read (see (8) in FIG. 2), and is output to the MPU code converter 203 (see (9) in FIG. 2).

さらに、エージェント生成部201は、モバイルエージェント10を送信先の通信機器2に送信し終わると、フラグ格納部202に“OFF”(=0)のフラグをセットさせ、資源を開放するようになっている(図2中のh参照)。   Furthermore, when the agent generation unit 201 finishes transmitting the mobile agent 10 to the communication device 2 as the transmission destination, the flag generation unit 201 sets a flag of “OFF” (= 0) to release the resource. (See h in FIG. 2).

さらに、エージェント生成部201は、通信機器2から受信したMPUコードに変換されたモバイルエージェント10をMPUコード変換部203から受けると(図2中のf参照)、元のモバイルエージェントに変換してメモリ領域に記憶するようになっている(図2中のg参照)。   Further, when the agent generation unit 201 receives the mobile agent 10 converted into the MPU code received from the communication device 2 from the MPU code conversion unit 203 (see f in FIG. 2), the agent generation unit 201 converts the mobile agent 10 into the original mobile agent and stores the memory. This is stored in the area (see g in FIG. 2).

フラグ格納部202は、自己の資源の使用を他のシステムエージェント20に許可するか否かを示すフラグを格納するものである。   The flag storage unit 202 stores a flag indicating whether or not other system agents 20 are permitted to use their own resources.

格納されているフラグがON(=1)の場合には、自己の資源が他のシステムエージェント20から使用できない状態になり、一方、格納されているフラグがOFF(=0)の場合には、自己の資源が他のシステムエージェント20から使用可能な状態になる。   When the stored flag is ON (= 1), the self resource cannot be used by another system agent 20, while when the stored flag is OFF (= 0), The self resource becomes available from other system agents 20.

MPUコード変換部203は、エージェント生成部201からモバイルエージェント10を受けると(図2中の(9)参照)、受けたモバイルエージェント10をMPUコードに変換し、このMPUコードに変換したモバイルエージェント10を中間コード変換部204に出力するようになっている(図2中のa参照)。   When the MPU code conversion unit 203 receives the mobile agent 10 from the agent generation unit 201 (see (9) in FIG. 2), the MPU code conversion unit 203 converts the received mobile agent 10 into an MPU code and converts the mobile agent 10 into the MPU code. Is output to the intermediate code conversion unit 204 (see a in FIG. 2).

また、MPUコード変換部203は、通信機器2から戻ってきた中間コードに変換されたモバイルエージェント10を中間コード変換部204から受けると(図2中のe参照)、中間コードのモバイルエージェント10をMPUコードのモバイルエージェント10に変換し、これをエージェント生成部201に出力するようになっている(図2中のf参照)。   Further, when the MPU code conversion unit 203 receives the mobile agent 10 converted into the intermediate code returned from the communication device 2 from the intermediate code conversion unit 204 (see e in FIG. 2), the MPU code conversion unit 203 receives the mobile agent 10 of the intermediate code. The mobile agent 10 is converted to the MPU code and is output to the agent generation unit 201 (see f in FIG. 2).

中間コード変換部204は、MPUコード変換部203から受けたMPUコードに変換されたモバイルエージェント10を中間コードに変換し送信先の通信機器2に送信するようになっている(図2中のb,c参照)。   The intermediate code conversion unit 204 converts the mobile agent 10 converted into the MPU code received from the MPU code conversion unit 203 into an intermediate code and transmits it to the destination communication device 2 (b in FIG. 2). , C).

また、中間コード変換部204は、通信機器2から送信されてきた中間コードからなるモバイルエージェント10を受信すると(図2中のd参照)、これをMPUコード変換部203に出力するようになっている(図2中のe参照)。   Further, when the intermediate code conversion unit 204 receives the mobile agent 10 including the intermediate code transmitted from the communication device 2 (see d in FIG. 2), the intermediate code conversion unit 204 outputs the mobile agent 10 to the MPU code conversion unit 203. (See e in FIG. 2).

ここで、MPUコードとは、処理コードとして通常のMPUが実行するネイテイブコードであり、中間コードとは、処理コードとしてネイティブコードを使用する通常のMPU(図示せず)を有する通信機器2でも、また、処理コードとしてバイトコード(共通コード)を使用するJAVA(登録商標) Virtual Machineのような通信機器2でも実行できるコードである。   Here, the MPU code is a native code executed by a normal MPU as a processing code, and the intermediate code is a communication device 2 having a normal MPU (not shown) that uses a native code as a processing code. The code can also be executed by the communication device 2 such as JAVA (registered trademark) Virtual Machine that uses a byte code (common code) as a processing code.

資源管理部205は、エージェント生成部201の指示のもと(図2中の(3)参照)、モバイルエージェント10の送信先の通信機器2に対して資源状態を問い合わせ、資源が空きの状態であるときには、資源予約を入れ(図2中の(4),(5),(6)参照)、資源予約を入れた旨をエージェント生成部201に出力するようになっている(図2中の(7)参照)。   Under the instruction of the agent generation unit 201 (see (3) in FIG. 2), the resource management unit 205 inquires the resource state of the communication device 2 that is the transmission destination of the mobile agent 10 and the resource is in an empty state. In some cases, resource reservation is entered (see (4), (5), (6) in FIG. 2), and the fact that the resource reservation has been entered is output to the agent generation unit 201 (in FIG. 2). (Refer to (7)).

エージェント間通信部206は、通信機器2のシステムエージェント20に対して、通信機器2の資源の空き状態を問い合わせるようになっている(図2中のb参照)。   The inter-agent communication unit 206 inquires of the system agent 20 of the communication device 2 about the availability of resources of the communication device 2 (see b in FIG. 2).

ここで、エージェントサーバ1により生成されるモバイルエージェント10について説明する。   Here, the mobile agent 10 generated by the agent server 1 will be described.

このモバイルエージェント10は、上述したように、通信機器2に所定の目的とする処理(以下、目的処理という)を実行させるためのオブジェクトコードを有しているのみならず、図3に示すように、必ず通過し、その箇所でモバイルエージェントが処理を実行しなければならない通信機器2のノード番号を有する移動経路情報と、その通過し得る回数を示す許可回数とを備える経路リスト101を有するようになっている。   As described above, the mobile agent 10 not only has an object code for causing the communication device 2 to execute a predetermined target process (hereinafter referred to as a target process), but as shown in FIG. The route list 101 includes the movement route information having the node number of the communication device 2 that must be passed and the mobile agent must execute the process at that point, and the permitted number of times indicating the number of times it can pass. It has become.

図4は図3に示した経路リスト101を有するモバイルエージェントの移動経路の一例である。   FIG. 4 shows an example of the movement route of the mobile agent having the route list 101 shown in FIG.

この例では、モバイルエージェント10は、最初、ノード番号が6である通信機器2で実行され、次に、ノード番号が2である通信機器2で実行され、次に、ノード番号が4である通信機器2で実行され、続いて、ノード番号が5である通信機器2で実行され、その後、ノード番号が3である通信機器2で実行され、次に、ノード番号が1である通信機器2で実行され、最後に、ノード番号が3である通信機器2で実行されることを示している。   In this example, the mobile agent 10 is first executed by the communication device 2 whose node number is 6, and then executed by the communication device 2 whose node number is 2, and then the communication whose node number is 4. This is executed by the device 2 and subsequently executed by the communication device 2 having the node number of 5, and then executed by the communication device 2 having the node number of 3, and then by the communication device 2 having the node number of 1. This is executed, and finally, it is executed by the communication device 2 whose node number is 3.

(2)通信機器の構成について説明する。   (2) The configuration of the communication device will be described.

なお、通信機器2は、上述したエージェントサーバ1と同一な構成をなしているものも多いが、再び説明する。   Although many communication devices 2 have the same configuration as the agent server 1 described above, a description will be given again.

上述した通信機器2は、図5に示すように、システムエージェント20を有しており、このシステムエージェント20にはエージェント復元部201,フラグ格納部202,MPUコード変換部203,中間コード変換部204,資源管理部205およびエージェント間通信部206から構成されている。   As shown in FIG. 5, the communication device 2 described above has a system agent 20, which includes an agent restoration unit 201, a flag storage unit 202, an MPU code conversion unit 203, and an intermediate code conversion unit 204. , A resource management unit 205 and an inter-agent communication unit 206.

エージェント復元部201は、制御部から所定のエージェントを復元するように復元指示を受けると(図5中の(1)参照)、フラグ格納部202に“ON”(=1)のフラグをセットさせ、資源をロックするとともに(図5中の(2)参照)、メモリ領域に記憶されている、先に受信したモバイルエージェント10を読み出し、所定の経路リストを有するモバイルエージェントを形成し、これをメモリ領域に記憶し、加えて、先に受信したモバイルエージェント10の処理状況を監視させる指示を出力するようになっている(図5中の(3)参照)。   When receiving a restoration instruction from the control unit so as to restore a predetermined agent (see (1) in FIG. 5), the agent restoration unit 201 sets a flag “ON” (= 1) in the flag storage unit 202. The resource is locked (see (2) in FIG. 5), and the previously received mobile agent 10 stored in the memory area is read out to form a mobile agent having a predetermined route list and stored in the memory. In addition, an instruction for monitoring the processing status of the mobile agent 10 received earlier is output (see (3) in FIG. 5).

また、エージェント復元部201は、送信先の通信機器2に対して資源予約を入れた旨の通知を資源管理部205から受けると(図5中の(8)参照)、先に生成してメモリ領域に記憶されているエージェント10を読み出し(図5中の(9)参照)、これをMPUコード変換部203に出力するようになっている(図5中のa参照)。   Further, when the agent restoration unit 201 receives a notification from the resource management unit 205 that the resource reservation has been made for the communication device 2 as the transmission destination (see (8) in FIG. 5), the agent restoration unit 201 generates the memory first. The agent 10 stored in the area is read (see (9) in FIG. 5), and is output to the MPU code conversion unit 203 (see a in FIG. 5).

さらに、エージェント復元部201は、モバイルエージェント10を送信先の通信機器2に送信し終わると、フラグ格納部202に“OFF”(=0)のフラグをセットさせ、資源を開放するようになっている(図5中のi参照)。   Further, when the agent restoration unit 201 finishes transmitting the mobile agent 10 to the destination communication device 2, the agent storage unit 201 sets a flag of “OFF” (= 0) in the flag storage unit 202 to release resources. (See i in FIG. 5).

さらに、エージェント復元部201は、通信機器2から受信したMPUコードに変換されたモバイルエージェント10をMPUコード変換部203から受けると(図5中のg参照)、元のモバイルエージェントに変換してメモリ領域に記憶するようになっている(図5中のh参照)。   Further, upon receiving the mobile agent 10 converted into the MPU code received from the communication device 2 from the MPU code conversion unit 203 (see g in FIG. 5), the agent restoration unit 201 converts the mobile agent 10 into the original mobile agent and stores the memory. This is stored in the area (see h in FIG. 5).

フラグ格納部202は、自己の資源の使用を他のシステムエージェント20に許可するか否かを示すフラグを格納するものである。   The flag storage unit 202 stores a flag indicating whether or not other system agents 20 are permitted to use their own resources.

格納されているフラグがON(=1)の場合には、自己の資源が他のシステムエージェント20から使用できない状態になり、一方、格納されているフラグがOFF(=0)の場合には、自己の資源が他のシステムエージェント20から使用可能な状態になる。   When the stored flag is ON (= 1), the self resource cannot be used by another system agent 20, while when the stored flag is OFF (= 0), The self resource becomes available from other system agents 20.

MPUコード変換部203は、エージェント復元部201からモバイルエージェント10を受けると(図5中のa参照)、受けたモバイルエージェント10をMPUコードに変換し、このMPUコードに変換したモバイルエージェント10を中間コード変換部204に出力するようになっている(図5中のb参照)。   When the MPU code conversion unit 203 receives the mobile agent 10 from the agent restoration unit 201 (see a in FIG. 5), the MPU code conversion unit 203 converts the received mobile agent 10 into an MPU code, and converts the mobile agent 10 converted into the MPU code into an intermediate The data is output to the code conversion unit 204 (see b in FIG. 5).

また、MPUコード変換部203は、通信機器2から戻ってきた中間コードに変換されたモバイルエージェント10を中間コード変換部204から受けると(図5中のf参照)、中間コードのモバイルエージェント10をMPUコードのモバイルエージェント10に変換し、これをエージェント復元部201に出力するようになっている(図5中のg参照)。   Further, when the MPU code conversion unit 203 receives the mobile agent 10 converted into the intermediate code returned from the communication device 2 from the intermediate code conversion unit 204 (see f in FIG. 5), the MPU code conversion unit 203 receives the mobile agent 10 of the intermediate code. The mobile agent 10 is converted to an MPU code and is output to the agent restoration unit 201 (see g in FIG. 5).

中間コード変換部204は、MPUコード変換部203から受けたMPUコードに変換されたモバイルエージェント10を中間コードに変換し、送信先の通信機器2に送信するようになっている(図5中のc,d参照)。   The intermediate code conversion unit 204 converts the mobile agent 10 converted into the MPU code received from the MPU code conversion unit 203 into an intermediate code, and transmits the intermediate code to the destination communication device 2 (in FIG. 5). c, d).

また、中間コード変換部204は、通信機器2から送信されてきた中間コードからなるモバイルエージェント10を受信すると(図5中のe参照)、これをMPUコード変換部203に出力するようになっている(図5中のf参照)。   Further, when the intermediate code conversion unit 204 receives the mobile agent 10 including the intermediate code transmitted from the communication device 2 (see e in FIG. 5), the intermediate code conversion unit 204 outputs the mobile agent 10 to the MPU code conversion unit 203. (See f in FIG. 5).

資源管理部205は、エージェント復元部201にモバイルエージェントの復元指示が入力されたのち、先に受信したモバイルエージェント10の処理状況を監視しており(図5中の(4)参照)、先に受信したモバイルエージェント10が所定箇所の処理を実行すると、エージェント間通信部206を介して、生成したモバイルエージェント10の送信先の通信機器2に対して資源状態を問い合わせ、資源が空きの状態であるときには、資源予約を入れ(図5中の(5),(6),(7)参照)、その旨をエージェント復元部201に出力するようになっている(図5中の(8)参照)。   After the mobile agent restoration instruction is input to the agent restoration unit 201, the resource management unit 205 monitors the processing status of the mobile agent 10 received first (see (4) in FIG. 5). When the received mobile agent 10 executes processing at a predetermined location, the resource state is inquired to the communication device 2 that is the transmission destination of the generated mobile agent 10 via the inter-agent communication unit 206, and the resource is in an empty state. Sometimes, a resource reservation is entered (see (5), (6), (7) in FIG. 5), and a message to that effect is output to the agent restoration unit 201 (see (8) in FIG. 5). .

エージェント間通信部206は、送信先の通信機器2のシステムエージェント20に対して、通信機器2の資源の空き状態を問い合わせるようになっている(図5中の(6)参照)。   The inter-agent communication unit 206 inquires of the system agent 20 of the destination communication device 2 about the availability of resources of the communication device 2 (see (6) in FIG. 5).

ここで、エージェントサーバ1により生成されるモバイルエージェント10について説明する。   Here, the mobile agent 10 generated by the agent server 1 will be described.

このモバイルエージェント10は、上述したように、通信機器2に所定の目的とする処理(以下、目的処理という)を実行させるためのオブジェクトコードを有しているのみならず、図3に示すように、必ず通過し、その箇所で必ず実行しなければならない通信機器2のノード番号を有する移動経路情報と、その通過し得る回数を示す許可回数とを備える経路リスト101を有するようになっている。   As described above, the mobile agent 10 not only has an object code for causing the communication device 2 to execute a predetermined target process (hereinafter referred to as a target process), but as shown in FIG. The route list 101 includes movement route information having a node number of the communication device 2 that must be passed and must be executed at that location, and a permitted number of times that can be passed.

ここで、上述したエージェント復元部201のモバイルエージェントの復元内容を詳細に説明する。   Here, the restoration contents of the mobile agent of the agent restoration unit 201 described above will be described in detail.

エージェント復元部201は、先に受信したモバイルエージェント10の送信元のノードが経路リスト101に有する場合には、中間コード変換部204から受けた中間コードに、先に受信したノードの箇所の許可回数から1引いた許可回数を有する経路リスト101を付加したモバイルエージェント10を復元するようになっている。   When the node that is the transmission source of the mobile agent 10 that has been received first has in the route list 101, the agent restoration unit 201 adds the number of permitted times of the node received earlier to the intermediate code received from the intermediate code conversion unit 204. The mobile agent 10 to which the route list 101 having the permitted number of times subtracted from 1 is added is restored.

従って、エージェント復元部201は、図6中のAのノード4の箇所が示すように、受信した際の許可回数が1のモバイルエージェント10については、もはやそのノードに移動する必要がないので、再びモバイルエージェント10を復元する際には、その情報が不要であり、この情報を削除するようになっている。   Therefore, as indicated by the location of the node 4 in FIG. 6A, the agent restoration unit 201 does not need to move to the node for the mobile agent 10 having the permitted number of times of reception once again. When the mobile agent 10 is restored, the information is unnecessary, and this information is deleted.

また、エージェント復元部201は、経路リスト101にないノードを移動させる復元指示を受けた場合には、中間コード変換部204から受けた中間コードの経路リスト101に、新たに移動させるノード名とその許可回数と追加した経路リスト101を有するモバイルエージェント10を復元するようになっている。   Further, when the agent restoration unit 201 receives a restoration instruction to move a node that is not in the route list 101, the agent restoration unit 201 newly moves the node name to the intermediate code route list 101 received from the intermediate code conversion unit 204 and its name. The mobile agent 10 having the permitted number of times and the added route list 101 is restored.

因みに、図7(a)に示した例では、エージェント復元部201は、以前から有している移動経路としてのノード1,ノード2およびノード3に、新たに許可回数1を有するノード4を追加した経路リスト101を有するモバイルエージェント10を復元している。   Incidentally, in the example shown in FIG. 7A, the agent restoration unit 201 newly adds the node 4 having the permitted number of times 1 to the node 1, the node 2 and the node 3 as the movement route that has been previously provided. The mobile agent 10 having the route list 101 is restored.

さらに、エージェント復元部201は、経路リスト101にはあるがその該当ノードの許可回数を変更させる復元指示を受けた場合には、中間コード変換部204から受けた中間コードの経路リスト101の該当箇所の許可回数を指示された回数に変更した経路リスト101を有するモバイルエージェント10を復元するようになっている。   Further, when the agent restoration unit 201 receives a restoration instruction to change the permitted number of the corresponding node in the route list 101, the agent restoration unit 201 corresponds to the corresponding portion of the intermediate code route list 101 received from the intermediate code conversion unit 204. The mobile agent 10 having the route list 101 in which the permitted number of times is changed to the designated number is restored.

因みに、図7(b)に示した例では、エージェント復元部201は、以前から有している移動経路としてのノード1,ノード2およびノード3に、新たに許可回数1を有するノード4の許可回数2とした経路リスト101を有するモバイルエージェント10を復元している。   Incidentally, in the example shown in FIG. 7B, the agent restoration unit 201 grants permission for the node 4 having the new permission count 1 to the nodes 1, 2, and 3 as the movement routes that have been previously provided. The mobile agent 10 having the route list 101 with the number of times 2 is restored.

次に、この実施形態のエージェントシステムの動作を、通信機器がモバイルエージェントを復元し、この復元されたモバイルエージェントが他の通信機器に移動し、移動した通信機器内のメモリ領域に記憶させるまでの処理動作を説明するに先だって、(1)モバイルエージェントを受信したシステムエージェントの概略処理、(2)システムエージェントが経路リストから移動経路情報を削除する処理、(3)システムエージェントが経路リストの移動経路情報を追加または更新する処理について、それぞれ図8,図9,図10のフローチャートを参照して明する。   Next, the operation of the agent system according to this embodiment is performed until the communication device restores the mobile agent, the restored mobile agent moves to another communication device, and is stored in the memory area in the moved communication device. Prior to explaining the processing operation, (1) the outline process of the system agent that received the mobile agent, (2) the process of deleting the movement route information from the route list by the system agent, and (3) the movement route of the route list of the system agent Processing for adding or updating information will be described with reference to the flowcharts of FIGS. 8, 9, and 10, respectively.

(1)モバイルエージェントを受信したシステムエージェントの概略処理について
モバイルエージェント10を受信した通信機器2のシステムエージェント20は、メモリ領域に記憶したモバイルエージェント10を実行して、目的処理が達成したか否かを判断し(ステップ110)、目的処理が達成したと判断した場合には(ステップ110;Y)、モバイルエージェント10を次の通信機器2に移動させずに、エージェントサーバ1に戻して処理を終了する一方、目的処理が達成していないと判断した場合には(ステップ110;N)、許可回数がすべて0であるか否かを判断する(ステップ120)。
(1) Schematic processing of a system agent that has received a mobile agent The system agent 20 of the communication device 2 that has received the mobile agent 10 executes the mobile agent 10 stored in the memory area to determine whether the target processing has been achieved. (Step 110), if it is determined that the target process has been achieved (step 110; Y), the mobile agent 10 is returned to the agent server 1 without moving to the next communication device 2, and the process is terminated. On the other hand, if it is determined that the objective processing has not been achieved (step 110; N), it is determined whether or not the number of times of permission is all 0 (step 120).

システムエージェント20は、経路リスト101のすべての移動経路情報における許可回数がすべて0であると判断した場合には(ステップ120;Y)、目的処理を再設定させるため、エージェントサーバ1に戻し、処理を終了する一方、許可回数がすべて0でないと判断した場合には(ステップ120;N)、経路リスト101に基づき、モバイルエージェント10を次の通信機器に移動させ(ステップ130)、処理をステップ110に戻し、上述したと同様な処理を継続する。   When the system agent 20 determines that the number of times of permission in all the travel route information in the route list 101 is all 0 (step 120; Y), the system agent 20 returns the processing to the agent server 1 to reset the target processing. On the other hand, if it is determined that the number of times of permission is not all 0 (step 120; N), the mobile agent 10 is moved to the next communication device based on the route list 101 (step 130), and the processing is performed at step 110. Then, the same processing as described above is continued.

(2)システムエージェントが経路リストから移動経路情報を削除する処理
モバイルエージェント10を受信した通信機器2のシステムエージェント20は、モバイルエージェント10を復元するに際し、メモリ領域に記憶されている、先に受信したモバイルエージェント10を読み出し、この読み出したモバイルエージェント10にある経路リスト101に、自己のノード番号があるか否かを判断する(ステップ210)。
(2) Process in which system agent deletes travel route information from route list When system agent 20 of communication device 2 that received mobile agent 10 restores mobile agent 10, it is stored in the memory area and received first. The mobile agent 10 is read, and it is determined whether or not the route list 101 in the read mobile agent 10 has its own node number (step 210).

システムエージェント20は、経路リスト101に自己のノード番号がないと判断した場合には(ステップ210;N)、移動経路情報の削除処理を終了する一方、自己のノード番号があると判断した場合には(ステップ210;Y)、該当するノードの許可回数から1減算した値を、新たな許可回数とする(ステップ220)。   When the system agent 20 determines that the route list 101 does not have its own node number (step 210; N), the system agent 20 terminates the movement route information deletion process, but determines that there is its own node number. (Step 210; Y), a value obtained by subtracting 1 from the number of times of permission of the corresponding node is set as a new number of times of permission (Step 220).

システムエージェント20は、新たな許可回数が0以下になった場合か否かを判断し(ステップ230)、判断した結果、新たな許可回数が0以下になっていないと判断した場合には(ステップ230;N)、移動経路情報の削除処理を終了する一方、新たな許可回数が0以下になっていると判断した場合には(ステップ230;Y)、該当する移動経路情報を削除し(ステップ240)、移動経路情報の削除処理を終了する。   The system agent 20 determines whether or not the new number of times of permission has become 0 or less (step 230), and if it is determined that the new number of times of permission has not become 0 or less (step 230) (step 230). 230; N), while the movement route information deletion process is finished, if it is determined that the new number of times of permission is 0 or less (step 230; Y), the corresponding movement route information is deleted (step 230). 240) The movement route information deletion process is terminated.

(3)システムエージェントが経路リストの移動経路情報を追加または更新する処理について
モバイルエージェント10を受信した通信機器2のシステムエージェント20は、モバイルエージェント10を復元するに際し、メモリ領域に記憶されている、先に受信したモバイルエージェント10を読み出し、この読み出したモバイルエージェント10にある経路リスト101に、追加するノードがあるか否かを判断する(ステップ310)。
(3) Processing for system agent to add or update movement route information of route list The system agent 20 of the communication device 2 that has received the mobile agent 10 is stored in the memory area when the mobile agent 10 is restored. The mobile agent 10 received first is read, and it is determined whether or not there is a node to be added to the route list 101 in the read mobile agent 10 (step 310).

システムエージェント20は、追加するノードがある場合には(ステップ310;Y)、追加するノードの移動経路情報を経路リスト101に追加し、移動経路情報を追加または更新する処理を終了する。   If there is a node to be added (step 310; Y), the system agent 20 adds the movement route information of the node to be added to the route list 101, and ends the process of adding or updating the movement route information.

一方、システムエージェント20は、追加するノードがないと判断した場合には(ステップ310;N)、移動経路情報を追加または更新する処理を終了する一方、更新するノードがあると判断した場合には(ステップ320;Y)、該当するノードの許可回数から1加算した値を新たな許可回数とし(ステップ330)、移動経路情報を追加または更新する処理を終了する。   On the other hand, when the system agent 20 determines that there is no node to be added (step 310; N), the system agent 20 finishes the process of adding or updating the movement route information, whereas when it is determined that there is a node to be updated. (Step 320; Y), a value obtained by adding 1 from the number of times of permission of the corresponding node is set as a new number of times of permission (Step 330), and the process of adding or updating the movement route information is ended.

次に、この実施形態のエージェントシステムの動作を、通信機器がモバイルエージェントを復元し、この復元されたモバイルエージェントが他の通信機器に移動し、移動した通信機器内のメモリ領域に記憶させるまでの処理動作を、図11に基づき説明する。   Next, the operation of the agent system according to this embodiment is performed until the communication device restores the mobile agent, the restored mobile agent moves to another communication device, and is stored in the memory area in the moved communication device. The processing operation will be described with reference to FIG.

#iの通信機器2のシステムエージェント20は、モバイルエージェント10から制御部を介して移動要求を受けると、すなわち、制御部から所定のエージェントを復元するように復元指示を受けると(図11中の(1)参照)、エージェント復元部201がフラグ格納部202に“ON”(=1)のフラグをセットさせ、資源をロックする(図11中の(2)参照)。   When the system agent 20 of the communication device 2 of #i receives a movement request from the mobile agent 10 via the control unit, that is, receives a restoration instruction from the control unit to restore a predetermined agent (in FIG. 11) (Refer to (1)), the agent restoration unit 201 sets the flag “ON” (= 1) in the flag storage unit 202 and locks the resource (see (2) in FIG. 11).

続いて、エージェント復元部201は、メモリ領域に記憶されている、先に受信したモバイルエージェント10を読み出し、所定の経路リストを有するモバイルエージェントを形成し、これをメモリ領域に記憶するとともに、先に受信したモバイルエージェント10の処理状況を監視させる指示を資源管理部205に出力する(図11中の(3)参照)。   Subsequently, the agent restoration unit 201 reads the previously received mobile agent 10 stored in the memory area, forms a mobile agent having a predetermined route list, stores this in the memory area, An instruction to monitor the received processing status of the mobile agent 10 is output to the resource management unit 205 (see (3) in FIG. 11).

すると、資源管理部205は、先に受信したモバイルエージェント10の処理状況を監視し(図11中の(4)参照)、先に受信したモバイルエージェント10が所定箇所の処理を実行すると、エージェント間通信部206を介して送信先の通信機器2に対して、復元したモバイルエージェント10のメモリに占めるサイズを通知し、このサイズ分のメモリ領域を確保させる指示(資源予約)を出力する(図11中(5),(6)参照)。   Then, the resource management unit 205 monitors the processing status of the mobile agent 10 received earlier (see (4) in FIG. 11), and when the mobile agent 10 received earlier executes processing at a predetermined location, The size of the restored mobile agent 10 in the memory is notified to the destination communication device 2 via the communication unit 206, and an instruction (resource reservation) to secure a memory area for this size is output (FIG. 11). (Refer to (5) and (6)).

送信先の#kの通信機器2がエージェント間通信部206を介して所定サイズ分のメモリ領域を確保するように指示を受けると、そのエージェント復元部201は、メモリ領域が確保できたきには、フラグ格納部202に格納されているフラグを“ON”にセットし(図11中の(8)参照)、エージェント間通信部206を介して#iの通信機器における資源管理部205に資源予約が完了した旨を通知する(図11中の(9),a,b参照)。   When the destination #k communication device 2 receives an instruction to secure a memory area of a predetermined size via the inter-agent communication unit 206, the agent restoration unit 201 The flag stored in the flag storage unit 202 is set to “ON” (see (8) in FIG. 11), and resource reservation is made to the resource management unit 205 in the #i communication device via the inter-agent communication unit 206. The completion is notified (see (9), a, b in FIG. 11).

一方、送信先の#kの通信機器2におけるエージェント復元部201は、メモリ領域が確保できない場合には、フラグ格納部202に格納されているフラグを“OFF”のままにセットしておき、エージェント間通信部206を介して#iの通信機器における資源管理部205に対して、資源予約ができなかった旨を通知する(図11中の(9),a,b参照)。   On the other hand, when the memory area cannot be secured, the agent restoration unit 201 in the #k communication device 2 of the transmission destination sets the flag stored in the flag storage unit 202 as “OFF” and sets the agent The resource management unit 205 in the #i communication device is notified via the inter-communication unit 206 that the resource reservation could not be made (see (9), a, and b in FIG. 11).

資源管理部205は、資源予約が完了した旨を受けると、その旨をエージェント復元部201に通知する(図11中のc参照)。   When the resource management unit 205 receives the fact that the resource reservation has been completed, the resource management unit 205 notifies the agent restoration unit 201 to that effect (see c in FIG. 11).

すると、エージェント復元部201は、すでに生成してメモリ領域に記憶されているモバイルエージェント10を読み出し(図11中のd参照)、これをMPUコード変換部203に出力する(図11中のe参照)。   Then, the agent restoration unit 201 reads the mobile agent 10 already generated and stored in the memory area (see d in FIG. 11), and outputs this to the MPU code conversion unit 203 (see e in FIG. 11). ).

MPUコード変換部203は、エージェント復元部201からモバイルエージェント10を受けると(図11中のe参照)、受けたモバイルエージェント10をMPUコードに変換し、このMPUコードに変換したモバイルエージェント10を中間コード変換部204に出力する(図11中のf参照)。   Upon receiving the mobile agent 10 from the agent restoration unit 201 (see e in FIG. 11), the MPU code conversion unit 203 converts the received mobile agent 10 into an MPU code, and converts the mobile agent 10 converted into this MPU code into an intermediate The data is output to the code conversion unit 204 (see f in FIG. 11).

中間コード変換部204は、MPUコード変換部203から受けたMPUコードに変換されたモバイルエージェント10を中間コードに変換し、送信先の#kの通信機器2に送信する(図11中のg,h参照)。   The intermediate code conversion unit 204 converts the mobile agent 10 converted into the MPU code received from the MPU code conversion unit 203 into an intermediate code, and transmits it to the communication device 2 of the transmission destination #k (g, in FIG. 11). h).

#iの通信機器から中間コードからなるモバイルエージェント10を受信した#kの通信機器では、中間コード変換部204が、送信されてきた中間コードからなるモバイルエージェント10をMPUコード変換部203に出力する(図11中のl,m参照)。   In the #k communication device that has received the mobile agent 10 composed of the intermediate code from the #i communication device, the intermediate code conversion unit 204 outputs the transmitted mobile agent 10 composed of the intermediate code to the MPU code conversion unit 203. (Refer to l and m in FIG. 11).

MPUコード変換部203は、中間コードに変換されたモバイルエージェント10を中間コード変換部204から受けると(図11中のm参照)、中間コードのモバイルエージェント10をMPUコードのモバイルエージェント10に変換し、これをエージェント復元部201に出力する(図11中のn参照)。   Upon receiving the mobile agent 10 converted into the intermediate code from the intermediate code conversion unit 204 (see m in FIG. 11), the MPU code conversion unit 203 converts the mobile agent 10 with the intermediate code into the mobile agent 10 with the MPU code. This is output to the agent restoration unit 201 (see n in FIG. 11).

エージェント復元部201は、MPUコードに変換されたモバイルエージェント10をMPUコード変換部203から受けると(図11中のn参照)、元のモバイルエージェントに変換してメモリ領域に記憶する(図11中のo参照)。   Upon receiving the mobile agent 10 converted into the MPU code from the MPU code conversion unit 203 (see n in FIG. 11), the agent restoration unit 201 converts the mobile agent 10 into the original mobile agent and stores it in the memory area (in FIG. 11). See o).

その後、エージェント復元部201は、自己の資源を開放すべくフラグ格納部202に“OFF”をセットさせる指示を出力し(図11中のp参照)、制御部に実行権を移行させる。   After that, the agent restoration unit 201 outputs an instruction to set “OFF” in the flag storage unit 202 to release its own resources (see p in FIG. 11), and transfers the execution right to the control unit.

なお、エージェントサーバ1がモバイルエージェントを生成し、この生成されたモバイルエージェント10が他の通信機器に移動し、移動した通信機器内のメモリ領域に記憶させるまでの処理動作については、上述した復元したモバイルエージェント10の場合と同様なので、その説明を省略する。   Note that the processing operation until the agent server 1 generates a mobile agent, the generated mobile agent 10 moves to another communication device, and is stored in the memory area in the moved communication device is restored as described above. Since it is the same as the case of the mobile agent 10, the description is abbreviate | omitted.

この実施形態のエージェントシステムでは、通信機器2が、先に受信したモバイルエージェント10から、必要に応じて移動経路情報を変更したエージェントを復元するため、目的地を再度設定する必要性がなくなる。   In the agent system of this embodiment, since the communication device 2 restores the agent whose movement route information has been changed as necessary from the mobile agent 10 received earlier, it is not necessary to set the destination again.

また、通信機器2が、復元したモバイルエージェント10の送信を予定している通信機器2に対して、この復元したモバイルエージェント10を記憶するメモリ領域を予約するため、復元したエージェントを確実に送信先に送ることができる。   In addition, since the communication device 2 reserves a memory area for storing the restored mobile agent 10 for the communication device 2 scheduled to transmit the restored mobile agent 10, the destination of the restored agent is surely transmitted. Can be sent to.

さらに、この異なる処理系の通信機器2がともに処理できる中間コードに変換して送信するため、異なる処理系で構成さた通信機器2間にモバイルエージェント10を送信することができる。   Furthermore, since the communication devices 2 of different processing systems are converted into intermediate codes that can be processed together and transmitted, the mobile agent 10 can be transmitted between the communication devices 2 configured in different processing systems.

<第2実施形態>
図12は通信機器2が復元したモバイルエージェントの構成を示すブロック図である。
Second Embodiment
FIG. 12 is a block diagram showing the configuration of the mobile agent restored by the communication device 2.

第1実施形態のエージェントシステムでは、システムエージェント20が、上述したような経路リスト101および目的処理からなるモバイルエージェント10を復元するような構成になっているが、この第2実施形態のエージェントシステムでは、システムエージェント20が、図12に示すように、さらに、通過した通信機器2のノードの履歴を示す経路収集リスト102を設けたモバイルエージェント10を復元するような構成になっている。   In the agent system of the first embodiment, the system agent 20 is configured to restore the mobile agent 10 composed of the route list 101 and the target process as described above. In the agent system of the second embodiment, As shown in FIG. 12, the system agent 20 is further configured to restore the mobile agent 10 provided with the route collection list 102 indicating the history of the nodes of the communication devices 2 that have passed.

このように、各通信機器2のシステムエージェント20により、モバイルエージェント10内に経路収集リスト102を設けたことにより、最短時間で目的地の通信機器2の到達する経路を取得することができる。   In this way, by providing the route collection list 102 in the mobile agent 10 by the system agent 20 of each communication device 2, the route that the destination communication device 2 reaches in the shortest time can be acquired.

なお、各ノードでのシステムエージェント20の処理能力等の違いにより、モバイルエージェント10の目的地に到達する時間が異なるため、モバイルエージェント10が移動する通信機器2のノード数が少ない経路を、必ずしも最短経路とすることができないことはいうまでもない。   Note that, since the time to reach the destination of the mobile agent 10 varies depending on the processing capability of the system agent 20 at each node, a route with a small number of nodes of the communication device 2 on which the mobile agent 10 moves is not necessarily the shortest. Needless to say, it cannot be a route.

以下、モバイルエージェントの最短経路を取得する処理を、図13を参照して説明する。   Hereinafter, the process of acquiring the shortest path of the mobile agent will be described with reference to FIG.

例えば、エージェントサーバ1が、(1)経路リスト101において経路リスト101に移動経路情報としてA,D,Fおよび目的地としてのHのノードを有し、受信したシステムエージェント20に所定の処理(タスク)を実行させる#1の処理を実行させるモバイルエージェント10と、(2)経路リスト101に移動経路情報としてB,D,FおよびHのノードを有する#2のモバイルエージェント10と、(3)経路リスト101に移動経路情報としてC,E,GおよびHのノードを有する#3のモバイルエージェント10とをほぼ同時に送信したとする。   For example, the agent server 1 (1) in the route list 101 has nodes A, D, F as movement route information and H as a destination in the route list 101, and the received system agent 20 performs predetermined processing (tasks). Mobile agent 10 for executing the process of # 1 for executing (2), (2) mobile agent 10 for # 2 having B, D, F and H nodes as movement route information in the route list 101, and (3) route It is assumed that the mobile agent 10 of # 3 having C, E, G, and H nodes is transmitted almost simultaneously to the list 101 as movement route information.

ここで、仮に#2のモバイルエージェント10が最初にHのノードに到達したとすると、Hのノードの通信機器2中のシステムエージェント20は、フラグ格納部202に有する自己が有する経路選択終了フラグをONにし、経路収集リスト102に自己のノード(経路収集情報)を有するモバイルエージェント10を復元し、これをエージェントサーバ1に戻す。   If the mobile agent 10 of # 2 first reaches the H node, the system agent 20 in the communication device 2 of the H node displays the route selection end flag held by itself in the flag storage unit 202. The mobile agent 10 having its own node (route collection information) in the route collection list 102 is restored, and this is returned to the agent server 1.

エージェントサーバ1は、戻ってきたモバイルエージェント20の経路収集リスト102を参照することにより、目的地に到達する最短経路を知り、このモバイルエージェント10を消滅させる。   The agent server 1 refers to the route collection list 102 of the mobile agent 20 that has returned, knows the shortest route to reach the destination, and extinguishes this mobile agent 10.

以後、エージェントサーバ1は、モバイルエージェント10の送信先がHノードの場合には、先に取得した経路終収集リスト102に基づいて経路リスト101を生成する。   Thereafter, when the transmission destination of the mobile agent 10 is the H node, the agent server 1 generates the route list 101 based on the previously acquired route end collection list 102.

ところで、Hのノードのシステムエージェント20は、その後、他のモバイルエージェント10を受信すると、経路選択終了フラグがONになっているのを確認したのち、到達したモバイルエージェント10を消滅し、エージェントサーバ1に戻さないようにしている。
このように、本発明では、他の通信機器2にエージェントを送信するに際してモバイルエージェント10を復元するに際し、復元したモバイルエージェント10に経路収集情報を有しているため、エージェントサーバから目的地の通信機器2に到達するまでの経路収集情報を得ることができる。
従って、エージェントサーバ1から複数のモバイルエージェント10を同時に目的地に送信することで、最も短時間に目的地に到達したモバイルエージェント10の経路収集情報を調べることができる。
By the way, when the system agent 20 of the H node subsequently receives another mobile agent 10, after confirming that the route selection end flag is ON, the mobile agent 10 that has arrived disappears and the agent server 1 I try not to go back to
As described above, in the present invention, when the mobile agent 10 is restored when the agent is transmitted to the other communication device 2, the restored mobile agent 10 has the route collection information. The route collection information until reaching the device 2 can be obtained.
Therefore, by transmitting a plurality of mobile agents 10 from the agent server 1 to the destination at the same time, the route collection information of the mobile agent 10 that has reached the destination in the shortest time can be examined.

本発明に係る第1実施形態のエージェントシステムの構成を示すブロック図。The block diagram which shows the structure of the agent system of 1st Embodiment which concerns on this invention. 図1中のエージェントサーバに有するシステムエージェントの構成を示すブロック図。The block diagram which shows the structure of the system agent which has in the agent server in FIG. 図2中のモバイルエージェントに有する経路リストの構成を示すブロック図。The block diagram which shows the structure of the route list | wrist which has in the mobile agent in FIG. モバイルエージェントの移動経路についての説明図。Explanatory drawing about the movement path | route of a mobile agent. 図1中の通信機器に有するシステムエージェントの構成を示すブロック図。The block diagram which shows the structure of the system agent which has in the communication apparatus in FIG. 経路リスト中の移動経路情報を削除する内容を説明する説明図。Explanatory drawing explaining the content which deletes the movement route information in a route list. 経路リスト中の移動経路情報を追加・変更する内容を説明する説明図。Explanatory drawing explaining the content which adds / changes the moving route information in a route list. 通信機器のシステムエージェントの概略処理を示すフローチャート。The flowchart which shows the schematic process of the system agent of a communication apparatus. 経路リスト中の移動経路情報を削除する処理を示すフローチャート。The flowchart which shows the process which deletes the movement route information in a route list. 経路リスト中の移動経路情報を追加・変更する処理を示すフローチャート。The flowchart which shows the process which adds / changes the movement route information in a route list. 第1実施形態のエージェントシステムの処理動作を説明する説明図。Explanatory drawing explaining the processing operation of the agent system of 1st Embodiment. 第2実施形態のエージェントシステムにより生成・復元されたモバイルエージェントの構成を示すブロック図。The block diagram which shows the structure of the mobile agent produced | generated and decompress | restored by the agent system of 2nd Embodiment. エージェントサーバで生成されたモバイルエージェントの目的地に到達する最短経路を説明する説明図。Explanatory drawing explaining the shortest path | route which reaches | attains the destination of the mobile agent produced | generated by the agent server. 従来のエージェントシステムの概略構成図。Schematic configuration diagram of a conventional agent system. 従来のエージェントシステムの移動状態を説明するフローチャート。The flowchart explaining the movement state of the conventional agent system. 従来のエージェントシステムの移動状態を説明するフローチャート。The flowchart explaining the movement state of the conventional agent system. 異なる処理系の通信機器間では、送信されてきたエージェントを実行することできないことを説明する説明図。Explanatory drawing explaining that the transmitted agent cannot be performed between the communication apparatuses of a different processing system.

符号の説明Explanation of symbols

1 エージェントサーバ
10 モバイルエージェント
101 経路リスト
102 経路収集リスト
2 通信機器
20 システムエージェント
201 エージェント生成部、エージェント復元部
202 フラグ格納部
203 MPUコード変換部
204 中間コード変換部
205 資源管理部
206 エージェント間通信部
3 記憶装置
4 通信回線
DESCRIPTION OF SYMBOLS 1 Agent server 10 Mobile agent 101 Path | route list 102 Path | route collection list 2 Communication apparatus 20 System agent 201 Agent production | generation part, Agent restoration part 202 Flag storage part 203 MPU code conversion part 204 Intermediate code conversion part 205 Resource management part 206 Inter-agent communication part 3 Storage device 4 Communication line

Claims (5)

エージェントサーバと複数の通信機器とが有線回線または無線回線の通信回線で接続されており、前記エージェントサーバから生成した移動経路情報を有するエージェントを、前記通信回線を介して前記移動経路情報に基づき前記通信機器間を移動させるエージェントシステムであって、
前記通信機器は、
先に受信してメモリ領域に記憶されているエージェントの移動経路情報を、必要に応じて変更して、所定の移動経路情報を有するエージェントに復元し、この復元したエージェントを送信するエージェント復元送信手段と、
前記移動経路情報に基づき、送信を予定している通信機器に対し、予め、送信を予定しているエージェントを記憶させるメモリ領域を予約するメモリ領域予約手段と、
前記移動経路情報に基づき、前記エージェントを次の通信機器に送信するに際し、その送信先の通信機器が仮に異なる処理コードを実行する通信機器であっても、処理可能な中間コードに前記エージェントを変換し、これを送信する中間コード変換送信手段と、
を具備し、
前記エージェントは、前記移動経路情報とともに、通過した通信機器のノード番号の履歴を経路収集情報として有しており、
前記エージェント復元送信手段は、他の通信機器にエージェントを送信するに際し、自己のノード番号を前記経路収集情報に追加登録したエージェントを復元して送信するとともに、
前記エージェントサーバは、互いに相違する移動経路の途中の通信機器のノード番号と互いに一致する最終目的地の通信機器のノード番号とが登録された移動経路情報を各々が一つずつ有する複数のエージェントを同時に通信機器に送信し、帰還したエージェント中の前記経路収集情報を読み出す一方、
前記最終目的地の通信機器は、前記エージェントサーバから送信された複数のエージェントのうち、自身に最も早く到達したエージェントのみを前記エージェントサーバに帰還させる
ことを特徴とするエージェントシステム。
An agent server and a plurality of communication devices are connected by a communication line of a wired line or a wireless line, and an agent having movement path information generated from the agent server is transmitted based on the movement path information via the communication line. An agent system that moves between communication devices,
The communication device is:
Agent restoration transmission means for changing the movement route information of the agent received first and stored in the memory area as needed, restoring it to an agent having predetermined movement route information, and sending the restored agent When,
Memory area reservation means for reserving a memory area for storing an agent scheduled for transmission in advance for a communication device scheduled for transmission based on the movement path information;
Based on the travel route information, when the agent is transmitted to the next communication device, the agent is converted into a processable intermediate code even if the destination communication device executes a different processing code. Intermediate code conversion transmission means for transmitting this,
Equipped with,
The agent has, as the route collection information, a history of the node number of the communication device that has passed along with the movement route information.
The agent restoration transmission means restores and transmits the agent whose node number is additionally registered in the route collection information when transmitting the agent to another communication device,
The agent server includes a plurality of agents each having one piece of movement route information in which node numbers of communication devices in the middle of different movement routes and node numbers of communication devices of final destinations that coincide with each other are registered. While simultaneously transmitting to the communication device and reading the route collection information in the returned agent,
The agent system according to claim 1, wherein the communication device at the final destination returns only the agent that has reached the earliest among the plurality of agents transmitted from the agent server to the agent server .
前記通信機器は、
エージェントが移動してくる際に予め、このエージェントを記憶するメモリ領域を確保し、また、このエージェントを送信したのち前記メモリ領域から前記エージェントをクリアして開放するメモリ領域予約開放手段を具備する
ことを特徴とする請求項1に記載のエージェントシステム。
The communication device is:
When an agent moves, a memory area for storing the agent is secured in advance, and a memory area reservation releasing unit is provided for clearing and releasing the agent from the memory area after transmitting the agent. The agent system according to claim 1 .
前記メモリ領域予約手段は、
先に受信したエージェントの処理の進捗具合を検知するエージェント処理進捗検知手段、
を有しており、
このエージェント処理進捗検知手段により、前記先に受信したエージェントが所定箇所を実行したと検知されると、送信を予定している通信機器に対し、メモリ領域を予約する
ことを特徴とする請求項1または2に記載のエージェントシステム。
The memory area reservation means includes
Agent processing progress detection means for detecting the progress of the processing of the agent received earlier;
Have
The memory area is reserved for a communication device scheduled to transmit when the agent processing progress detection means detects that the previously received agent has executed a predetermined location. Or the agent system of 2.
エージェントサーバと複数の通信機器とが有線回線または無線回線の通信回線で接続されており、前記エージェントサーバから生成した移動経路情報を有するエージェントを、前記通信回線を介して前記移動経路情報に基づき前記通信機器間を移動させる通信方法であって、
前記通信機器により、
先に受信してメモリ領域に記憶されているエージェントの移動経路情報を、必要に応じて変更して、所定の移動経路情報を有するエージェントに復元し、
前記移動経路情報に基づき、送信を予定している通信機器に対し、予め、送信を予定しているエージェントを記憶させるメモリ領域を予約し、
前記移動経路情報に基づき、前記エージェントを次の通信機器に送信するに際し、その送信先の通信機器が仮に異なる処理コードを実行する通信機器であっても、処理可能な中間コードに前記エージェントを変換し、これを送信するとともに、
前記エージェントは、前記移動経路情報とともに、通過した通信機器のノード番号の履歴を経路収集情報として有しており、
前記通信機器により、他の通信機器にエージェントを送信するに際し、自己のノード番号を前記経路収集情報に追加登録したエージェントを復元して送信するとともに、
前記エージェントサーバにより、互いに相違する移動経路の途中の通信機器のノード番号と互いに一致する最終目的地の通信機器のノード番号とが登録された移動経路情報を各々が一つずつ有する複数のエージェントを同時に通信機器に送信し、帰還したエージェント中の前記経路収集情報を読み出す一方、
前記最終目的地の通信機器により、前記エージェントサーバから送信された複数のエージェントのうち、自身に最も早く到達したエージェントのみを前記エージェントサーバに帰還させる
ことを特徴とする通信方法。
An agent server and a plurality of communication devices are connected by a communication line of a wired line or a wireless line, and an agent having movement path information generated from the agent server is transmitted based on the movement path information via the communication line. A communication method for moving between communication devices,
By the communication device,
The agent's movement route information received first and stored in the memory area is changed as necessary, and restored to an agent having predetermined movement route information,
Based on the travel route information, for a communication device that is scheduled to transmit, reserve in advance a memory area for storing an agent that is scheduled to transmit,
Based on the travel route information, when the agent is transmitted to the next communication device, the agent is converted into a processable intermediate code even if the destination communication device executes a different processing code. And send this,
The agent has, as the route collection information, a history of the node number of the communication device that has passed along with the movement route information.
When transmitting an agent to the other communication device by the communication device, the agent that additionally registered its own node number in the route collection information is restored and transmitted,
The agent server includes a plurality of agents each having one piece of moving route information in which node numbers of communication devices in the final destination that coincide with node numbers of communication devices in the middle of different moving routes are registered. While simultaneously transmitting to the communication device and reading the route collection information in the returned agent,
A communication method characterized in that, by the communication device at the final destination, only the agent that has reached the earliest among the plurality of agents transmitted from the agent server is returned to the agent server .
前記通信機器により、
エージェントが移動してくる際に予め、このエージェントを記憶するメモリ領域を確保し、また、このエージェントを送信したのち前記メモリ領域から前記エージェントをクリアして開放する
ことを特徴とする請求項4に記載の通信方法。
By the communication device,
Advance when the agent comes moved, it allocates a memory area for storing the agent, also from the memory area after sending the agent to claim 4, characterized in that the opening clear the agent The communication method described .
JP2004252528A 2004-08-31 2004-08-31 Agent system and communication method Expired - Fee Related JP3735730B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004252528A JP3735730B2 (en) 2004-08-31 2004-08-31 Agent system and communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004252528A JP3735730B2 (en) 2004-08-31 2004-08-31 Agent system and communication method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP10079814A Division JPH11282683A (en) 1998-03-26 1998-03-26 Agent system

Publications (2)

Publication Number Publication Date
JP2005004793A JP2005004793A (en) 2005-01-06
JP3735730B2 true JP3735730B2 (en) 2006-01-18

Family

ID=34101475

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004252528A Expired - Fee Related JP3735730B2 (en) 2004-08-31 2004-08-31 Agent system and communication method

Country Status (1)

Country Link
JP (1) JP3735730B2 (en)

Also Published As

Publication number Publication date
JP2005004793A (en) 2005-01-06

Similar Documents

Publication Publication Date Title
CN111091200B (en) Updating method and system of training model, intelligent device, server and storage medium
JPH11282683A (en) Agent system
JP2011118587A (en) System for executing cooperative service by plurality of servers
JP2017162257A (en) Load monitoring program, load monitoring method, information processing device, and information processing system
JPWO2019203221A1 (en) Equipment control device, equipment control method, and equipment control system
JP6024138B2 (en) Cluster system
JP3735730B2 (en) Agent system and communication method
JP5084355B2 (en) Flow processing execution device, flow processing execution method, and program
JP2009110337A (en) Information processing apparatus, information processing system, and information processing method
JP2006318081A (en) Backup system, backup management device and backup management method and program
JP5761345B2 (en) Communication network system, communication method, and information processing apparatus
TW402710B (en) Method and system for packet control list format for controlling a DMA machine in a packetized data communications system
US9678815B2 (en) Information processing system, information processing apparatus, and method of controlling them
US9652342B2 (en) Redundancy processing method and system, and information processing apparatus thereof
JP2010009147A (en) Information processor, information processing method and program
JP5965781B2 (en) Resource management apparatus, resource management method and program
JP2020027308A (en) Atomicity assurance device and method for guaranteeing atomicity
CN108966254A (en) A kind of method and system of deployment and control wireless network element
CN113554171B (en) Model customization system and method
JP2011130172A (en) Transmission device, transmission system, backup path management method, and backup path management program
JP5251197B2 (en) Message processing method, message processing apparatus, and program
CN113568719B (en) Service fault processing method and device, electronic equipment and storage medium
JP4715802B2 (en) Communications system
JP2017058923A (en) Log recording system
JP5965782B2 (en) Data transmitting apparatus, data transmitting method and program

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20050119

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050307

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050329

A072 Dismissal of procedure [no reply to invitation to correct request for examination]

Free format text: JAPANESE INTERMEDIATE CODE: A072

Effective date: 20050614

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050622

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050822

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: 20050926

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051009

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: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20091104

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20101104

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20101104

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111104

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20111104

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20121104

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20131104

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees