JP2009087290A - Station service apparatus, and station service system - Google Patents
Station service apparatus, and station service system Download PDFInfo
- Publication number
- JP2009087290A JP2009087290A JP2007259588A JP2007259588A JP2009087290A JP 2009087290 A JP2009087290 A JP 2009087290A JP 2007259588 A JP2007259588 A JP 2007259588A JP 2007259588 A JP2007259588 A JP 2007259588A JP 2009087290 A JP2009087290 A JP 2009087290A
- Authority
- JP
- Japan
- Prior art keywords
- failure
- program
- fare calculation
- occurrence pattern
- station service
- 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
Links
- 230000002265 prevention Effects 0.000 claims abstract description 134
- 230000009471 action Effects 0.000 claims abstract description 111
- 238000012545 processing Methods 0.000 claims description 43
- 230000014509 gene expression Effects 0.000 claims description 13
- 238000000034 method Methods 0.000 description 21
- 230000008569 process Effects 0.000 description 16
- 238000004891 communication Methods 0.000 description 8
- 230000007547 defect Effects 0.000 description 7
- 150000001875 compounds Chemical class 0.000 description 6
- 230000001360 synchronised effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000004044 response Effects 0.000 description 4
- 230000003111 delayed effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000002950 deficient Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
Images
Landscapes
- Devices For Checking Fares Or Tickets At Control Points (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
本発明は、自動改札機や自動精算機などの駅務機器に関し、特に、運賃計算プログラムの不具合による障害発生を防止するための技術に関する。 The present invention relates to station service equipment such as an automatic ticket gate and an automatic checkout machine, and more particularly to a technique for preventing a failure caused by a failure in a fare calculation program.
自動改札機や自動精算機などの駅務機器には、運賃計算プログラムが搭載されており、このプログラムに従って利用料金の算出が行われる。例えば、自動改札機にプリペイドカードや、定期券とプリペイドカードの機能を併せ持つ複合券などの乗車媒体が投入されると、運賃計算プログラムを用いて運賃計算を行い、算出した運賃を乗車媒体の残額から引き去って徴収するようにしている。 Station equipment such as an automatic ticket gate and an automatic checkout machine is equipped with a fare calculation program, and a usage fee is calculated according to this program. For example, when a boarding medium such as a prepaid card or a compound ticket that combines the functions of a commuter pass and a prepaid card is inserted into an automatic ticket gate, the fare is calculated using a fare calculation program, and the calculated fare is calculated as the balance of the boarding medium. I have to withdraw from the collection.
しかるに、プログラムの欠陥が原因で、運賃の計算に誤りが発生し、正規の運賃よりも高い運賃を徴収してしまうことがある。このような障害が発生すると、利用者に不測の損害を与えることになるから、プログラムの不具合による料金の誤収受を防ぐための対策が必要となる。この対策としてよく知られているのが、プログラム多重化システムである。 However, due to program deficiencies, fare calculations may be incorrect, and fares higher than the regular fare may be collected. If such a failure occurs, it will cause unexpected damage to the user, and measures to prevent erroneous receipt of fees due to program defects are required. A well-known countermeasure is a program multiplexing system.
プログラム多重化システムは、プログラムの信頼性を向上させるため、独立して開発された同じ動作を行なうプログラムを2つ以上具備し、入力データに対して各プログラムを実行させて、それらの実行結果を突合して全てに差異がないことを確認することにより、プログラムの実行結果の正しさを検証する冗長系システムである。運賃計算にプログラム多重化を適用した駅務システムはすでに運用されており、後掲の特許文献1〜3にもこのようなシステムが開示されている。 In order to improve the reliability of the program, the program multiplexing system has two or more independently developed programs that perform the same operation, execute each program on input data, and obtain the execution results. This is a redundant system that verifies the correctness of the execution result of the program by confirming that there is no difference in everything. Station affairs systems that apply program multiplexing to fare calculation are already in operation, and such systems are also disclosed in Patent Documents 1 to 3 listed below.
特許文献1では、乗車媒体から読み取った媒体情報が、障害を発生するパターンと一致するか否かを判定し、一致する場合はただちにNG処理を行い、一致しない場合は読み取った媒体情報に対して、2つの運賃計算プログラムで算出した結果の突合(実行結果を出力項目ごとに比較すること)を実行し、結果が一致しない場合は、新たな障害発生パターンとして登録した後にNG処理を行うシステムが開示されている。 In Patent Document 1, it is determined whether or not the medium information read from the boarding medium matches the pattern causing the failure. If they match, the NG process is performed immediately. If the results calculated by the two fare calculation programs are collated (comparing the execution results for each output item) and the results do not match, the system that performs NG processing after registering as a new failure occurrence pattern It is disclosed.
特許文献2では、自動改札機と他の駅務機器のそれぞれにおいて運賃計算プログラムによる運賃計算を実行し、それらの計算結果を突合して、突合結果が一致しない場合は、精算処理を中断して係員対応とするシステムが開示されている。また、自動改札機において運賃計算プログラムに不具合があることが判明した場合に、他の駅務機器へ問合せを行い、他の駅務機器での算出結果を用いて自動改札機での精算処理を実行するシステムが開示されている。さらに、自動改札機において特定条件下で運賃計算の誤りが発生することが判明した場合は、係員対応によって、当該条件についてのみ他の駅務機器での算出結果を用いて精算処理を行うように設定することも開示されている。
In
特許文献3では、複数のプログラムを用いて利用料金を算出し、それぞれの料金を照合して、料金が不一致の場合は所定の処理を禁止するとともに、不一致データを上位装置へ通知し、上位装置で係員がデータを確認し、正しい料金となる新たなプログラムデータを作成し、各駅務機器へ新しいプログラムデータを送信してプログラムを修正するシステムが開示されている。
In
運賃計算プログラムに多重化を採用することで、各プログラムの計算結果に差異が生じた場合に、障害発生を検知することができるが、プログラムが2つの二重化システムの場合は、どちらかのプログラムに欠陥があることが判るにとどまり、どちらが正しいプログラムかは自動的に判断できない。したがって、障害発生が検知された場合、従来は、特許文献1のように、検知時点で扉を閉じるなどのNG処理を実行するしかなく、正しい計算結果に基づいて処理を行うことはできなかった。しかし、この方法では障害発生時に一律にNG処理へ移行するため、その都度係員の対応が必要となるとともに、利用者の円滑な通行が妨げられる割合が高くなるという問題がある。 By adopting multiplexing in the fare calculation program, it is possible to detect the occurrence of a failure when there is a difference in the calculation results of each program. However, if the program is a two-duplex system, either program is used. It can only be known that there is a defect, and it cannot automatically determine which is the correct program. Therefore, when a failure occurrence is detected, conventionally, as in Patent Document 1, it is only possible to execute an NG process such as closing a door at the time of detection, and the process cannot be performed based on a correct calculation result. . However, this method has a problem that since the process is uniformly shifted to NG processing when a failure occurs, it is necessary to take care of a clerk each time and the rate at which smooth passage of the user is hindered increases.
一方、特許文献2に開示されている、他の駅務機器での計算結果を用いて処理を行う方法を採用すれば、自動改札機の稼動を停止させなくて済むため、上述した係員対応や通行阻害の問題は解消される。しかしながら、この方法では、他の駅務機器の運賃計算プログラムにも不具合があった場合には、依然として運賃計算の誤りが発生することになり、運賃の誤収受を防止することができないという問題がある。
On the other hand, if the method disclosed in
したがって、最終的には、特許文献3のように、係員が障害発生に係るデータを検証したうえで、運賃計算プログラムの欠陥を除去する作業が必要となる。ところが、欠陥除去のためにプログラムを修正すると、予期しない動作を引き起す可能性があり、この場合、修正による影響が波及する範囲を事前に完全に把握することは至極困難である。このため、現場で障害が発生した場合に、プログラム修正で危急に対応することは、予想外の二次障害を誘発する可能性があり、リスクが高い。
Therefore, finally, as in
本発明は、上述した事情に鑑み、運賃計算に障害が発生した場合でも、プログラムを修正することなく同様な障害の発生を事前に防止できる駅務機器および駅務システムを提供することを目的とする。 In view of the circumstances described above, an object of the present invention is to provide a station service device and a station service system that can prevent the occurrence of a similar problem in advance without correcting a program even when a problem occurs in fare calculation. To do.
本発明に係る駅務機器は、乗車媒体に記録されている媒体情報を読み取り、当該媒体情報に基づき運賃計算プログラムにより利用料金を算出する駅務機器であって、運賃計算プログラムの不具合により特定の媒体情報に対して障害が発生した場合の障害発生パターンと、当該障害を回避するための障害回避アクションとの組が、障害防止ルールとして記憶されている記憶手段を備えている。また、読み取られた媒体情報が記憶手段に記憶されている障害発生パターンと一致するか否かを判定する判定手段と、この判定手段が媒体情報と障害発生パターンとの一致を判定した場合に、当該障害発生パターンに対応する障害防止ルールで指定された障害回避アクションを実行する処理手段とを備えている。 A station service device according to the present invention is a station service device that reads medium information recorded on a boarding medium and calculates a usage fee by a fare calculation program based on the medium information. A storage unit is provided in which a combination of a failure occurrence pattern when a failure occurs in the medium information and a failure avoidance action for avoiding the failure is stored as a failure prevention rule. In addition, when the determination unit determines whether the read medium information matches the failure occurrence pattern stored in the storage unit, and the determination unit determines the match between the medium information and the failure occurrence pattern, Processing means for executing a failure avoidance action specified by a failure prevention rule corresponding to the failure occurrence pattern.
このような本発明によると、運賃計算プログラムの不具合に基づく障害が発生した際に、その障害発生パターンに対応する障害回避アクションが抽出され、当該アクションが実行される。このため、障害発生時の対応としてプログラムを修正しなくても、あらかじめ用意された障害回避アクションを実行することで、処理が適正に行われ、同様の障害が発生するのを未然に防止することができる。 According to the present invention as described above, when a failure based on the failure of the fare calculation program occurs, the failure avoidance action corresponding to the failure occurrence pattern is extracted and the action is executed. For this reason, even if you do not modify the program as a response to the occurrence of a failure, the failure avoidance action prepared in advance can be executed to prevent the occurrence of a similar failure before processing is performed properly. Can do.
本発明においては、運賃計算プログラムが複数のプログラムからなる場合、障害回避アクションに、複数のプログラムから選択されたいずれかの運賃計算プログラムのプログラム名を記述しておき、処理手段が、選択された運賃計算プログラムを実行するような実施形態を採用することができる。これによると、正しく動作する運賃計算プログラムを障害回避アクションにおいて指定しておくことにより、運賃計算プログラムの修正を行なわなくとも、正しい運賃計算結果を用いた処理を行うことが可能となる。 In the present invention, when the fare calculation program is composed of a plurality of programs, the program name of one of the fare calculation programs selected from the plurality of programs is described in the obstacle avoidance action, and the processing means is selected. Embodiments that execute a fare calculation program may be employed. According to this, by specifying a fare calculation program that operates correctly in the failure avoidance action, it is possible to perform processing using a correct fare calculation result without modifying the fare calculation program.
本発明においては、障害回避アクションに、ネットワーク上のリソースとして指定された運賃計算プログラムのプログラム名を記述しておき、処理手段が、指定された運賃計算プログラムを実行するような実施形態を採用してもよい。これによると、他の装置が保有する運賃計算プログラムを指定して実行することにより、同じ端末内でプログラムを多重化する必要がなくなり、多重化システムの設計を柔軟に行なえる利点がある。 In the present invention, an embodiment is adopted in which the program name of a fare calculation program designated as a resource on the network is described in the obstacle avoidance action, and the processing means executes the designated fare calculation program. May be. According to this, by specifying and executing a fare calculation program possessed by another apparatus, there is no need to multiplex the program in the same terminal, and there is an advantage that the multiplexing system can be designed flexibly.
本発明においては、障害回避アクションに、予め算出した正しい運賃計算結果を記述しておき、処理手段が、運賃計算プログラムを実行することなく、上記運賃計算結果に基づく利用料金を用いて処理を行うような実施形態を採用してもよい。これによると、事前に正しい計算結果を求めて、これをアクション中に含めておくことにより、運賃計算プログラムの修正を行なわなくとも、正しい運賃計算結果を用いた処理を行うことが可能となる。 In the present invention, the correct fare calculation result calculated in advance is described in the obstacle avoidance action, and the processing means performs processing using the usage fee based on the fare calculation result without executing the fare calculation program. Such an embodiment may be adopted. According to this, by obtaining a correct calculation result in advance and including it in the action, it is possible to perform processing using the correct fare calculation result without modifying the fare calculation program.
次に、本発明に係る駅務システムは、上述した駅務機器と、当該駅務機器に接続された管理装置とを有する駅務システムであって、障害が発生した媒体情報についての障害発生パターンを生成して管理装置へ送信する障害発生パターン生成手段を備えている。管理装置は、障害発生パターン生成手段から送られてきた障害発生パターンに対する障害回避アクションを作成するための障害回避アクション編集手段を有する。また、管理装置は、障害発生パターンと、これに対応して障害回避アクション編集手段で作成された障害回避アクションとの組を、障害防止ルールとして登録し管理する障害防止ルール管理手段を有する。 Next, a station service system according to the present invention is a station service system including the station service device described above and a management device connected to the station service device, and a failure occurrence pattern for medium information in which a failure has occurred. Is generated and transmitted to the management device. The management apparatus has a failure avoidance action editing means for creating a failure avoidance action for the failure occurrence pattern sent from the failure occurrence pattern generation means. In addition, the management device includes a failure prevention rule management unit that registers and manages a set of a failure occurrence pattern and a failure avoidance action correspondingly created by the failure avoidance action editing unit as a failure prevention rule.
このような本発明によると、駅務機器で運賃計算プログラムの不具合に基づく障害が発生した際に、その障害発生パターンが管理装置へ送信されるので、当該パターンの検証に基づき、障害回避アクション編集手段により障害回避アクションを作成することができる。そして、障害が発生した都度、障害発生パターンと障害回避アクションの組からなる障害防止ルールを登録することができる。このため、障害発生時の対応としてプログラムを修正しなくても、障害発生パターンに対応した障害回避アクションを実行することで、処理が適正に行われ、同様の障害が発生するのを未然に防止することができる。 According to the present invention as described above, when a failure based on a failure of the fare calculation program occurs in the station service device, the failure occurrence pattern is transmitted to the management device. Therefore, based on the verification of the pattern, the failure avoidance action editing A failure avoidance action can be created by means. Then, every time a failure occurs, a failure prevention rule consisting of a combination of a failure occurrence pattern and a failure avoidance action can be registered. For this reason, even if you do not modify the program as a response when a failure occurs, executing the failure avoidance action corresponding to the failure occurrence pattern prevents the occurrence of a similar failure before the process is performed properly. can do.
本発明においては、駅務機器が複数の駅務機器からなる場合、障害防止ルール管理手段が、登録した障害防止ルールを各駅務機器へ配信する実施形態を採用してもよい。これによると、管理装置から各駅務機器へ障害防止ルールを一斉に配信することで、どの駅務機器においても運賃計算の障害が発生するのを未然に防止することができる。 In the present invention, when the station service device is composed of a plurality of station service devices, an embodiment in which the failure prevention rule management means distributes the registered failure prevention rules to each station service device may be adopted. According to this, it is possible to prevent a fare calculation failure from occurring in any station service device by simultaneously distributing the failure prevention rules from the management device to each station service device.
本発明においては、障害発生パターンを論理式で記述して作成するための障害発生パターン編集手段を更に備えている実施形態を採用してもよい。これによると、論理式によって障害発生パターンを汎化(包括化)して記述することもできるため、障害を引き起こす全ての媒体情報を障害発生パターンとして生成する必要がなく、障害防止ルールの管理が容易になるとともに、パターン照合の高速化が可能となる。 In the present invention, an embodiment may further be adopted that further includes failure occurrence pattern editing means for describing and creating a failure occurrence pattern by a logical expression. According to this, the failure occurrence pattern can be generalized (generalized) and described by a logical expression, so it is not necessary to generate all the media information that causes the failure as a failure occurrence pattern, and the failure prevention rules can be managed. It becomes easy and the speed of pattern matching can be increased.
本発明によれば、運賃計算に障害が発生した場合でも、プログラムを修正することなく、同様な障害の発生を事前に防止することができる効果がある。 According to the present invention, even when a failure occurs in the fare calculation, there is an effect that it is possible to prevent the occurrence of a similar failure in advance without correcting the program.
最初に、後述の実施形態の前提となるプログラム多重化システムについて簡単に説明する。プログラム多重化システムは、突合を行なうタイミングにより、「同期突合型」と「遅延突合型」の2つのタイプに分けられる。以下では、説明を単純化するため、2つのプログラムを具備した二重化冗長システムを例に挙げる。 First, a brief description will be given of a program multiplexing system that is a premise of an embodiment described later. Program multiplexing systems are classified into two types, “synchronized matching type” and “delayed matching type”, depending on the timing of matching. In the following, to simplify the explanation, a redundant redundant system having two programs is taken as an example.
図15は、同期突合型のプログラム多重化システムを示している。同期突合型の場合は、対象システム(例えば自動改札装置)が2つのプログラムA、Bを保有し、入力情報に対してそれぞれのプログラムによる処理を同時に実行し、それらの実行結果を突合する。つまり、突合のタイミングはプログラムA、Bの実行時である。突合結果において双方の実行結果に差異がある場合は、2つのプログラムA、Bのどちらかに障害を発生させる欠陥があるとみなす。 FIG. 15 shows a synchronous multiplex type program multiplexing system. In the case of the synchronous matching type, the target system (for example, an automatic ticket gate) has two programs A and B, processes the respective programs simultaneously on the input information, and matches the execution results. In other words, the timing of the match is when the programs A and B are executed. If there is a difference between the two execution results in the match result, it is considered that either of the two programs A and B has a defect that causes a failure.
図16は、遅延突合型のプログラム多重化システムを示している。遅延突合型の場合は、対象システム(例えば自動改札装置)が1つのプログラムAを保有するとともに、上位装置(例えばPC)がもう1つのプログラムB(対照プログラム)を保有している。そして、対象システムがプログラムAによる処理を実行した一定期間内のすべての入力情報に対して、一定期間経過後に上位装置が同じ入力情報に対してプログラムBによる処理を実行し、双方の実行結果を事後的に突合する。つまり、突合のタイミングは、プログラムAの実行から一定期間経過後である。この場合も、突合結果において双方の実行結果に差異があれば、2つのプログラムA、Bのどちらかに障害を発生させる欠陥があるとみなす。 FIG. 16 shows a delay match type program multiplexing system. In the case of the delay matching type, the target system (for example, an automatic ticket gate device) has one program A, and the higher-level device (for example, PC) has another program B (control program). Then, with respect to all input information within a certain period in which the target system has executed processing by program A, the host device executes processing by program B for the same input information after the lapse of a certain period, We will meet after the fact. That is, the timing of the match is after a certain period has elapsed since the execution of the program A. Also in this case, if there is a difference between both execution results in the match result, it is considered that either of the two programs A and B has a defect that causes a failure.
以下、本発明の実施形態につき、図を参照しながら説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、本発明の第1実施形態のシステム構成図である。ここでは、本発明に関係する構成要素のみを機能ブロックとして表してある。本実施形態においては、上述した同期突合型のプログラム多重化システムを採用している。 FIG. 1 is a system configuration diagram of a first embodiment of the present invention. Here, only the components related to the present invention are represented as functional blocks. In this embodiment, the above-described synchronous collision type program multiplexing system is employed.
1は駅に設置された駅務機器としての自動改札装置、2は自動改札装置1と回線で接続された管理装置である。自動改札装置1は実際には複数台設置されるが、図1では1台のみ図示してある。管理装置2は、例えば駅の係員室や管理センターなどに設置されたサーバからなる。自動改札装置1および管理装置2により駅務システムが構成される。
Reference numeral 1 denotes an automatic ticket gate device as station service equipment installed at a station, and 2 denotes a management device connected to the automatic ticket gate device 1 by a line. Although a plurality of automatic ticket gates 1 are actually installed, only one is shown in FIG. The
自動改札装置1は、運賃算出処理部10を備えている。運賃算出処理部10において、11は、乗車券から読み取った媒体情報aと、後述の障害防止ルールfとに基づいて、運賃計算障害の発生を防止するための処理を行う障害防止処理部である。12は運賃計算プログラムAにより運賃計算を行う運賃計算部、13は運賃計算プログラムBにより運賃計算を行う運賃計算部、14は運賃計算部12,13での計算結果b、cを突合して突合結果dを出力する計算結果突合部である。15は、計算結果突合部14での突合において計算結果b、cが一致しない場合に、後述する障害発生パターンeを生成して管理装置2へ送信する障害発生パターン生成部である。16は、管理装置2から配信される障害防止ルールfを管理するローカル障害防止ルール管理部、17は当該障害防止ルールfを蓄積したローカル障害防止ルールDB(DBはデータベース;以下同様)である。
The automatic ticket gate apparatus 1 includes a fare
管理装置2は、マスター障害防止ルール管理部21、マスター障害防止ルールDB22、障害回避アクション編集部23、障害発生パターン編集部24を備えている。マスター障害防止ルール管理部21は、自動改札装置1から送られてくる障害発生パターンeを受信・収集して、マスター障害防止ルールDB22に格納して管理する。また、障害発生パターン編集部24で作成された障害発生パターンと、障害回避アクション編集部23で作成された障害回避アクションとの組を障害防止ルールとしてマスター障害防止ルールDB22に格納する。さらに、マスター障害防止ルールDB22に格納されている障害防止ルールを一定時間毎に自動改札装置1に送信し、自動改札装置1における障害防止ルールを更新する。
The
障害回避アクション編集部23は、UIF(ユーザーインターフェイス)から構成される。ここでは、自動改札装置1から送られてくる障害発生パターンeに対して、UIFの操作により、障害を回避するための障害回避アクションを作成する。
The failure avoidance
障害発生パターン編集部24もUIFから構成される。ここでは、自動改札装置1から送られてくる障害発生パターンeに対する障害原因や影響範囲などの精査結果に基づき、UIFの操作により、障害発生に関係のない属性を削除したり、障害発生を引き起す属性の範囲を設定したりして、新たな障害発生パターンを論理式で記述して作成する。
The failure occurrence
図2は、自動改札装置1の構成をハードウェアのブロックで示した図である。30はLAN(Local Area Network)などの通信回線100を介して管理装置2と通信を行うための通信制御装置である。31は運賃の計算、障害発生の判定、通行可否の判定などの処理を実行するとともに、自動改札装置1の動作を制御するCPUである。32はデータを一時的に格納するためのメモリである。33は切符や定期券、プリペイドカードなどの乗車媒体に記録されている媒体情報を読み取る媒体読取部である。媒体読取部33は、磁気券の情報を読み取る磁気ヘッドや、非接触カードの情報を読み取るアンテナから構成される。34はCPU31での通行可否の判定結果に基づき、自動改札装置1に備わるゲート扉(図示省略)の開閉を制御する扉開閉制御部である。35は利用客に対して案内表示などを行う表示部である。
FIG. 2 is a diagram showing the configuration of the automatic ticket gate 1 in hardware blocks.
36はハードディスクなどからなる記憶装置であって、運賃計算プログラム(A)41、運賃計算プログラム(B)42、計算結果突合プログラム43が格納されている。37もハードディスクなどからなる記憶装置であって、障害防止処理プログラム44、障害発生パターン生成プログラム45、ローカル障害防止ルール管理プログラム46、および図1に示したローカル障害防止ルールDB17が格納されている。この例では、2つの記憶装置36,37が設けられているが、1つの記憶装置にすべてのプログラム41〜46とデータベース17を格納してもよい。
運賃計算プログラム41、42は、ICカードや磁気券などの乗車媒体に記録されている媒体情報を入力とし、運賃データに基づいて運賃計算や残額計算を行うとともに、不正使用の有無や有効期間内の使用か否かなどの判定を行い、それらの結果を出力するプログラムである。
The
計算結果突合プログラム43は、運賃計算プログラム41、42のそれぞれから出力される計算結果を比較して、差異の有無を調べるプログラムである。計算結果に差異が全くない場合は、両プログラムは正しく動作していると判断し、その計算結果を出力する。計算結果に差異がある場合は、いずれかのプログラムに欠陥があると判断し、NG判定(False値)を出力する。
The calculation
障害防止処理プログラム44は、媒体情報が読み取られる度に、ローカル障害防止ルールDB17から障害防止ルールを1つずつ取り出して、入力媒体情報と障害発生パターンとの照合を行い、一致した場合はそのルールで指定されている障害回避アクションを実行するプログラムである。
Each time the media information is read, the failure
障害発生パターン生成プログラム45は、計算結果突合プログラム43による突合結果に差異があった場合に、入力媒体情報に基づく障害発生パターンを生成し、これをマスター障害防止ルール管理部21に送信するプログラムである。
The failure occurrence
ローカル障害防止ルール管理プログラム46は、マスター障害防止ルール管理部21から送信される障害防止ルールを受信して、ローカル障害防止ルールDB17に格納したり、ローカル障害防止ルールDB17から障害防止ルールを取り出したりするためのプログラムである。
The local failure prevention
CPU31と運賃計算プログラム(A)41により図1の運賃計算部12が構成され、CPU31と運賃計算プログラム(B)42により運賃計算部13が構成され、CPU31と計算結果突合プログラム43により計算結果突合部14が構成される。また、CPU31と障害防止処理プログラム44により障害防止処理部11が構成され、CPU31と障害発生パターン生成プログラム45により障害発生パターン生成部15が構成され、CPU31とローカル障害防止ルール管理プログラム46によりローカル障害防止ルール管理部16が構成される。
1 is configured by the
図3は、管理装置2の構成をハードウェアのブロックで示した図である。50はLANなどの通信回線100を介して自動改札装置1と通信を行うための通信制御装置である。51は管理装置2の動作を制御するCPUである。52はデータを一時的に格納するためのメモリである。53は障害発生パターンや障害回避アクションの作成を行うためのUIF(ユーザーインターフェイス)であって、キーボードなどから構成される操作部54と、液晶ディスプレイなどから構成される表示部55とを備えている。56はハードディスクなどからなる記憶装置であって、マスター障害防止ルール管理プログラム61、障害回避アクション編集プログラム62、障害発生パターン編集プログラム63、および図1に示したマスター障害防止ルールDB22が格納されている。
FIG. 3 is a diagram showing the configuration of the
マスター障害防止ルール管理プログラム61は、各自動改札装置1から送られてくる障害発生パターンをマスター障害防止ルールDB22に格納したり、障害回避アクション編集部23で作成された障害回避アクションや、障害発生パターン編集部24で作成された障害発生パターンをマスター障害防止ルールDB22に格納したり、マスター障害防止ルールDB22に格納されている障害防止ルールを一定時間毎に各自動改札装置1に送信したりするプログラムである。
The master failure prevention
障害回避アクション編集プログラム62は、ある障害発生パターンに対して、当該障害を回避する処理である障害回避アクションを作成するためのプログラムである。
The failure avoidance
障害発生パターン編集プログラム63は、自動改札装置1から送信されてくる個々の障害発生パターンの解析結果に基づいて、例えば障害発生条件を集合で表現するなどして汎化した新たな障害発生パターンを作成するためのプログラムである。
The failure
CPU51とマスター障害防止ルール管理プログラム61により図1のマスター障害防止ルール管理部21が構成され、CPU51とUIF53と障害回避アクション編集プログラム62により障害回避アクション編集部23が構成され、CPU51とUIF53と障害発生パターン編集プログラム63により障害発生パターン編集部24が構成される。
The master failure prevention
以上の構成において、記憶装置37は、本発明における記憶手段の一実施形態を構成する。障害防止処理部11は、本発明における判定手段および処理手段の一実施形態を構成する。障害発生パターン生成部15は、本発明における障害発生パターン生成手段の一実施形態を構成する。マスター障害防止ルール管理部21は、本発明における障害防止ルール管理手段の一実施形態を構成する。障害回避アクション編集部23は、本発明における障害回避アクション編集手段の一実施形態を構成する。障害発生パターン編集部24は、本発明における障害発生パターン編集手段の一実施形態を構成する。
In the above configuration, the
次に、障害発生パターンについて説明する。障害発生パターンは、プログラムの欠陥が原因で障害が発生する場合の、媒体情報の属性(項目)と各属性についての入力値(乗車媒体から読み取ったデータ)との組として表現される。 Next, a failure occurrence pattern will be described. The failure occurrence pattern is expressed as a set of attributes (items) of medium information and input values (data read from the boarding medium) for each attribute when a failure occurs due to a program defect.
図4は、1つの障害発生パターンの例である。ここでは、属性として券種、利用種別、乗車駅、最新乗降駅、定期区間発駅、定期区間着駅、残額の各項目が挙げられている。本例は、入力値として、券種がIC複合券で、利用種別が大人で、乗車駅がY電鉄C駅で、最新乗降駅がY電鉄U駅で、定期区間発駅がX電鉄A駅で、定期区間着駅がX電鉄B駅で、残額が2000円である乗車券の場合に、障害が発生する(すなわち運賃計算部12,13での計算結果b、cが一致しない)例である。この障害発生パターンを論理式による条件式で記述すると、次のようになる。
障害発生パターン:
([券種]=IC複合券)and([利用種別]=大人)and([乗車駅]=Y電鉄C駅)and([最新乗降駅]=Y電鉄U駅)and([定期区間発駅]=X電鉄A駅)and([定期区間着駅]=X電鉄B駅)and([残額]=2000円) ・・・(1)
FIG. 4 is an example of one failure occurrence pattern. Here, the following items are listed as attributes: ticket type, usage type, boarding station, latest boarding / exiting station, regular section departure station, regular section arrival station, and remaining amount. In this example, as the input value, the ticket type is IC compound ticket, the usage type is adult, the boarding station is Y Electric Railway C Station, the latest boarding station is Y Electric Railway U Station, and the regular departure station is X Electric Railway A Station In the example where a failure occurs when the regular section arrival station is X Electric Railway B Station and the remaining amount is 2000 yen (that is, the calculation results b and c in the
Failure pattern:
([Ticket type] = IC compound ticket) and ([use type] = adult) and ([boarding station] = Y electric railway C station) and ([latest boarding station] = Y electric railway U station) and ([departure from a regular section) Station] = X Electric Railway A Station) and ([Terminal Station Arrival Station] = X Electric Railway B Station) and ([Balance] = 2000 yen) (1)
ところで、運賃計算における障害は、ある1つの媒体情報のみに関して発生するとは限らず、他の媒体情報でも同じ障害が発生することがある。例えば、図4の例では、乗車駅がY電鉄C駅の場合だけでなく、Y電鉄全駅について同じ障害が発生するようなケースや、定期区間発駅がX電鉄A駅の場合だけでなく、A駅〜G駅の区間にある場合に同じ障害が発生するようなケースである。こうした場合、障害を引き起こす全ての媒体情報を障害発生パターンとして個々に生成すると、データ量が膨大になるが、所定の属性についての入力値を、大小関係や集合的な包含関係により条件付けた論理式で表現することにより、障害発生パターンが汎化され、データ量を抑制することができる。 By the way, the failure in the fare calculation does not always occur with respect to only one medium information, and the same failure may occur with other medium information. For example, in the example of FIG. 4, not only the case where the boarding station is Y Electric Railway C Station, but also the case where the same failure occurs for all Y Electric Railway stations, and the case where the regular section departure station is X Electric Railway A Station In this case, the same failure occurs when the vehicle is in the section from A station to G station. In such a case, if all media information that causes a failure is individually generated as a failure occurrence pattern, the amount of data becomes enormous. However, a logical expression that conditions the input values for a given attribute based on a magnitude relationship or a collective inclusion relationship The failure occurrence pattern is generalized and can be reduced in data amount.
図5は、そのような汎化された障害発生パターンの例である。本例は、券種がIC複合券で、利用種別が大人か子供のいずれかで、乗車駅がY電鉄のすべての駅で、残額が0でない乗車券の場合に、障害が発生する例である。この障害発生パターンを論理式による条件式で記述すると、次のようになる。
障害発生パターン:
([券種]=IC複合券)and([利用種別]=大人or[利用種別]=子供)and([乗車駅]⊂Y電鉄全駅)and([残額]>0円) ・・・(2)
FIG. 5 is an example of such a generalized failure occurrence pattern. In this example, the failure occurs when the ticket type is an IC compound ticket, the usage type is either adult or child, the boarding station is all Y Electric Railway stations, and the remaining amount is a non-zero ticket. is there. This failure occurrence pattern is described as a conditional expression based on a logical expression as follows.
Failure pattern:
([Ticket type] = IC compound ticket) and ([use type] = adult or [use type] = child) and ([boarding station] ⊂Y Electric Railway all stations) and ([remaining amount]> 0 yen) (2)
次に、障害回避アクションについて説明する。障害回避アクションは、障害の発生を回避するために実行すべき処理内容を記述した指示情報であり、1つの障害発生パターンに対して1つの障害回避アクションが作成される。この作成は、運賃計算仕様について判断のできる事業者やシステム開発者等によって行われる。 Next, the failure avoidance action will be described. The failure avoidance action is instruction information that describes the processing contents to be executed in order to avoid the occurrence of a failure, and one failure avoidance action is created for one failure occurrence pattern. This creation is performed by a business operator or system developer who can judge the fare calculation specifications.
図6は、障害回避アクションの例を示している。この例は、複数の運賃計算プログラムから選択されたいずれかの運賃計算プログラム(正しく動作することが検証済のプログラム)のプログラム名を記述しておき、このプログラムを実行する「選択実行アクション」である。図6(a)では、自動改札装置1に搭載された運賃計算プログラムA、Bのうち、運賃計算プログラムAが指定されており、このプログラムを実行することで障害発生を回避する。図6(b)では、自動改札装置1の外部にネットワーク上のリソースとして配置された運賃計算プログラムのURL(Uniform Resource Locator)が指定されており、このプログラムを実行することで障害発生を回避する。 FIG. 6 shows an example of the failure avoidance action. In this example, the program name of one of the fare calculation programs selected from a plurality of fare calculation programs (a program that has been verified to work correctly) is described, and the “Select execution action” that executes this program is there. In FIG. 6A, the fare calculation program A is designated among the fare calculation programs A and B installed in the automatic ticket gate apparatus 1, and the occurrence of a failure is avoided by executing this program. In FIG. 6B, a URL (Uniform Resource Locator) of a fare calculation program arranged as a resource on the network is specified outside the automatic ticket gate apparatus 1, and the occurrence of a failure is avoided by executing this program. .
図7は、障害回避アクションの他の例を示している。この例は、予め算出した正しい運賃計算結果を記述しておき、この結果をそのまま適用する「正当結果適用アクション」である。このアクションにおいては、運賃計算プログラムは実行されない。なお、本アクションでは、結果に対して入力値が一意に定まらなければならないため、対応する障害発生パターンの条件式は、図4の場合の前記(1)式のように、すべて等号で記述される必要があり、図5の場合の前記(2)式のような、集合や不等号を含む記述は許されない。 FIG. 7 shows another example of the failure avoidance action. This example is a “valid result application action” in which a correct fare calculation result calculated in advance is described and this result is applied as it is. In this action, the fare calculation program is not executed. In this action, since the input value must be uniquely determined for the result, all the conditional expressions of the corresponding failure occurrence pattern are described with equal signs as in the above-described equation (1) in FIG. Therefore, a description including a set or an inequality sign such as the expression (2) in the case of FIG. 5 is not allowed.
図8は、媒体情報が障害発生パターンに該当しない場合の「突合実行アクション」を示している。これは障害回避アクションではなく、通常の動作の場合に実行されるデフォルトアクションとして設定されているものである。この場合は、通常通り2つの運賃計算プログラムA、Bによる運賃計算を実行し、それらの計算結果の突合が行われる。 FIG. 8 shows “matching action” when the medium information does not correspond to the failure occurrence pattern. This is not a failure avoidance action, but is set as a default action executed in the case of normal operation. In this case, the fare calculation by the two fare calculation programs A and B is executed as usual, and the calculation results are collated.
以上の図6〜図8のアクションは、同期突合型のプログラム多重化システムで採用されるアクションである。遅延突合型のプログラム多重化システムでは、図9や図10のアクションが採用されるが、これについては後述する。 The actions in FIGS. 6 to 8 described above are actions that are employed in the synchronous match type program multiplexing system. In the delayed match type program multiplexing system, the actions shown in FIGS. 9 and 10 are employed, which will be described later.
次に、障害防止ルールについて説明する。障害防止ルールは、障害発生パターンと障害回避アクションとの組からなり、1つの障害防止ルールは、1つの障害発生パターンと、これに対応する1つの障害回避アクションとから構成される。 Next, the failure prevention rule will be described. The failure prevention rule is composed of a combination of a failure occurrence pattern and a failure avoidance action, and one failure prevention rule is composed of one failure occurrence pattern and one failure avoidance action corresponding thereto.
図11は、障害防止ルールの一例を示している。この例は、図4の障害発生パターンに合致する媒体情報が入力された場合に、運賃計算プログラムBで計算を実行すると計算誤りが発生し、運賃計算プログラムAで計算を実行すると正しい計算結果が得られたため、障害回避アクションのプログラム名に運賃計算プログラムAを指定した例である。すなわち、「図4のような障害発生パターンに対しては、運賃計算プログラムAを実行する」というルールを規定したものである。運賃計算プログラムAの実行により正しい計算結果が得られ、障害は発生しない。 FIG. 11 shows an example of the failure prevention rule. In this example, when media information that matches the failure occurrence pattern of FIG. 4 is input, a calculation error occurs when the calculation is performed by the fare calculation program B, and a correct calculation result is obtained when the calculation is performed by the fare calculation program A. In this example, the fare calculation program A is designated as the program name of the obstacle avoidance action. That is, the rule that “the fare calculation program A is executed for the failure occurrence pattern as shown in FIG. 4” is defined. By executing the fare calculation program A, a correct calculation result can be obtained and no failure occurs.
図12は、障害防止ルールの他の例を示している。この例は、図5の障害発生パターンに合致する媒体情報が入力された場合に、運賃計算プログラムAで計算を実行すると計算誤りが発生し、運賃計算プログラムBで計算を実行すると正しい計算結果が得られたため、障害回避アクションのプログラム名に運賃計算プログラムBを指定した例である。すなわち、「図5のような障害発生パターンに対しては、運賃計算プログラムBを実行する」というルールを規定したものである。運賃計算プログラムBの実行により正しい計算結果が得られ、障害は発生しない。 FIG. 12 shows another example of the failure prevention rule. In this example, when media information matching the failure occurrence pattern of FIG. 5 is input, a calculation error occurs when the calculation is performed by the fare calculation program A, and a correct calculation result is obtained when the calculation is performed by the fare calculation program B. Since it is obtained, it is an example in which the fare calculation program B is specified as the program name of the obstacle avoidance action. That is, the rule that “the fare calculation program B is executed for the failure occurrence pattern as shown in FIG. 5” is defined. By executing the fare calculation program B, a correct calculation result is obtained and no failure occurs.
次に、図1のシステムの動作を具体的な事例に基づいて説明する。 Next, the operation of the system of FIG. 1 will be described based on a specific example.
[事例1]
自動改札装置1において、媒体情報aが記録された乗車券が投入された場合を想定する。障害防止処理部11は、この媒体情報aが、ローカル障害防止ルールDB17に記憶されている障害防止ルールの障害発生パターンfと一致しなければ、図8の突合実行アクションを実行する。これにより、運賃計算部12,13は、それぞれ運賃計算プログラムA,Bに従って運賃計算を行う。そして、計算結果突合部14で、それぞれの計算結果b,cの突合を行った結果、それらが一致せず、例えば運賃計算部12で計算された引き去り金額が、運賃計算部13で計算された引き去り金額より100円多いという差異が発生したとする。
[Case 1]
In the automatic ticket gate 1, it is assumed that a boarding ticket on which medium information a is recorded is inserted. If the medium information a does not match the failure occurrence pattern f of the failure prevention rule stored in the local failure
この場合、障害発生パターン生成部15は、計算結果突合部14での突合結果が不一致となった媒体情報aの障害発生パターンeを、管理装置2へ送信する。この送信は、通信制御装置30(図2)により通信回線100を介して行われる。管理装置2では、自動改札装置1から送られてきた障害発生パターンeを、マスター障害防止ルール管理部21が受信する。本例では、障害発生パターンeが図4のパターンであったとする。この障害発生パターンに対して、例えば図6(a)のような障害回避アクションが、障害回避アクション編集部23において人手により作成され、作成された障害回避アクションと障害発生パターンとの組を、図11のような障害防止ルールとして、マスター障害防止ルールDB22に登録する。
In this case, the failure
その後、マスター障害防止ルール管理部21は、新たに登録された障害防止ルールfをマスター障害防止ルールDB22から読み出して、管理装置2に接続されている全ての自動改札装置1へ配信する。この配信は、通信制御装置50(図3)により通信回線100を介して行われる。自動改札装置1では、管理装置2から配信される障害防止ルールfをローカル障害防止ルール管理部16が受信し、ローカル障害防止ルールDB17へ格納する。
Thereafter, the master failure prevention
自動改札装置1では、乗車券の媒体情報が媒体読取部33で読み取られて入力される度に、障害防止処理部11の障害防止処理プログラム44(図2)が起動される。このプログラムが起動されると、ローカル障害防止ルール管理部16は、ローカル障害防止ルールDB17から障害防止ルールfを1つずつ取り出し、取り出された障害防止ルールfと入力された媒体情報aとの照合が、障害防止処理部11において行われる。
In the automatic ticket gate 1, the failure prevention processing program 44 (FIG. 2) of the failure
この照合の結果、媒体情報aと障害防止ルールfの障害発生パターンとが一致しない場合は、次の障害防止ルールfを取り出して媒体情報aとの照合を行い、全ての障害防止ルールとの照合が完了するまで、これを繰り返す。一方、図4のパターンに該当する媒体情報が記録されている乗車媒体が投入された場合は、媒体情報aと障害防止ルールfの障害発生パターンとが一致するため、当該障害防止ルールfで指定された障害回避アクションを実行する。すなわち、図11のルールに従って、選択実行アクションが実行され、運賃計算プログラムAによる運賃計算が行われる。この障害回避アクションの実行により運賃計算は正しく行われるので、一度登録された障害防止ルールfの障害発生パターンと同じパターン(図4のパターン)の媒体情報が記録された乗車券に対して、障害が発生するのを未然に防止することができる。 If the medium information a and the failure occurrence pattern of the failure prevention rule f do not match as a result of this collation, the next failure prevention rule f is extracted and collated with the medium information a, and collation with all failure prevention rules is performed. Repeat until is complete. On the other hand, when a boarding medium in which the medium information corresponding to the pattern of FIG. 4 is recorded is entered, the failure occurrence pattern of the medium information a and the failure prevention rule f matches, and therefore specified by the failure prevention rule f. The specified failure avoidance action. That is, according to the rules of FIG. 11, the selection execution action is executed, and the fare calculation by the fare calculation program A is performed. Since the fare calculation is correctly performed by executing this failure avoidance action, it is possible to apply a failure to a ticket in which medium information having the same pattern as the failure occurrence pattern of the failure prevention rule f registered once (pattern in FIG. 4) is recorded. Can be prevented from occurring.
[事例2]
各駅の自動改札装置1から管理装置2に送信された障害発生パターンを解析した結果、券種がIC複合券で、利用種別が大人か子供のいずれかで、乗車駅がY電鉄のすべての駅で、残額が0でない乗車券の場合に、同じ障害が発生することが判明したとする。
[Case 2]
As a result of analyzing the failure occurrence pattern sent from the automatic ticket gate 1 to the
この場合、障害発生パターン編集部24において、図5のような汎化された障害発生パターンが人手により作成される。また、プログラムを検証した結果、例えば、運賃計算プログラムAに欠陥があり、運賃計算プログラムBは正しく動作することが判明したものとすると、障害回避アクション編集部23において、運賃計算プログラムBを選択実行する障害回避アクションが作成される。そして、これらの障害発生パターンと障害回避アクションとの組を、図12のような障害防止ルールとして、マスター障害防止ルールDB22に登録する。
In this case, the failure occurrence
その後、マスター障害防止ルール管理部21は、新たに登録された障害防止ルールfをマスター障害防止ルールDB22から読み出して、管理装置2に接続されている全ての自動改札装置1へ配信する。自動改札装置1では、管理装置2から配信される障害防止ルールfをローカル障害防止ルール管理部16が受信し、ローカル障害防止ルールDB17へ格納する。
Thereafter, the master failure prevention
自動改札装置1では、乗車券の媒体情報が媒体読取部33で読み取られて入力される度に、障害防止処理部11の障害防止処理プログラム44(図2)が起動される。このプログラムが起動されると、ローカル障害防止ルール管理部16は、ローカル障害防止ルールDB17から障害防止ルールfを1つずつ取り出し、取り出された障害防止ルールfと入力された媒体情報aとの照合が、障害防止処理部11において行われる。
In the automatic ticket gate 1, the failure prevention processing program 44 (FIG. 2) of the failure
この照合においては、前回の障害検知時の媒体情報と異なる媒体情報が入力された場合でも、障害発生パターンが汎化されているため、当該パターンの条件式(前記の式(2))を満たす媒体情報であれば、照合結果は一致と判定され、図12の障害防止ルールで指定された障害回避アクション、すなわち運賃計算プログラムBの選択実行アクションが実行される。この結果、運賃計算は正しく行われ、一度登録された障害防止ルールfの障害発生パターン(図5のパターン)に含まれる媒体情報が記録された乗車券に対して、障害が発生するのを未然に防止することができる。 In this verification, even when medium information different from the medium information at the time of the previous failure detection is input, the failure occurrence pattern is generalized, and therefore the conditional expression (the above equation (2)) of the pattern is satisfied. If it is medium information, the collation result is determined to be coincident, and the failure avoidance action specified by the failure prevention rule of FIG. 12, that is, the selection execution action of the fare calculation program B is executed. As a result, the fare calculation is correctly performed, and it is possible to prevent a failure from occurring on a ticket on which the medium information included in the failure occurrence pattern (pattern in FIG. 5) of the failure prevention rule f once registered is recorded. Can be prevented.
図13は、本発明の第2実施形態のシステム構成図である。ここでは、本発明に関係する構成要素のみを機能ブロックとして表してある。本実施形態においては、遅延突合型のプログラム多重化システムを採用している。 FIG. 13 is a system configuration diagram of the second embodiment of the present invention. Here, only the components related to the present invention are represented as functional blocks. In this embodiment, a delay match type program multiplexing system is employed.
図13では、図1と同一または対応する部分には、同一符号を付してある。1は駅に設置された駅務機器としての自動改札装置、3は自動改札装置1と回線で接続された上位装置、2は自動改札装置1および上位装置3と回線で接続された管理装置である。自動改札装置1は実際には複数台設置されるが、図13では1台のみ図示してある。管理装置2は、例えば駅の係員室や管理センターなどに設置されたサーバからなる。上位装置3は、例えばPC(Personal Computer)から構成され、係員室や管理センターなどに設置される。自動改札装置1、管理装置2および上位装置3により駅務システムが構成される。
In FIG. 13, the same or corresponding parts as in FIG. 1 is an automatic ticket gate device installed at a station as station service equipment, 3 is a host device connected to the automatic ticket gate device 1 via a line, and 2 is a management device connected to the automatic ticket gate device 1 and the
自動改札装置1の運賃算出処理部10の各ブロックと、上位装置3の各ブロックとは、図1の運賃算出処理部10に含まれる各ブロックと同じ機能を有しているので、個々のブロックについての詳細な説明は省略する。また、管理装置2の各ブロックも、図1の管理装置2の各ブロックと同じ機能を有しているので、個々のブロックについての詳細な説明は省略する。
Each block of the fare
図13のシステムでは、自動改札装置1の運賃計算部12が運賃計算プログラムAによる処理を実行した一定期間内のすべての媒体情報に対して、一定期間経過後に上位装置3の運賃計算部13が運賃計算プログラムBによる処理を実行し、それぞれの計算結果b、cを突合部14で事後的に突合する。これ以降の処理については、図1の場合と同様であるので、重複説明は省略する。
In the system of FIG. 13, the
但し、図13のように遅延突合型のプログラム多重化システムを採用した場合は、自動改札装置1での運賃計算が運賃計算プログラムAのみによって行われるため、障害回避アクションとして図6のような「選択実行アクション」を用いることはできない。そこで、これに代わるものとして、図9に示した「運賃計算回避アクション」を用いる。このアクションは、運賃計算実行による障害発生を回避するため、運賃計算を実行しないでNG判定を出力し、係員対応とするものである。なお、このような運賃計算回避アクション以外に、図7で示した「正当結果適用アクション」を用いることも可能である。 However, when the delayed match type program multiplexing system as shown in FIG. 13 is adopted, the fare calculation in the automatic ticket gate 1 is performed only by the fare calculation program A. “Selection execution action” cannot be used. Therefore, as an alternative, the “fare calculation avoidance action” shown in FIG. 9 is used. This action outputs an NG determination without executing the fare calculation and responds to the clerk in order to avoid the occurrence of trouble due to the fare calculation. In addition to such a fare calculation avoidance action, the “valid result application action” shown in FIG. 7 may be used.
図10は、媒体情報が障害発生パターンに該当しない場合の「運賃計算実行アクション」を示している。これは障害回避アクションではなく、通常の動作の場合に実行されるデフォルトアクションとして設定されているものである。この場合は、通常通り運賃計算プログラムAによる運賃計算が実行される。 FIG. 10 shows the “fare calculation execution action” when the medium information does not correspond to the failure occurrence pattern. This is not a failure avoidance action, but is set as a default action executed in the case of normal operation. In this case, the fare calculation by the fare calculation program A is executed as usual.
図14は、以上述べた第1および第2実施形態における障害防止処理部11の処理内容を表したフローチャートである。前述したように、媒体情報が読み取られる毎に、障害防止処理プログラム44が起動されて、図14の手順が実行される。
FIG. 14 is a flowchart showing the processing contents of the failure
媒体情報が読み取られると、ステップS1において、ローカル障害防止ルール管理部16が、ローカル障害防止ルールDB17から障害防止ルールを1つ取り出す。そして、障害防止ルールが存在すれば(ステップS2:YES)、ステップS3へ進む。ステップS3では、読み取った媒体情報と、取り出した障害防止ルールの障害発生パターンとを照合し、ステップS4で、パターンが一致するか否かを判定する。パターンが一致しない場合は(ステップS4:NO)、ステップS1へ戻って、ローカル障害防止ルールDB17から次の障害防止ルールを取り出し、ステップS2〜S4を実行する。
When the medium information is read, in step S1, the local failure prevention
パターンが一致する場合は(ステップS4:YES)、ステップS5へ進み、障害防止ルールで指定されている障害回避アクションを実行する。すなわち、第1実施形態(図1)の場合は、前述の「選択実行アクション」や「正当結果適用アクション」が実行され、第2実施形態(図13)の場合は、前述の「運賃計算回避アクション」や「正当結果適用アクション」が実行される。 If the patterns match (step S4: YES), the process proceeds to step S5, and the failure avoidance action specified in the failure prevention rule is executed. That is, in the case of the first embodiment (FIG. 1), the above-mentioned “selection execution action” and “legitimate result application action” are executed, and in the case of the second embodiment (FIG. 13), the above-mentioned “fare calculation avoidance” is performed. "Action" and "Validity result application action" are executed.
また、ステップS2でルールが存在しない場合は(ステップS2:NO)、ステップS6へ進み、デフォルトアクションを実行する。すなわち、第1実施形態の場合は前述の「突合実行アクション」、第2実施形態の場合は前述の「運賃計算実行アクション」がそれぞれ実行される。 If no rule is present in step S2 (step S2: NO), the process proceeds to step S6 to execute a default action. That is, in the case of the first embodiment, the aforementioned “match execution action” is executed, and in the case of the second embodiment, the aforementioned “fare calculation execution action” is executed.
以上説明した各実施形態によれば、運賃計算プログラムの不具合に基づく障害が発生した際に、その障害発生パターンに対応する障害回避アクションが抽出され、当該アクションが実行される。このため、障害発生時の対応としてプログラムを修正しなくても、あらかじめ用意された障害回避アクションを実行することで、処理が適正に行われ、同様の障害が発生するのを未然に防止することができる。 According to each embodiment described above, when a failure based on a failure in the fare calculation program occurs, a failure avoidance action corresponding to the failure occurrence pattern is extracted and the action is executed. For this reason, even if you do not modify the program as a response to the occurrence of a failure, the failure avoidance action prepared in advance can be executed to prevent the occurrence of a similar failure before processing is performed properly. Can do.
また、障害回避アクションとして図6のような「選択実行アクション」を採用する場合は、障害防止ルールにおいて正しく動作する運賃計算プログラムを指定しておくことにより、運賃計算プログラムの修正を行なわなくとも、正しい運賃計算結果を用いた処理を行うことが可能となる。 Further, when the “selection execution action” as shown in FIG. 6 is adopted as the obstacle avoidance action, by specifying a fare calculation program that operates correctly in the failure prevention rules, the fare calculation program is not corrected. It is possible to perform processing using the correct fare calculation result.
また、選択実行アクションにおけるプログラム名として、図6(b)のようにネットワーク上のリソースとして指定された運賃計算プログラムを記述しておけば、自動改札装置以外の機器が保有する運賃計算プログラムを指定して実行することができるため、自動改札装置内でプログラムを多重化する必要がなくなり、多重化システムの設計を柔軟に行なえる利点がある。 In addition, if a fare calculation program specified as a resource on the network is described as a program name in the selection execution action, a fare calculation program held by a device other than the automatic ticket gate is specified. Therefore, there is no need to multiplex the program in the automatic ticket checker, and there is an advantage that the multiplexing system can be designed flexibly.
また、障害回避アクションとして図7のような「正当結果適用アクション」を採用する場合は、事前に正しい計算結果を求めて、これをアクション中に含めておくことにより、運賃計算プログラムの修正を行なわなくとも、正しい運賃計算結果を用いた処理を行うことが可能となる。 In addition, when adopting the “valid result application action” as shown in FIG. 7 as the obstacle avoidance action, the fare calculation program is corrected by obtaining the correct calculation result in advance and including it in the action. Even without this, processing using the correct fare calculation result can be performed.
また、上述した駅務システムでは、自動改札装置1で運賃計算プログラムの不具合に基づく障害が発生した際に、その障害発生パターンが管理装置2へ送信されるので、当該パターンの検証に基づき、障害回避アクション編集部23により障害回避アクションを作成することができる。そして、障害が発生した都度、障害発生パターンと障害回避アクションの組からなる障害防止ルールを、マスター障害防止ルールDB22に登録することができる。このため、障害発生時の対応としてプログラムを修正しなくても、障害発生パターンに対応した障害回避アクションを実行することで、処理が適正に行われ、同様の障害が発生するのを未然に防止することができる。
Moreover, in the station service system mentioned above, when the failure based on the trouble of the fare calculation program occurs in the automatic ticket gate device 1, the failure occurrence pattern is transmitted to the
また、マスター障害防止ルール管理部21が、マスター障害防止ルールDB22に登録された障害防止ルールを複数の自動改札装置1へ一斉に配信することによって、どの自動改札装置においても運賃計算の障害が発生するのを未然に防止することが可能となる。
In addition, the master failure prevention
さらに、障害発生パターン編集部24において新たな障害発生パターンを作成するにあたって、パターンを論理式により汎化して記述することによって、障害を引き起こす全ての媒体情報を障害発生パターンとして生成する必要がなく、障害防止ルールの管理が容易になるとともに、パターン照合を高速に行うことが可能となる。
Furthermore, when creating a new failure occurrence pattern in the failure occurrence
以上述べた実施形態では、駅務機器として自動改札装置を例に挙げたが、本発明は自動精算機や窓口処理機などの駅務機器にも適用することができる。 In the embodiment described above, the automatic ticket gate device is taken as an example of the station service device. However, the present invention can also be applied to station service devices such as an automatic checkout machine and a counter processor.
1 自動改札装置
2 管理装置
3 上位装置
10 運賃算出処理部
11 障害防止処理部
12 運賃計算部
13 運賃計算部
14 計算結果突合部
15 障害発生パターン生成部
16 ローカル障害防止ルール管理部
17 ローカル障害防止ルールデータベース
21 マスター障害防止ルール管理部
22 マスター障害防止ルールデータベース
23 障害回避アクション編集部
24 障害発生パターン編集部
31 CPU
33 媒体読取部
37 記憶装置
a 媒体情報
f 障害防止ルール
DESCRIPTION OF SYMBOLS 1 Automatic
33
Claims (7)
前記運賃計算プログラムの不具合により特定の媒体情報に対して障害が発生した場合の障害発生パターンと、当該障害を回避するための障害回避アクションとの組が、障害防止ルールとして記憶されている記憶手段と、
読み取られた媒体情報が前記記憶手段に記憶されている障害発生パターンと一致するか否かを判定する判定手段と、
前記判定手段が媒体情報と障害発生パターンとの一致を判定した場合に、当該障害発生パターンに対応する障害防止ルールで指定された障害回避アクションを実行する処理手段と、
を備えたことを特徴とする駅務機器。 In station equipment that reads the medium information recorded on the boarding medium and calculates the usage fee by the fare calculation program based on the medium information,
A storage means in which a combination of a failure occurrence pattern when a failure occurs with respect to specific medium information due to a failure of the fare calculation program and a failure avoidance action for avoiding the failure is stored as a failure prevention rule When,
Determining means for determining whether the read medium information matches a failure occurrence pattern stored in the storage means;
A processing unit that executes a failure avoidance action specified by a failure prevention rule corresponding to the failure occurrence pattern when the determination unit determines that the medium information matches the failure occurrence pattern;
Station service equipment characterized by comprising.
前記運賃計算プログラムは複数のプログラムからなり、
前記障害回避アクションには、前記複数のプログラムから選択されたいずれかの運賃計算プログラムのプログラム名が記述されており、
前記処理手段は、前記選択された運賃計算プログラムを実行することを特徴とする駅務機器。 In the station service equipment according to claim 1,
The fare calculation program comprises a plurality of programs,
In the obstacle avoidance action, the program name of one of the fare calculation programs selected from the plurality of programs is described.
The station service device executes the selected fare calculation program.
前記障害回避アクションには、ネットワーク上のリソースとして指定された運賃計算プログラムのプログラム名が記述されており、
前記処理手段は、前記指定された運賃計算プログラムを実行することを特徴とする駅務機器。 In the station service equipment according to claim 1,
In the obstacle avoidance action, the program name of the fare calculation program designated as a resource on the network is described,
The station service device executes the designated fare calculation program.
前記障害回避アクションには、予め算出した正しい運賃計算結果が記述されており、
前記処理手段は、前記運賃計算プログラムを実行することなく、前記運賃計算結果に基づく利用料金を用いて処理を行うことを特徴とする駅務機器。 In the station service equipment according to claim 1,
In the obstacle avoidance action, the correct fare calculation result calculated in advance is described,
The station device performs processing using a usage fee based on the fare calculation result without executing the fare calculation program.
障害が発生した媒体情報についての障害発生パターンを生成して前記管理装置へ送信する障害発生パターン生成手段を備え、
前記管理装置は、
前記障害発生パターン生成手段から送られてきた障害発生パターンに対する障害回避アクションを作成するための障害回避アクション編集手段と、
障害発生パターンと、これに対応して前記障害回避アクション編集手段で作成された障害回避アクションとの組を、障害防止ルールとして登録し管理する障害防止ルール管理手段と、
を有することを特徴とする駅務システム。 A station service system comprising the station service device according to any one of claims 1 to 4 and a management device connected to the station service device,
A failure occurrence pattern generation means for generating a failure occurrence pattern for the medium information where the failure has occurred and transmitting the failure occurrence pattern to the management device;
The management device
Fault avoidance action editing means for creating a fault avoidance action for the fault occurrence pattern sent from the fault occurrence pattern generation means;
A failure prevention rule management means for registering and managing a set of a failure occurrence pattern and a failure avoidance action correspondingly created by the failure avoidance action editing means as a failure prevention rule;
A station service system characterized by comprising:
前記駅務機器は、複数の駅務機器からなり、
前記障害防止ルール管理手段は、登録した障害防止ルールを各駅務機器へ配信することを特徴とする駅務システム。 In the station service system according to claim 5,
The station equipment comprises a plurality of station equipment,
The failure prevention rule management means distributes the registered failure prevention rules to each station service device.
前記障害発生パターンを論理式で記述して作成するための障害発生パターン編集手段を更に備えていることを特徴とする駅務システム。 In the station service system according to claim 5,
The station service system further comprising a failure occurrence pattern editing means for describing and creating the failure occurrence pattern by a logical expression.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007259588A JP5292757B2 (en) | 2007-10-03 | 2007-10-03 | Station service equipment, station service system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007259588A JP5292757B2 (en) | 2007-10-03 | 2007-10-03 | Station service equipment, station service system |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009087290A true JP2009087290A (en) | 2009-04-23 |
JP5292757B2 JP5292757B2 (en) | 2013-09-18 |
Family
ID=40660592
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007259588A Expired - Fee Related JP5292757B2 (en) | 2007-10-03 | 2007-10-03 | Station service equipment, station service system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5292757B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016139439A (en) * | 2016-05-09 | 2016-08-04 | 株式会社東芝 | Automatic ticket gate and switching processing program for control program in automatic ticket gate |
JP2019160111A (en) * | 2018-03-16 | 2019-09-19 | 東日本旅客鉄道株式会社 | Automatic ticket examination system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05134740A (en) * | 1991-11-08 | 1993-06-01 | Omron Corp | Fault diagnostic method and device therefor |
JP2006293677A (en) * | 2005-04-11 | 2006-10-26 | Omron Corp | Fare miscalculation determination method and its program, and station service system |
-
2007
- 2007-10-03 JP JP2007259588A patent/JP5292757B2/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05134740A (en) * | 1991-11-08 | 1993-06-01 | Omron Corp | Fault diagnostic method and device therefor |
JP2006293677A (en) * | 2005-04-11 | 2006-10-26 | Omron Corp | Fare miscalculation determination method and its program, and station service system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016139439A (en) * | 2016-05-09 | 2016-08-04 | 株式会社東芝 | Automatic ticket gate and switching processing program for control program in automatic ticket gate |
JP2019160111A (en) * | 2018-03-16 | 2019-09-19 | 東日本旅客鉄道株式会社 | Automatic ticket examination system |
JP7106309B2 (en) | 2018-03-16 | 2022-07-26 | 東日本旅客鉄道株式会社 | Automatic ticket gate system |
Also Published As
Publication number | Publication date |
---|---|
JP5292757B2 (en) | 2013-09-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Haley et al. | Security requirements engineering: A framework for representation and analysis | |
US6601017B1 (en) | Process and system for quality assurance for software | |
KR101598738B1 (en) | Control program management system and method for changing control program | |
US20100058114A1 (en) | Systems and methods for automated management of compliance of a target asset to predetermined requirements | |
US20160004517A1 (en) | SOFTWARE DEVELOPMENT IMPROVEMENT TOOL - iREVIEW | |
US20170236234A1 (en) | Risk management method and system for a land transporation system | |
EP1899908A2 (en) | Embedded module for real-time risk analysis and treatment | |
EP3059676B1 (en) | A method and apparatus for analyzing the availability of a system, in particular of a safety critical system | |
JP5246258B2 (en) | File generation program, file generation apparatus, and file generation method | |
CN106095462A (en) | A kind of embedded distribution system program configuration version management method | |
Basile et al. | Formal analysis of the UNISIG safety application intermediate sub-layer: applying formal methods to railway standard interfaces | |
JP5292757B2 (en) | Station service equipment, station service system | |
US20140053028A1 (en) | Anomaly detection at the level of run time data structures | |
US20020072928A1 (en) | Method and system for managing component changes to a business critical application in a production environment | |
JP2001337846A (en) | System and method for supporting quality inspection for software | |
Yu et al. | Dynamic slicing of Petri nets based on structural dependency graph and its application in system analysis | |
Goloskokov et al. | Features of Assessing the Quality of Functioning of Telecommunication Systems in Transport | |
Kera et al. | Assurance technology for growing system and its application to Tokyo metropolitan railway network | |
KR100642462B1 (en) | Apparatus and method for analyzing operation in security system | |
Lü et al. | Managing environment and adaptation risks for the internetware paradigm | |
Cranmer et al. | Research data integrity: a result of an integrated information system | |
Connelly et al. | Developing a methodology for the use of COTS operating systems with safety-related software | |
Khan et al. | Test plan specification using security attributes: a design perspective | |
Kanazy et al. | Failure prognosis of discrete events systems based on extended Petri Nets | |
JP7446142B2 (en) | Cyber security audit system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100804 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120823 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120904 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20121102 |
|
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: 20130514 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130527 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5292757 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |