Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4857737B2 - Fare verification device - Google Patents
[go: Go Back, main page]

JP4857737B2 - Fare verification device - Google Patents

Fare verification device Download PDF

Info

Publication number
JP4857737B2
JP4857737B2 JP2005344501A JP2005344501A JP4857737B2 JP 4857737 B2 JP4857737 B2 JP 4857737B2 JP 2005344501 A JP2005344501 A JP 2005344501A JP 2005344501 A JP2005344501 A JP 2005344501A JP 4857737 B2 JP4857737 B2 JP 4857737B2
Authority
JP
Japan
Prior art keywords
station
fare
stations
commuter pass
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005344501A
Other languages
Japanese (ja)
Other versions
JP2007148928A (en
Inventor
秀樹 上田
徳生 高木
康博 時井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp filed Critical Omron Corp
Priority to JP2005344501A priority Critical patent/JP4857737B2/en
Publication of JP2007148928A publication Critical patent/JP2007148928A/en
Application granted granted Critical
Publication of JP4857737B2 publication Critical patent/JP4857737B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Devices For Checking Fares Or Tickets At Control Points (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Description

この発明は、鉄道等の交通機関の駅に設置される自動改札機・精算機・係員端末等の駅務装置に搭載する運賃算出手段(運賃計算プログラム)が、駅から出場する利用者に対する運賃の精算処理を適正に行うか否かを検証する運賃検証装置に関する。   The present invention provides a fare calculation means (fare calculation program) installed in a station service device such as an automatic ticket gate, a settlement machine, and a clerk terminal installed at a station of transportation such as a railroad. The present invention relates to a fare verification device that verifies whether or not to properly perform the settlement process.

鉄道などの交通機関は、運賃の改定、新線の開通、他社との相互乗り入れ開始等により新運賃の設定が必要になると、駅に設置されている自動改札機・精算機・係員端末等の駅務装置の運賃計算プログラムや、券売機の運賃計算プログラムを変更する。   For transportation systems such as railways, if it is necessary to set a new fare by revising the fare, opening a new line, or starting mutual entry with other companies, the automatic ticket gates, checkout machines, staff terminals, etc. Change the fare calculation program for station equipment and the fare calculation program for ticket machines.

新運賃は、変更予定日の直前に認可されることがあり、その場合には運賃計算プログラムの変更や確認を行う時間が限られるので、券売機や駅務装置の運賃計算プログラムの変更作業を効率良く行う必要がある。   The new fare may be approved just before the scheduled date of change, in which case the time to change or confirm the fare calculation program is limited, so change the fare calculation program for ticket vending machines or station equipment. It is necessary to do it efficiently.

また、変更した運賃計算プログラムにバグがあり、駅務装置の精算処理時に誤った運賃を算出して利用者から正規の運賃以上の額を徴収してしまうと、利用者に多大な迷惑をかけるだけでなく、利用者の信頼を低下させてしまうので、変更した運賃計算プログラムの動作確認を入念に行う必要がある。   In addition, there is a bug in the changed fare calculation program, and if the wrong fare is calculated during the checkout process of the station service device and the amount more than the regular fare is collected from the user, it will cause great inconvenience to the user. Not only that, but the reliability of the user is lowered, so it is necessary to carefully check the operation of the changed fare calculation program.

そこで、従来、運賃改定によるソフトウェア改修の際に、自動改札機での改修確認の作業を精度良く行うために、変更されたソフトウェアによる動作結果と、テストデータに予め付与された予想結果との比較結果を、ホストコンピュータに送信することで、運賃改定による自動改札機の確認作業を駅で行う必要がなくなり、短期間で各作業の精度を向上させることができる自動改札機と自動改札機の確認方法に関する発明が開示されている(例えば、特許文献1参照。)。
特開2001−194683号公報
Therefore, in the past, in order to accurately perform the repair confirmation work with the automatic ticket checker when modifying software due to fare revision, the operation result of the modified software was compared with the expected result given in advance to the test data. By sending the results to the host computer, there is no need to check the automatic ticket checker at the station by changing the fare, and it is possible to check the automatic ticket checker and automatic ticket checker that can improve the accuracy of each work in a short period of time. An invention relating to the method is disclosed (for example, see Patent Document 1).
JP 2001-194683 A

しかしながら、最近では、鉄道会社間の相互乗り入れが進んでおり、また、鉄道網の整備により利用区間に対して複数の乗車経路を選択可能な場合があり、さらに、切符・定期券・プリペイドカード・定期券とプリペイド券との機能を併せ持つ複合券等、様々な乗車券が使用されている。このため、運賃計算プログラムは、乗車区間と乗車券の組み合わせに応じた精算を行わなければならず、運賃計算が複雑化しており、運賃計算プログラムの動作について十分検証するためには、多数のテストデータを用いる必要がある。   Recently, however, railroad companies are increasingly entering each other, and there are cases where multiple boarding routes can be selected for the section of use due to the development of the railway network. In addition, tickets, commuter passes, prepaid cards, Various boarding tickets such as a composite ticket having functions of a commuter pass and a prepaid ticket are used. For this reason, the fare calculation program must be settled according to the combination of the boarding section and the ticket, and the fare calculation is complicated. To fully verify the operation of the fare calculation program, a number of tests are required. It is necessary to use data.

一方、作業者の負担や、運賃計算プログラムの動作確認を行うことができる作業時間等を考慮すると、動作確認に使用可能なテストデータは数万件程度が限界である。そのため、運賃計算プログラムの改修時には、運賃計算プログラムの動作確認を行っているにも関わらず、バグが残る可能性があった。   On the other hand, considering the burden on the worker and the working time during which the operation of the fare calculation program can be confirmed, the limit is about tens of thousands of test data that can be used for the operation confirmation. Therefore, when the fare calculation program was modified, there was a possibility that bugs remained even though the operation of the fare calculation program was confirmed.

そこで、この発明は、必要最小限に絞り込んだテストデータを用いても、運賃算出手段の動作を十分に確認できる運賃検証装置を提供することを目的とする。   Therefore, an object of the present invention is to provide a fare verification device that can sufficiently confirm the operation of the fare calculation means even using test data narrowed down to the minimum necessary.

この発明は、上記の課題を解決するための手段として、以下の構成を備えている。   The present invention has the following configuration as means for solving the above problems.

(1)路線網内の2つの駅間の組合せ毎に、駅間距離を対応づけた2駅間距離テーブル、および駅間距離の範囲と、運賃とを対応づけた距離運賃テーブルを記憶する記憶手段と、
前記路線網内の駅を基準駅として選択する基準駅選択手段と、
前記記憶手段が記憶する前記2駅間距離テーブル、および前記距離運賃テーブルを用い、前記基準駅選択手段が選択した基準駅からの運賃で、前記路線網内の各駅をグループ分けする同一運賃グループ生成手段と、
前記同一運賃グループ生成手段が生成した各グループから、それぞれ1つの駅を代表駅として抽出する代表駅抽出手段と、
前記代表駅抽出手段が抽出した代表駅毎に、前記基準駅選択手段が選択した基準駅との区間を利用区間とする利用区間情報を生成する利用区間情報生成手段と、
前記利用区間情報生成手段が生成した利用区間情報毎に、その利用区間の運賃を算出する運賃算出手段と、
前記利用区間情報生成手段が生成した利用区間情報毎に、その利用区間の運賃を前記運賃算出手段とは異なるロジックで算出する検証用運賃算出手段と、
前記利用区間情報毎に、前記運賃算出手段及び前記検証用運賃算出手段が算出した運賃が一致しているか否かを判定する判定手段と、
を備えている。
(1) A memory for storing a distance table between two stations that associates a distance between stations for each combination between two stations in the route network, and a distance fare table that associates a range of distances between stations and a fare. Means,
A reference station selecting means for selecting a station in the route network as a reference station,
The two stops distance table, and using said distance fare table, in fares from the reference station to the reference station selection means selects the same fare group of grouping stations in the route network to said storage means stores Generating means;
Representative station extraction means for extracting one station as a representative station from each group generated by the same fare group generation means,
For each representative station extracted by the representative station extracting means, use section information generating means for generating use section information having a section with the reference station selected by the reference station selecting means as a use section;
For each use section information generated by the use section information generating means, a fare calculation means for calculating a fare for the use section,
For each use section information generated by the use section information generation means, a verification fare calculation means for calculating the fare of the use section with a logic different from the fare calculation means,
Determining means for determining whether the fare calculated by the fare calculating means and the verification fare calculating means is the same for each use section information;
It has.

この構成においては、運賃検証装置は、路線網から選択した基準駅からの運賃が同一となる駅をグループ化し、各グループから1つの代表駅を抽出する。また、基準駅と各代表駅とを利用区間とする利用区間情報を生成する。そして、この利用区間情報に基づいて、運賃算出手段が算出した運賃と、運賃算出手段とは異なるロジックで検証用運賃算出手段が算出した運賃と、が一致しているか否かを判定手段で判定する。基準駅からの運賃が同一となる駅をグループ分けした場合、1つのグループに含まれる各駅と基準駅との間は当然同じ運賃なので、各駅について利用区間情報を作成しなくても、1つの駅を代表駅として抽出して、この駅を含む利用区間情報を作成することで運賃算出手段の動作を確認することができる。したがって、上記のように基準駅からの運賃が同一となる駅をグループ分けし、各グループから1つの駅を代表駅として抽出することで、利用区間として乗車駅や降車駅に設定する駅数を少なくすることができるので、利用区間情報を大幅に削減でき、運賃算出手段が算出する運賃の判定を、少ない利用区間情報で確実に行うことができる。   In this configuration, the fare verification apparatus groups stations having the same fare from the reference station selected from the route network, and extracts one representative station from each group. Also, use section information is generated with the reference station and each representative station as the use section. Then, based on the use section information, the determination means determines whether or not the fare calculated by the fare calculation means and the fare calculated by the verification fare calculation means with a logic different from the fare calculation means match. To do. When stations with the same fare from the base station are grouped, the stations between the stations in the same group and the base station are of course the same fare, so one station without having to create usage section information for each station Is extracted as a representative station, and the operation of the fare calculation means can be confirmed by creating use section information including this station. Therefore, as described above, the stations with the same fare from the reference station are grouped, and by extracting one station from each group as a representative station, the number of stations set as the use station as the boarding station or the getting-off station can be obtained. Since the number of use sections can be reduced, the use section information can be greatly reduced, and the determination of the fare calculated by the fare calculation means can be reliably performed with a small amount of use section information.

(2)路線網内の2つの駅間の組合せ毎に、駅間距離を対応づけた2駅間距離テーブル、および駅間距離の範囲と、運賃とを対応づけた距離運賃テーブルを記憶する記憶手段と、
有効区間を含む定期券情報を受け付ける定期券情報受付手段と、
前記定期券情報受付手段が受け付けた定期券情報における有効区間内のいずれかの駅を基準駅として選択する基準駅選択手段と、
前記記憶手段が記憶する前記2駅間距離テーブル、および前記距離運賃テーブルを用い、前記基準駅選択手段が選択した基準駅からの運賃で、前記路線網内の各駅をグループ分けする同一運賃グループ生成手段と、
前記同一運賃グループ生成手段が生成した各グループから、それぞれ1つの駅を代表駅として抽出する代表駅抽出手段と、
前記代表駅抽出手段が抽出した代表駅毎に、前記定期券情報受付手段が受け付けた定期券情報における有効区間内のいずれかの駅との区間を利用区間とする利用区間情報を生成する利用区間情報生成手段と、
前記利用区間情報生成手段が生成した利用区間情報毎に、前記定期券情報受付手段が受け付けた定期券情報を用いて、その利用区間に対する精算運賃を算出する運賃算出手段と、
前記利用区間情報生成手段が生成した利用区間情報毎に、前記定期券情報受付手段が受け付けた定期券情報を用いて、その利用区間の精算運賃を前記運賃算出手段とは異なるロジックで算出する検証用運賃算出手段と、
前記利用区間情報毎に、前記運賃算出手段、及び前記検証用運賃算出手段が算出した精算運賃が一致しているか否かを判定する判定手段と、
を備えている。
(2) A memory for storing a distance table between two stations in which distances between stations are associated with each other and a distance fare table in which ranges between the stations are associated with fare for each combination between two stations in the route network. Means,
Commuter pass information receiving means for receiving commuter pass information including valid sections;
Reference station selection means for selecting as a reference station any station in the valid section in the commuter pass information received by the commuter pass information receiving means ,
The two stops distance table, and using said distance fare table, in fares from the reference station to the reference station selection means selects the same fare group of grouping stations in the route network to said storage means stores Generating means;
Representative station extraction means for extracting one station as a representative station from each group generated by the same fare group generation means,
To the representative station extraction means is extracted representative station every time, use to generate the use segment information to the district between the use section of with any of the stations within the effective period of the commuter pass information to the commuter pass information receiving means has received Section information generating means;
For each use section information generated by the use section information generating means, using the commuter pass information received by the commuter pass information receiving means, a fare calculating means for calculating a settlement fare for the use section,
Verification that uses the commuter pass information received by the commuter pass information accepting means for each used sector information generated by the used sector information generating means, and calculates the settlement fare of the used section with a logic different from the fare calculating means. Fare calculation means,
A determination unit that determines whether the fare calculation unit calculated by the fare calculation unit and the verification fare calculation unit match each use section information;
It has.

この構成においては、運賃検証装置は、定期券情報を受け付けると、この定期券の有効区間内の駅を基準駅として選択し、この基準駅からの運賃が同一となる駅のグループを生成し、各グループから1つの代表駅を抽出する。また、各代表駅と、定期券の有効区間内のいずれかの駅と、の区間を利用区間とする利用区間情報を、各代表駅と定期券の有効区間内のいずれかの駅とを組み合わせて生成する。そして、この利用区間情報に基づいて、運賃算出手段が算出した運賃と、運賃算出手段と異なるロジックで検証用運賃算出手段が算出した運賃と、が一致しているか否かを判定手段で判定する。基準駅からの運賃が同一となる駅をグループ分けした場合、1つのグループに含まれる各駅と基準駅との間は同じ運賃なので、各駅を含む利用区間情報を作成しなくても、1つの駅を代表駅として抽出して、この駅を含む利用区間情報を作成することで運賃算出手段の動作を確認することができる。また、定期券を利用して、有効区間内の駅と有効区間外の駅とで乗降した場合には、運賃の精算が必要であるが、上記のように利用区間情報を生成するので、利用区間の数を絞り込むことができ、精算運賃の算出結果を少ないデータでも精度良く、かつ従来よりも短時間で確認することができる。なお、定期券には、プリペイドカードと定期券の機能を有する複合券を含むものとする。   In this configuration, when the fare verification device accepts the commuter pass information, it selects a station in the valid section of this commuter pass as a reference station, generates a group of stations with the same fare from this reference station, One representative station is extracted from each group. In addition, use section information with each representative station and any station in the valid section of the commuter pass as a use section is combined with each representative station and any station in the valid section of the commuter pass To generate. Then, based on the use section information, the determination means determines whether the fare calculated by the fare calculation means and the fare calculated by the verification fare calculation means with a logic different from the fare calculation means match. . When stations with the same fare from the base station are grouped, the stations are the same fare between the stations included in one group and the base station, so one station can be created without creating use section information including each station. Is extracted as a representative station, and the operation of the fare calculation means can be confirmed by creating use section information including this station. Also, if you use a commuter pass and get on and off at a station in the valid zone and a station outside the valid zone, you need to settle the fare, but the usage zone information is generated as described above. The number of sections can be narrowed down, and the calculation result of the settlement fare can be confirmed with a small amount of data with high accuracy and in a shorter time than before. It should be noted that the commuter pass includes a prepaid card and a composite ticket having a commuter pass function.

(3)前記基準駅選択手段は、前記定期券情報受付手段が受け付けた定期券情報における有効区間の端の駅を基準駅として選択する (3) The reference station selecting means selects a station at the end of the valid section in the commuter pass information received by the commuter pass information receiving means as a reference station .

この構成においては、運賃検証装置は、定期券情報を受け付けると、この定期券の有効区間の端の駅を基準駅として選択し、この基準駅からの運賃が同一となる駅毎にグループを生成し、各グループから1つの代表駅を抽出する。また、各代表駅と、定期券の有効区間内のいずれかの駅と、を利用区間とする利用区間情報を生成する。定期券や複合券を利用して、有効区間内の駅と有効区間外の駅とで乗降した場合には、その有効区間の端の駅から有効区間外の駅までの区間について運賃の精算が必要であるが、上記のように利用区間を設定することで、運賃算出手段が算出する精算運賃の判定を、絞り込んだ利用区間情報で確実に行うことができる。   In this configuration, when the fare verification device accepts the commuter pass information, it selects the station at the end of the valid section of this commuter pass as a reference station, and generates a group for each station where the fare from this reference station is the same. Then, one representative station is extracted from each group. Moreover, the use section information which uses each representative station and any station in the effective section of the commuter pass as the use section is generated. If you use a commuter pass or compound ticket and get on and off at a station in the valid section and a station outside the valid section, the fare is settled for the section from the end station of the valid section to the station outside the valid section. Although it is necessary, by setting the usage section as described above, the settlement fare calculated by the fare calculation means can be reliably determined with the narrowed usage section information.

(4)前記基準駅選択手段は、前記定期券情報受付手段が受け付けた定期券情報における有効区間内の乗換駅を基準駅として選択する (4) The reference station selecting means selects a transfer station in the valid section in the commuter pass information received by the commuter pass information receiving means as a reference station .

この構成においては、運賃検証装置は、定期券情報を受け付けると、この定期券の有効区間内の乗換駅を基準駅として選択し、この基準駅からの運賃が同一となる駅毎にグループを生成し、各グループから1つの代表駅を抽出する。また、各代表駅と、定期券の有効区間内のいずれかの駅と、を利用区間とする利用区間情報を生成する。定期券や複合券を利用して、例えば有効区間内の駅で乗車して、乗換駅で他の路線に乗り換えて有効区間外の駅で降車した場合には、その有効区間内の乗換駅から有効区間外の駅までの区間について運賃の精算が必要であるが、上記のように利用区間を設定することで、運賃算出手段が算出する運賃の判定を、絞り込んだ利用区間情報でも確実に行うことができる。なお、乗換駅とは、定期券の有効区間内の駅であって、定期券の有効区間外の別の路線に乗り換えることができる駅のことである。   In this configuration, when receiving the commuter pass information, the fare verification device selects a transfer station in the valid section of the commuter pass as a reference station, and generates a group for each station having the same fare from the reference station. Then, one representative station is extracted from each group. Moreover, the use section information which uses each representative station and any station in the effective section of the commuter pass as the use section is generated. If you use a commuter pass or compound ticket, for example, board at a station in the valid section, change to another route at the transfer station, and get off at a station outside the valid section, from the transfer station in the valid section It is necessary to settle the fare for the section to the station outside the valid section, but by setting the usage section as described above, the fare calculation means can reliably determine the fare calculated by the fare calculation section. be able to. In addition, a transfer station is a station in the valid section of a commuter pass and can be transferred to another route outside the valid section of the commuter pass.

(5)路線網内の2つの駅間の組合せ毎に、駅間距離を対応づけた2駅間距離テーブル、および駅間距離の範囲と、運賃とを対応づけた距離運賃テーブルを記憶する記憶手段と、
有効区間を含む定期券情報を受け付ける定期券情報受付手段と、
前記定期券情報受付手段が受け付けた定期券情報における有効区間内の2つの駅を基準駅として選択する基準駅選択手段と
前記記憶手段が記憶する前記2駅間距離テーブル、および前記距離運賃テーブルを用い、前記基準駅選択手段が選択した一方の基準駅からの運賃で、前記路線網内の各駅をグループ分けした第1のグループ群、及び他方の基準駅からの運賃で、前記路線網内の各駅をグループ分けした第2のグループ群を生成する同一運賃グループ生成手段と、
前記同一運賃グループ生成手段が生成した前記第1のグループ群の各グループから、それぞれ1つの駅を第1の代表駅として抽出するとともに、前記第2のグループ群の各グループから、それぞれ1つの駅を第2の代表駅として抽出する代表駅抽出手段と、
前記代表駅抽出手段が抽出した第1代表駅と、第2の代表駅との組合せ毎に、その区間を利用区間とする利用区間情報を生成する利用区間情報生成手段と、
前記利用区間情報生成手段が生成した利用区間情報毎に、前記定期券情報受付手段が受け付けた定期券情報を用いて、その利用区間に対する精算運賃を算出する運賃算出手段と、
前記利用区間情報生成手段が生成した利用区間情報毎に、前記定期券情報受付手段が受け付けた定期券情報を用いて、その利用区間の精算運賃を前記運賃算出手段とは異なるロジックで算出する検証用運賃算出手段と、
前記利用区間情報毎に、前記運賃算出手段、および前記検証用運賃算出手段が算出した精算運賃が一致しているかどうかを判定する判定手段と、
を備えている。
(5) Memory for storing a distance table between two stations in which distances between stations are associated for each combination between two stations in the route network, and a distance fare table in which ranges of distances between stations are associated with fares. Means,
Commuter pass information receiving means for receiving commuter pass information including valid sections;
Reference station selection means for selecting two stations in the valid section in the commuter pass information received by the commuter pass information receiving means as reference stations ;
The two stops distance table in which the storage means stores, and using said distance fare table, in fares from one reference station to the reference station selecting means selects, first it was grouped stations within the route network 1 of groupings, and fares from other reference stations, the same fare group generating means for generating a second group set which were grouped stations within the route network,
One station is extracted as a first representative station from each group of the first group group generated by the same fare group generation means, and one station is respectively extracted from each group of the second group group. Representative station extracting means for extracting as a second representative station;
A first representative station extracted by the said representative station extracting means, for each combination of the second representative stations, the utilization interval information generating means for generating a utilization interval information between the ward and utilization interval,
For each use section information generated by the use section information generating means, using the commuter pass information received by the commuter pass information receiving means, a fare calculating means for calculating a settlement fare for the use section,
Verification that uses the commuter pass information received by the commuter pass information accepting means for each used sector information generated by the used sector information generating means, and calculates the settlement fare of the used section with a logic different from the fare calculating means. Fare calculation means,
Determining means for determining whether or not the adjusted fare calculated by the fare calculating means and the verification fare calculating means is the same for each use section information;
It has.

この構成においては、運賃検証装置は、定期券情報を受け付けると、この定期券の有効区間内の2つの駅を基準駅として選択し、一方の基準駅からの運賃が同一となる駅をグループ分けして第1のグループ群を生成し、各グループから1つの駅を第1代表駅として抽出する。また、他方の基準駅からの運賃が同一となる駅をグループ分けして第2のグループ群を生成し、各グループから1つの駅を第2代表駅として抽出する。そして、第1代表駅と第2代表駅との区間を利用区間とする利用区間情報を、各第1代表駅と各第2代表駅とを組み合わせて生成する。そして、この利用区間情報に基づいて、運賃算出手段が算出した運賃と、運賃算出手段と異なるロジックで検証用運賃算出手段が算出した運賃と、が一致しているか否かを判定手段で判定する。基準駅からの運賃が同一となる駅をグループ分けした場合、1つのグループに含まれる各駅と基準駅との間は同じ運賃なので、各駅を含む利用区間情報を作成しなくても、1つの駅を代表駅として抽出して、この駅を含む利用区間情報を作成することで運賃算出手段の動作を確認することができる。また、定期券や複合券を利用して、有効区間を挟んで有効区間外の駅と別の有効区間外の駅とで乗降した場合には、運賃の精算が必要であるが、上記のように利用区間情報を生成するので、利用区間を絞り込むことができ、精算運賃の算出結果を少ないデータでも精度良く、かつ従来よりも短時間で確認することができる。   In this configuration, when receiving the commuter pass information, the fare verification device selects two stations in the valid section of the commuter pass as reference stations, and groups the stations with the same fare from one reference station into groups. Then, a first group group is generated, and one station is extracted from each group as a first representative station. Further, stations having the same fare from the other reference station are grouped to generate a second group group, and one station is extracted from each group as a second representative station. And the utilization area information which uses the area of a 1st representative station and a 2nd representative station as a utilization area is produced combining each 1st representative station and each 2nd representative station. Then, based on the use section information, the determination means determines whether the fare calculated by the fare calculation means and the fare calculated by the verification fare calculation means with a logic different from the fare calculation means match. . When stations with the same fare from the base station are grouped, the stations are the same fare between the stations included in one group and the base station, so one station can be created without creating use section information including each station. Is extracted as a representative station, and the operation of the fare calculation means can be confirmed by creating use section information including this station. In addition, if you use a commuter pass or compound ticket and get on and off at a station outside the valid zone and another station outside the valid zone across the valid zone, it is necessary to settle the fare. Since the use section information is generated, the use section can be narrowed down, and the calculation result of the settlement fare can be confirmed with a small amount of data with high accuracy and in a shorter time than before.

(6)前記基準駅選択手段は、前記定期券情報受付手段が受け付けた定期券情報における有効区間の両端の駅を2つの基準駅として選択する (6) The reference station selecting means selects the stations at both ends of the valid section in the commuter pass information received by the commuter pass information receiving means as two reference stations .

この構成においては、運賃検証装置は、定期券情報を受け付けると、この定期券の有効区間内の両端の駅を2つの駅を基準駅として選択し、一方の基準駅からの運賃が同一となる駅をグループ分けして第1のグループ群を生成し、各グループから1つの駅を第1代表駅として抽出する。また、他方の基準駅からの運賃が同一となる駅をグループ分けして第2のグループ群を生成し、各グループから1つの駅を第2代表駅として抽出する。そして、第1代表駅と第2代表駅との区間を利用区間とする利用区間情報を、各第1代表駅と各第2代表駅とを組み合わせて生成する。定期券や複合券を利用して、有効区間を挟んで有効区間外の駅と別の有効区間外の駅とで乗降した場合には、一方の有効区間外の駅から第1代表駅までの区間と、第2代表駅から他方の有効区間外の駅までの区間と、について運賃の精算が必要であるが、上記のように利用区間を設定することで、運賃算出手段が算出する運賃の判定を、絞り込んだ利用区間情報を用いても確実に行うことができる。   In this configuration, when the fare verification device accepts the commuter pass information, it selects the stations at both ends in the valid section of this commuter pass as the two stations as the reference station, and the fare from one reference station is the same. Stations are grouped to generate a first group group, and one station is extracted from each group as a first representative station. Further, stations having the same fare from the other reference station are grouped to generate a second group group, and one station is extracted from each group as a second representative station. And the utilization area information which uses the area of a 1st representative station and a 2nd representative station as a utilization area is produced combining each 1st representative station and each 2nd representative station. If you use a commuter pass or compound ticket and get on and off at a station outside the valid zone and another station outside the valid zone across the valid zone, the station from one valid zone to the first representative station It is necessary to settle the fare for the section and the section from the second representative station to the station outside the other valid section. By setting the usage section as described above, the fare calculation means calculates the fare The determination can be made reliably even using the narrowed usage section information.

(7)前記基準駅選択手段は、前記定期券情報受付手段が受け付けた定期券情報における有効区間内の端の駅と、この有効区間内の乗換駅と、を2つの基準駅として選択する (7) The reference station selection means selects , as two reference stations, the end station in the valid section and the transfer station in the valid section in the commuter pass information received by the commuter pass information receiving means .

この構成においては、運賃検証装置は、定期券情報を受け付けると、この定期券の有効区間内の端の駅と乗換駅を基準駅として選択し、一方の基準駅からの運賃が同一となる駅をグループ分けして第1のグループ群を生成し、各グループから1つの駅を第1代表駅として抽出する。また、他方の基準駅からの運賃が同一となる駅をグループ分けして第2のグループ群を生成し、各グループから1つの駅を第2代表駅として抽出する。そして、第1代表駅と第2代表駅との区間を利用区間とする利用区間情報を、各第1代表駅と各第2代表駅とを組み合わせて生成する。定期券や複合券を利用して、例えば有効区間を挟んで有効区間外の駅から乗車して、乗換駅で他の路線に乗り換えて別の有効区間外の駅で降車した場合には、一方の有効区間外の駅から第1代表駅までの区間と、第2代表駅(乗換駅)から他方の有効区間外の駅までの区間と、について運賃の精算が必要であるが、上記のように利用区間を設定することで、利用区間情報を大幅に削減でき、運賃算出手段が算出する運賃の判定を、少ない利用区間情報で確実に行うことができる。   In this configuration, when the fare verification device accepts the commuter pass information, it selects the end station and transfer station in the valid section of this commuter pass as the reference station, and the fare from one reference station is the same. Are grouped to generate a first group, and one station is extracted from each group as a first representative station. Further, stations having the same fare from the other reference station are grouped to generate a second group group, and one station is extracted from each group as a second representative station. And the utilization area information which uses the area of a 1st representative station and a 2nd representative station as a utilization area is produced combining each 1st representative station and each 2nd representative station. If you use a commuter pass or compound ticket, for example, get on from a station outside the valid section across the valid section, change to another route at the transfer station and get off at a station outside another valid section, It is necessary to settle the fare for the section from the station outside the valid section to the first representative station and the section from the second representative station (transfer station) to the other station outside the valid section. By setting the use section, the use section information can be greatly reduced, and the determination of the fare calculated by the fare calculation means can be reliably performed with less use section information.

(8)前記基準駅選択手段は、前記定期券情報受付手段が受け付けた定期券情報における有効区間の2つの乗換駅を2つの基準駅として選択する (8) The reference station selecting means selects two transfer stations in the valid section in the commuter pass information received by the commuter pass information receiving means as two reference stations .

この構成においては、運賃検証装置は、定期券情報を受け付けると、この定期券の有効区間内の乗換駅と別の乗換駅を基準駅として選択し、一方の基準駅からの運賃が同一となる駅をグループ分けして第1のグループ群を生成し、各グループから1つの駅を第1代表駅として抽出する。また、他方の基準駅からの運賃が同一となる駅をグループ分けして第2のグループ群を生成し、各グループから1つの駅を第2代表駅として抽出する。そして、第1代表駅と第2代表駅との区間を利用区間とする利用区間情報を、各第1代表駅と各第2代表駅とを組み合わせて生成する。定期券や複合券を利用して、例えば有効区間を挟んで有効区間外の駅から乗車して、乗換駅で有効区間内の他の路線に乗り換えて、さらに別の乗換駅で別の路線に乗り換えて有効区間外の駅で降車した場合には、一方の有効区間外の駅から第1代表駅(乗換駅)までの区間と、第2代表駅(乗換駅)から他方の有効区間外の駅までの区間と、について運賃の精算が必要であるが、上記のように利用区間を設定することで、利用区間情報を大幅に削減でき、運賃算出手段が算出する運賃の判定を、少ない利用区間情報で確実に行うことができる。   In this configuration, when the fare verification device accepts the commuter pass information, it selects a transfer station in the valid section of the commuter pass and another transfer station as a reference station, and the fare from one reference station is the same. Stations are grouped to generate a first group group, and one station is extracted from each group as a first representative station. Further, stations having the same fare from the other reference station are grouped to generate a second group group, and one station is extracted from each group as a second representative station. And the utilization area information which uses the area of a 1st representative station and a 2nd representative station as a utilization area is produced combining each 1st representative station and each 2nd representative station. Use a commuter pass or compound ticket, for example, get on from a station outside the valid section across the valid section, transfer to another line in the valid section at the transfer station, and then change to another line at another transfer station If you change and get off at a station outside the valid section, you can get to the section from one station outside the valid section to the first representative station (transfer station) and from the second representative station (transfer station) to the other valid section. It is necessary to settle the fare for the section to the station, but by setting the usage section as described above, the usage section information can be greatly reduced, and the fare calculation means calculated by the fare calculation means is less used. This can be done reliably with section information.

この発明によれば、運賃算出手段の動作を検証するための利用区間情報を大幅に削減でき、運賃算出手段が算出する運賃の判定を、少ない利用区間情報でも精度良く、かつ従来よりも短時間で確認することができる。   According to the present invention, it is possible to significantly reduce the use section information for verifying the operation of the fare calculation means, and the determination of the fare calculated by the fare calculation means can be performed with a small amount of use section information with high accuracy and in a shorter time than before. Can be confirmed.

以下、この発明の実施形態である運賃検証装置について説明する。   Hereinafter, a fare verification apparatus according to an embodiment of the present invention will be described.

図1は、この発明の実施形態に係る運賃検証装置の構成を示すブロック図である。運賃検証装置1は、制御部11、HDD(ハードディスク)12、出力部13、及び操作部14を備えている。また、運賃検証装置1には、自動改札機・精算機・係員端末等の駅務装置に搭載する運賃計算プログラムの動作を検証するために、テスト券生成プログラム、運賃計算プログラム、シミュレーションプログラム(検証用運賃計算プログラム)、及び確認プログラムがインストールされている。運賃検証装置1としては、例えば、パソコン等のコンピュータ装置が好適である。   FIG. 1 is a block diagram showing a configuration of a fare verification apparatus according to an embodiment of the present invention. The fare verification apparatus 1 includes a control unit 11, an HDD (hard disk) 12, an output unit 13, and an operation unit 14. In addition, the fare verification device 1 includes a test ticket generation program, a fare calculation program, a simulation program (verification) to verify the operation of the fare calculation program installed in station equipment such as automatic ticket gates, checkout machines, and clerk terminals. Fare calculation program) and a confirmation program are installed. As the fare verification device 1, for example, a computer device such as a personal computer is suitable.

制御部11は、装置本体の動作を制御する。   The control unit 11 controls the operation of the apparatus main body.

HDD12は、テスト券生成プログラム、運賃計算プログラム、シミュレーションプログラム、及び確認プログラム等を記憶している。   The HDD 12 stores a test ticket generation program, a fare calculation program, a simulation program, a confirmation program, and the like.

出力部13は、接続された出力装置に応じた形式にデータ等の信号を変換し、出力装置に送信する。本実施形態では、出力装置としてディスプレイ装置13aを運賃検証装置1に接続している。ディスプレイ装置13aとしては、例えば液晶ディスプレイ装置が適用可能であり、出力部13から受信したデータ等の画像を表示する。なお、出力装置としては、プリンタ等の印刷装置を接続することも可能である。   The output unit 13 converts a signal such as data into a format corresponding to the connected output device, and transmits the signal to the output device. In the present embodiment, the display device 13a is connected to the fare verification device 1 as an output device. As the display device 13a, for example, a liquid crystal display device is applicable, and an image such as data received from the output unit 13 is displayed. Note that a printing device such as a printer can be connected as the output device.

操作部14は、図示しないキーボード・マウス等の公知の入力デバイスにより構成され、ユーザ(作業者)による入力操作を受け付ける。   The operation unit 14 includes a known input device such as a keyboard / mouse (not shown), and accepts an input operation by a user (operator).

テスト券生成プログラムは、運賃計算プログラムをテストするための情報(以下、テスト券データと称する。)として、切符、定期券、定期券とプリペイド券との両方の機能を併せ持つ複合券等において想定される種々の場合の有効区間情報や利用区間情報を生成する。ここで、種々の場合とは、例えば、定期券で有効区間内から乗車して有効区間外で降車する場合や、複合券で有効区間外から乗車して有効区間外で降車する場合や、1枚の複合券で異なる鉄道会社間の鉄道を乗り継ぎする場合などである。   The test ticket generation program is assumed as information (hereinafter referred to as test ticket data) for testing the fare calculation program in a ticket, a commuter pass, a composite ticket having both functions of a commuter pass and a prepaid ticket, and the like. The valid section information and the use section information in various cases are generated. Here, various cases include, for example, when getting on a commuter pass from within an effective section and getting off outside the effective section, using a compound ticket from outside the effective section and getting off outside the effective section, This is the case when connecting railways between different railway companies with a single composite ticket.

運賃計算プログラムは、テスト券データが入力データとして与えられたときに、このテスト券データに対する第1の運賃データを生成するプログラムである。   The fare calculation program is a program for generating first fare data for the test ticket data when the test ticket data is given as input data.

シミュレーションプログラムは、運賃計算プログラムが生成する第1の運賃データを検証するために、テスト券データが入力データとして与えられると、このテスト券データに対する第2の運賃データを生成するプログラムである。第2の運賃データは、運賃計算プログラムがテスト券データから第1の運賃データとして生成すると想定される予想結果である。   The simulation program is a program for generating second fare data for the test ticket data when the test ticket data is given as input data in order to verify the first fare data generated by the fare calculation program. The second fare data is an expected result that the fare calculation program is assumed to generate as the first fare data from the test ticket data.

シミュレーションプログラムは、運賃計算プログラムとは異なるスペックで作成されている。言い換えれば、シミュレーションプログラムは、運賃計算プログラムのスペックを下げたプログラムであり、本実施形態のシミュレーションプログラムでは、運賃計算プログラムが有する標準的な仕様のみを実装しており、運賃計算プログラムとは異なるロジックで運賃を算出する。   The simulation program is created with different specifications from the fare calculation program. In other words, the simulation program is a program in which the specifications of the fare calculation program are lowered. In the simulation program of this embodiment, only the standard specifications of the fare calculation program are implemented, and the logic is different from that of the fare calculation program. To calculate the fare.

シミュレーションプログラムは、上記のように運賃計算プログラムのある程度標準的な仕様については満足するように作成されているが、運賃計算プログラムの細かい仕様については考慮することなく作成されている。したがって、シミュレーションプログラムの開発期間や開発コストは、運賃計算プログラムよりも抑えることができる。   As described above, the simulation program is created so as to satisfy a certain standard specification of the fare calculation program, but is created without considering the detailed specification of the fare calculation program. Therefore, the development period and development cost of the simulation program can be suppressed as compared with the fare calculation program.

ここで、運賃計算プログラムは自動改札機や精算機や係員端末等の駅務装置に実際に組み込まれるプログラムであり、シミュレーションプログラムは運賃計算プログラムの動作確認を行うのに利用されるプログラムである。運賃検証装置では、後述するように、確認プログラムが、運賃計算プログラムが生成した第1の運賃データと、シミュレーションプログラムが生成した第2の運賃データと、が一致しているか否かを判定するので、運賃計算プログラムの開発者とシミュレーションプログラムの開発者とを別人にするのが望ましい。これにより、両プログラムに同じ誤りが存在する可能性を低下させることができる。   Here, the fare calculation program is a program that is actually incorporated in a station service device such as an automatic ticket gate, a payment machine, or a staff terminal, and the simulation program is a program used to check the operation of the fare calculation program. In the fare verification apparatus, as will be described later, the confirmation program determines whether or not the first fare data generated by the fare calculation program and the second fare data generated by the simulation program match. It is desirable to separate the developer of the fare calculation program from the developer of the simulation program. Thereby, the possibility that the same error exists in both programs can be reduced.

第1の運賃データ及び第2の運賃データには、精算金額、判定金額、精算起点駅、可否判定結果等の項目のデータが含まれる。精算金額は利用区間における判定金額に対して不足している不足金額であり、判定金額は利用区間における乗車料金であり、可否判定結果は精算金額等から利用者が精算が必要かどうかを判定した結果である。   The first fare data and the second fare data include data of items such as a settlement amount, a determination amount, a settlement start station, and a determination result. The settlement amount is a shortage amount that is insufficient with respect to the judgment amount in the use section, the judgment amount is the boarding fee in the use section, and the determination result of whether or not the user needs to settle out from the settlement amount etc. It is a result.

確認プログラムは、テスト券生成プログラムと運賃計算プログラムの実行によって得られた第1の運賃データと、テスト券生成プログラムとシミュレーションプログラムの実行によって得られた第2の運賃データと、を入力データとして与えたときに、第1の運賃データと第2の運賃データと、が一致しているか否かを判定する。そして、利用区間情報毎に判定結果をディスプレイ装置13aに表示させる。   The confirmation program gives as input data first fare data obtained by execution of the test ticket generation program and fare calculation program, and second fare data obtained by execution of the test ticket generation program and simulation program. The first fare data and the second fare data match each other. And the determination result is displayed on the display apparatus 13a for every use area information.

次に、運賃検証装置1の動作手順の概略について説明する。図2は、運賃検証装置の動作手順を示すフローチャートである。   Next, an outline of the operation procedure of the fare verification apparatus 1 will be described. FIG. 2 is a flowchart showing an operation procedure of the fare verification apparatus.

制御部11は、操作部14によって運賃計算プログラムの検証テストを開始する入力があったことを検出すると、HDD12からテスト券生成プログラムを読み出してテスト券データを生成し、HDD12にテスト券データを記憶させる(S1)。   When the control unit 11 detects that the operation unit 14 has input to start the verification test of the fare calculation program, the control unit 11 reads the test ticket generation program from the HDD 12 to generate test ticket data, and stores the test ticket data in the HDD 12. (S1).

続いて、制御部11は、HDD12から運賃計算プログラム及びテスト券データを読み出して、テスト券データを運賃計算プログラムに入力して、テスト券データ毎に第1の運賃データを生成する。そして、制御部11は、全ての第1の運賃データを集計した第1運賃データファイルをHDD12に記憶させる(S2)。なお、ステップS2は、運賃算出手段の動作に相当する。   Subsequently, the control unit 11 reads the fare calculation program and test ticket data from the HDD 12, inputs the test ticket data to the fare calculation program, and generates first fare data for each test ticket data. And the control part 11 memorize | stores the 1st fare data file which totaled all the 1st fare data in HDD12 (S2). Step S2 corresponds to the operation of the fare calculation means.

また、制御部11は、HDD12からシミュレーションプログラム及びテスト券データを読み出して、テスト券データをシミュレーションプログラムに入力して、テスト券データ毎に第2の運賃データを生成する。その後、制御部11は、全ての第2の運賃データを集計した第2運賃データファイルをHDD12に記憶させる(S3)。なお、ステップS3は、検証用運賃算出手段の動作に相当する。   Moreover, the control part 11 reads a simulation program and test ticket data from HDD12, inputs test ticket data into a simulation program, and produces | generates 2nd fare data for every test ticket data. Thereafter, the control unit 11 stores the second fare data file in which all the second fare data is totaled in the HDD 12 (S3). Step S3 corresponds to the operation of the verification fare calculation means.

さらに、制御部11は、HDD12から確認プログラムを読み出して、第1の運賃データと第2の運賃データと、が一致しているか否かを判定する(S4)。具体的には、制御部11は、HDD12から第1運賃データファイルと第2運賃データファイルとを読み出して、テスト券データ毎に両運賃データの各項目のデータを読み出して、一致・不一致の確認を行い、不一致の箇所を抽出する。本実施形態では、例えば、精算料金、判定料金、券面料金、精算起点駅、可否判定結果の項目のデータについて不一致の箇所を抽出する。なお、上記項目のデータだけでなく他の項目のデータについても相違点や不一致の箇所を抽出しても良い。そして、制御部11は、不一致の箇所を集計して、ディスプレイ装置13aに詳細情報を表示する。なお、ステップS4は、判定手段の動作に相当する。   Furthermore, the control part 11 reads a confirmation program from HDD12, and determines whether 1st fare data and 2nd fare data correspond (S4). Specifically, the control unit 11 reads the first fare data file and the second fare data file from the HDD 12, reads the data of each item of both fare data for each test ticket data, and confirms the match / mismatch To extract the mismatched part. In the present embodiment, for example, unmatched portions are extracted with respect to data of items of a settlement fee, a judgment fee, a ticket fee, a settlement origin station, and a determination result. It should be noted that differences or inconsistencies may be extracted not only for the above item data but also for other item data. And the control part 11 totals a mismatch part and displays detailed information on the display apparatus 13a. Step S4 corresponds to the operation of the determination unit.

運賃検証装置1は、不一致の箇所のデータを集計するとすぐにディスプレイ装置13aにそのデータを表示するので、作業者は、相違点や不一致の箇所が発生した原因の解析作業に、すぐに取りかかることができる。   The fare verification device 1 displays the data on the display device 13a as soon as the data of the mismatched portions is totaled, so that the worker can immediately start analyzing the cause of the occurrence of the difference or the mismatched portion. Can do.

次に、テスト券生成プログラムの実行処理手順について、その詳細を説明する。図3は、鉄道会社の路線図及び運賃表の一例である。図4は、2駅間テーブル及び距離運賃テーブルを示す図である。   Next, the details of the execution procedure of the test ticket generation program will be described. FIG. 3 is an example of a route map and fare table of a railway company. FIG. 4 is a diagram showing a table between two stations and a distance fare table.

以下の説明では、鉄道会社Aの路線及び運賃を例に挙げて説明する。鉄道会社Aの路線は、図3(A)に示すように、a1駅〜a7駅を接続する本線L1と、a6駅・a8駅・a9駅を接続する支線L2から成る。また、a6駅は、本線L1と支線L2の乗り換えが可能な乗換駅である。各駅間の距離は、a1駅〜a2駅が2km、a2駅〜a3駅が2km、a3駅〜a4駅が1km、a4駅〜a5駅が2km、a5駅〜a6駅が2km、a6駅〜a7駅が7km、a6駅〜a8駅が2km、a8駅〜a9駅が1kmである。また、図3(B)に示すように、距離に応じた区数で運賃が設定されている。すなわち、1区(0.5〜3.0km)が200円、2区(3.0〜7.0km)が230円、3区(7.0〜13.0km)が260円、4区(13.0〜16.0km)が300円に設定されている。   In the following description, the route and fare of the railway company A will be described as an example. As shown in FIG. 3A, the railway company A has a main line L1 connecting the a1 station to the a7 station and a branch line L2 connecting the a6 station, the a8 station, and the a9 station. Moreover, a6 station is a transfer station where the main line L1 and the branch line L2 can be changed. The distance between each station is 2 km from a1 to a2 stations, 2 km from a2 to a3, 1 km from a3 to a4, 2 km from a4 to a5, 2 km from a5 to a6, a6 to a7 The station is 7 km, the a6 to a8 stations are 2 km, and the a8 to a9 stations are 1 km. In addition, as shown in FIG. 3B, fares are set with the number of wards according to the distance. That is, 1 ward (0.5-3.0 km) is 200 yen, 2 ward (3.0-7.0 km) is 230 yen, 3 ward (7.0-13.0 km) is 260 yen, 4 ward ( 13.0 to 16.0 km) is set to 300 yen.

運賃検証装置1は、図4に示す2駅間距離テーブルTa1、及び距離運賃テーブルTa2をHDD12で記憶している。また、運賃検証装置1は、この2駅間距離テーブルTa1、及び距離運賃テーブルTa2を鉄道会社毎に記憶している。図4には、1つの鉄道会社についての2駅間距離テーブルTa1及び距離運賃テーブルTa2を示している。2駅間距離テーブルTa1は、図4(A)に示すように、2つの駅と、この2つの駅間の距離と、を対応付けたテーブルである。すなわち、前記の図3(A)に示した駅間の距離に基づいてa1駅〜a9駅の2駅間の各距離について設定されたテーブルである。また、距離運賃テーブルTa2は、図4(B)に示すように、距離の範囲と、この範囲の距離に適用される運賃と、を対応付けたテーブルである。   The fare verification device 1 stores a two-station distance table Ta1 and a distance fare table Ta2 shown in FIG. Moreover, the fare verification apparatus 1 stores the distance table Ta1 between the two stations and the distance fare table Ta2 for each railway company. FIG. 4 shows a distance table Ta1 between two stations and a distance fare table Ta2 for one railway company. As shown in FIG. 4A, the two-station distance table Ta1 is a table in which two stations are associated with the distance between the two stations. That is, it is a table set for each distance between two stations, a1 station to a9 station, based on the distance between the stations shown in FIG. Further, as shown in FIG. 4B, the distance fare table Ta2 is a table in which a distance range is associated with a fare applied to the distance in this range.

運賃検証装置1では、運賃計算プログラム及び検証用運賃計算プログラムが、この2駅間距離テーブルTa1及び距離運賃テーブルTa2を用いて、利用区間の運賃を算出する。   In the fare verification device 1, the fare calculation program and the verification fare calculation program calculate the fare of the use section using the distance table Ta1 between the two stations and the distance fare table Ta2.

ここで、路線網のある駅を基準駅に設定して、この基準駅からの運賃が同一であるとする条件でグループ分けした同じ運賃のグループに含まれる駅は、どの駅を選択しても基準駅までの運賃が同じである。そのため、各駅と基準駅を含む区間を生成して個別に運賃を算出しなくても、各グループからひとつの駅を代表駅として抽出して、この代表駅と基準駅を含む利用区間情報を生成することで、運賃計算プログラムの検証が可能である。また、上記のように基準駅からの運賃が同一となる駅をグループ分けし、各グループから1つの駅を代表駅として抽出することで、乗車駅または降車駅に設定する駅数を減らすことができるので、利用区間情報を大幅に削減でき、運賃算出手段が算出する運賃の判定を、少ない利用区間情報で確実に行うことができる。   Here, a station with a route network is set as a reference station, and stations included in the same fare group grouped under the condition that the fare from this reference station is the same, no matter which station is selected The fare to the base station is the same. Therefore, without generating a section including each station and the reference station and calculating the fare separately, one station is extracted from each group as a representative station, and usage section information including this representative station and the reference station is generated. By doing so, it is possible to verify the fare calculation program. In addition, as described above, stations with the same fare from the reference station are divided into groups, and one station is extracted as a representative station from each group, thereby reducing the number of stations set as boarding stations or getting-off stations. Therefore, the usage section information can be significantly reduced, and the determination of the fare calculated by the fare calculation means can be reliably performed with a small amount of usage section information.

そこで、本願発明では、テスト券生成プログラムが生成するテスト用の利用区間情報の数量を削減しても、精度良く運賃計算プログラムの動作を検証できるように、以下のような手順でテスト用の利用区間情報を生成する。図5は、テスト券生成プログラムの利用区間情報の生成手順を説明するためのフローチャートである。図6は、テスト券生成プログラムの利用区間情報の生成手順を説明するための図である。   Therefore, in the present invention, even if the number of test use section information generated by the test ticket generation program is reduced, the test use is performed in the following procedure so that the operation of the fare calculation program can be verified accurately. Generate section information. FIG. 5 is a flowchart for explaining a procedure for generating use section information of the test ticket generation program. FIG. 6 is a diagram for explaining a procedure for generating use section information of the test ticket generation program.

まず、運賃検証装置1において、運賃計算プログラムが2駅間の運賃を正しく算出するか否かを検証するための利用区間情報を生成する場合について説明する。図5に示すように、制御部11は、利用区間情報の生成を開始する入力を、操作部14において検出すると(S11)、予め設定された条件に基づいて路線網の全駅から基準駅を選択する(S12)。例えば、制御部11は、図6(A)に示す路線網のようにa4駅を基準駅に選択する。そして、制御部11は、この基準駅からの運賃が同一であるとする条件で各駅をグループ分けする(S13)。例えば、制御部11は、基準駅として選択したa4駅からの運賃が同一であるとする条件で各駅をグループ分けする。すなわち、図6(B)に示すように、a2駅、a3駅、a5駅がa4駅からの距離が0.5〜3.0kmで運賃が200円となる1区の駅となるので、これらの駅をグループG1とする。また、a1駅、a6駅、a8駅、a9駅がa4駅からの距離が3.0〜7.0kmで運賃が230円となる2区の駅となるので、これらの駅をグループG2とする。さらに、a7駅がa4駅からの距離が7.0〜13.0kmで運賃が260円となる3区の駅となるので、この駅をグループG3とする。なお、ステップS12,S13の処理が請求項1の同一運賃グループ生成手段に相当する。   First, a description will be given of a case where the fare verification apparatus 1 generates usage section information for verifying whether or not the fare calculation program correctly calculates the fare between two stations. As shown in FIG. 5, when the control unit 11 detects an input for starting generation of usage section information in the operation unit 14 (S11), the control unit 11 selects a reference station from all stations in the route network based on preset conditions. Select (S12). For example, the control unit 11 selects the a4 station as the reference station as in the route network illustrated in FIG. And the control part 11 groups each station on the conditions that the fare from this reference station is the same (S13). For example, the control unit 11 groups the stations on the condition that the fare from the a4 station selected as the reference station is the same. That is, as shown in FIG. 6 (B), the a2 station, the a3 station, and the a5 station are stations in the 1st district where the distance from the a4 station is 0.5 to 3.0 km and the fare is 200 yen. The station is group G1. In addition, a1 station, a6 station, a8 station, a9 station will be station of 2 wards where the distance from a4 station is 3.0-7.0km and the fare is 230 yen, so these stations will be group G2 . Furthermore, since the a7 station is a station in the third ward where the distance from the a4 station is 7.0 to 13.0 km and the fare is 260 yen, this station is set as a group G3. In addition, the process of step S12, S13 is equivalent to the same fare group production | generation means of Claim 1.

また、制御部11は、各グループから1つの代表駅を抽出する(S14)。例えば、制御部11は、図6(B)に示すように、グループG1から代表駅としてa5駅を抽出し、グループG2から代表駅としてa6駅を抽出し、グループG3から代表駅としてa7駅を抽出する。なお、ステップS14の処理が請求項1の代表駅抽出手段に相当する。   Moreover, the control part 11 extracts one representative station from each group (S14). For example, as illustrated in FIG. 6B, the control unit 11 extracts a5 station as a representative station from the group G1, extracts a6 station as a representative station from the group G2, and selects a7 station as a representative station from the group G3. Extract. In addition, the process of step S14 is equivalent to the representative station extraction means of Claim 1.

さらに、制御部11は、代表駅毎に、この代表駅と前記基準駅との区間を利用区間とする利用区間情報を生成する(S15)。例えば、制御部11は、前記のように基準駅としてa4駅を選択し、各グループの代表駅としてa5駅、a6駅、a7駅を抽出した場合には、図6(C)に示すように、a4駅〜a5駅(グループG1)、a4駅〜a6駅(グループG2)、a4駅〜a7駅(グループG3)の3つの利用区間情報をテスト券データとして生成する。なお、ステップS15の処理が請求項1の利用区間情報生成手段に相当する。   Furthermore, the control part 11 produces | generates the utilization area information which uses the area of this representative station and the said reference station as a utilization area for every representative station (S15). For example, when the control unit 11 selects the a4 station as the reference station and extracts the a5 station, the a6 station, and the a7 station as the representative stations of each group as described above, as illustrated in FIG. , A4 station to a5 station (group G1), a4 station to a6 station (group G2) and a4 station to a7 station (group G3) are generated as test ticket data. In addition, the process of step S15 is equivalent to the utilization area information generation means of Claim 1.

そして、制御部11は、ステップS15で生成した利用区間情報をテスト券データとしてHDD12に記憶させる(S16)。   And the control part 11 memorize | stores the utilization area information produced | generated by step S15 in HDD12 as test ticket data (S16).

続いて、制御部11は、図2に示したフローチャートのステップS2以降の処理を行う。   Then, the control part 11 performs the process after step S2 of the flowchart shown in FIG.

このように、路線網内の駅を基準駅として選択し、この基準駅からの運賃が同一であるとする条件で、前記路線網内の各駅をグループ分けすると、1つのグループに含まれる各駅と基準駅との間は当然同じ運賃なので、各駅を含む利用区間情報を作成しなくても、1つの駅を代表駅として抽出して、この駅を含む利用区間情報を作成することで運賃計算プログラムの動作を検証することができる。したがって、上記のように基準駅からの運賃が同一となる駅をグループ分けし、各グループから1つの駅を代表駅として抽出することで、乗車駅や降車駅に設定する駅数を少なくすることができるので、利用区間情報を大幅に削減でき、運賃計算プログラムが算出する2駅間の運賃の判定を、少ない利用区間情報でも確実に行うことができる。   In this way, if the stations in the route network are selected as reference stations, and the stations from the reference network are grouped on the condition that the fare from the reference station is the same, each station included in one group Of course, the fare is the same for the reference station, so even if you do not create the use section information that includes each station, you can extract one station as a representative station and create the use section information that includes this station. Can be verified. Therefore, the number of stations set as boarding stations and getting-off stations is reduced by grouping stations with the same fare from the reference station as described above and extracting one station from each group as a representative station. Therefore, the use section information can be significantly reduced, and the fare between the two stations calculated by the fare calculation program can be reliably determined even with a small use section information.

次に、運賃検証装置1で、定期券や複合券を使用したときにおける運賃計算プログラムの精算処理を検証する場合には、制御部11は、定期券または複合券の有効区間情報を生成するか、またはHDD12が記憶する図示しないデータべースから定期券または複合券の有効区間情報を抽出する。そして、テスト券生成プログラムによってこの有効区間情報に基づいて路線網における利用区間を生成する。   Next, when the fare verification device 1 verifies the settlement process of the fare calculation program when a commuter pass or a composite ticket is used, the control unit 11 generates valid section information of the commuter pass or the composite ticket. Alternatively, the valid section information of a commuter pass or a composite ticket is extracted from a database (not shown) stored in the HDD 12. And the use section in a route network is produced | generated based on this effective area information with a test ticket production | generation program.

(1)まず、複合券(定期券)の有効区間情報に基づいて、この有効区間内の駅から有効区間外の駅までを利用区間とする利用区間情報を生成する場合について説明する。図7は、テスト券生成プログラムの利用区間情報の生成手順を説明するためのフローチャートである。図8は、テスト券生成プログラムの利用区間情報の生成手順を説明するための図である。   (1) First, the case where the use section information which makes the use section from the station in this effective section to the station outside the effective section based on the effective section information of the composite ticket (commuter pass) will be described. FIG. 7 is a flowchart for explaining a procedure for generating use section information of the test ticket generation program. FIG. 8 is a diagram for explaining a procedure for generating use section information of the test ticket generation program.

図7に示すように、制御部11は、複合券(定期券)の有効区間内の駅から、有効区間外の駅までを利用区間とする利用区間情報を生成して、この利用区間情報と複合券(定期券)の有効区間情報とにより、運賃計算プログラムの検証テストを開始する入力を、操作部14において検出すると(S21)、複合券または定期券Tiの有効区間情報を作成するか、またはHDD12が記憶する図示しないデータべースから複合券または定期券Tiの有効区間情報を抽出する(S22)。例えば、図8(A)に示すように、有効区間の両端の駅がa1駅とa3駅である定期券Tiのデータを抽出する。なお、ステップS22の処理が請求項2の定期券情報受付手段に相当する。   As shown in FIG. 7, the control unit 11 generates use section information having a use section from a station in the effective section of the composite ticket (commuter pass) to a station outside the effective section, and this use section information and When the input for starting the verification test of the fare calculation program is detected in the operation unit 14 based on the valid section information of the composite ticket (commuter pass), (S21), the valid section information of the composite ticket or the commuter pass Ti is created, Alternatively, the valid section information of the composite ticket or commuter pass Ti is extracted from a database (not shown) stored in the HDD 12 (S22). For example, as shown in FIG. 8 (A), data of commuter pass Ti in which the stations at both ends of the effective section are the a1 station and the a3 station are extracted. In addition, the process of step S22 corresponds to the commuter pass information receiving means of claim 2.

制御部11は、有効区間の一端の駅であるa3駅を基準駅にする(S23)。続いて、制御部11は、基準駅からの運賃が同一であるとする条件で各駅をグループ分けする(S24)。例えば、上記の有効区間の両端の駅がa1駅とa3駅である定期券Tiのデータを抽出した場合には、図8(B)に示すように、a3駅から同一運賃となる有効区間外のa4駅及びa5駅(1区の駅)をグループG11とし、a6駅及びa8駅(2区の駅)をグループG12とし、a7駅及びa9駅(3区の駅)をグループG13とする。なお、ステップS23〜S24の処理が請求項2の同一運賃グループ生成手段に相当する。   The control part 11 makes a3 station which is a station of the one end of an effective area a reference | standard station (S23). Subsequently, the control unit 11 groups the stations under the condition that the fare from the reference station is the same (S24). For example, when the data of commuter pass Ti whose stations at both ends of the above effective section are a1 station and a3 station is extracted, as shown in FIG. 8 (B), outside the effective section where the same fare is obtained from a3 station Stations a4 and a5 (1st station) are group G11, a6 and a8 stations (2nd station) are group G12, and a7 and a9 stations (3rd station) are group G13. Note that the processing of steps S23 to S24 corresponds to the same fare group generation means of claim 2.

制御部11は、グループ分けが完了すると、各グループからひとつの駅を代表駅として抽出する。すなわち、制御部11は、前記のように、基準駅であるa3駅からの運賃が同一となるグループがG11〜G13の3つの場合には、図8(B)に示すように、例えばグループG11の代表駅としてa4駅を、グループG12の代表駅としてa6駅を、グループG13の代表駅としてa7駅を抽出する(S25)。なお、ステップS25の処理が請求項2の代表駅抽出手段に相当する。   When the grouping is completed, the control unit 11 extracts one station from each group as a representative station. That is, as described above, when there are three groups G11 to G13 having the same fare from the reference station a3, as shown in FIG. The a4 station is extracted as the representative station, the a6 station is extracted as the representative station of the group G12, and the a7 station is extracted as the representative station of the group G13 (S25). In addition, the process of step S25 is equivalent to the representative station extraction means of Claim 2.

また、制御部11は、ステップS24で抽出した代表駅を乗車駅または降車駅の一方に設定する(S26)。さらに、制御部11は、定期券の有効区間内の駅から1つの駅を選んで乗車駅または降車駅の他方に設定する(S27)。例えば、定期券の有効区間内の駅であるa2駅を乗車駅または降車駅の他方に設定する。ステップS27では、もちろん、基準駅であるa3駅や、定期券における有効区間の端の駅であるa1駅を乗車駅または降車駅の他方に設定することが可能である。   Further, the control unit 11 sets the representative station extracted in step S24 as one of the boarding station and the getting-off station (S26). Furthermore, the control part 11 selects one station from the stations in the effective area of a commuter pass, and sets it as the other boarding station or alighting station (S27). For example, the a2 station which is a station in the valid section of the commuter pass is set as the other of the boarding station and the getting-off station. In step S27, of course, the reference station a3 station and the a1 station which is the end station of the valid section in the commuter pass can be set as the other of the boarding station and the getting-off station.

そして、制御部11は、ステップS26で設定した乗車駅または降車駅の一方と、ステップS27で設定した乗車駅または降車駅の他方と、を組み合わせて利用区間情報を生成する(S28)。すなわち、制御部11は、図8(C)に示すように、a2駅とa4駅・a6駅・a8駅との組み合わせであるa2駅〜a4駅(グループG11)、a2駅〜a6駅(グループG12)、a2駅〜a7駅(グループG13)の3つの利用区間情報をテスト券データとして生成する。なお、ステップS26〜S28の処理が請求項2の利用区間情報生成手段に相当する。   And the control part 11 produces | generates utilization area information combining one of the boarding station or alighting station set by step S26, and the other of the boarding station or alighting station set by step S27 (S28). That is, as shown in FIG. 8C, the control unit 11 is a combination of a2 station and a4 station / a6 station / a8 station, a2 station to a4 station (group G11), a2 station to a6 station (group). G12), three use section information of a2 station to a7 station (group G13) is generated as test ticket data. In addition, the process of step S26-S28 is corresponded to the utilization area information generation means of Claim 2.

さらに、制御部11は、ステップS28で生成した利用区間の情報と、ステップS22で作成または抽出した定期券または複合券の情報をテスト券データとしてHDD12に記憶させる(S29)。   Further, the control unit 11 causes the HDD 12 to store, as test ticket data, information on the usage section generated in step S28 and information on the commuter pass or compound ticket created or extracted in step S22 (S29).

続いて、制御部11は、図2に示したフローチャートのステップS2以降の処理を行う。   Then, the control part 11 performs the process after step S2 of the flowchart shown in FIG.

図9は、従来のテスト券生成プログラムのテスト券データ生成手順を説明するための図である。ここで、従来のテスト券生成プログラムでは、テスト用のデータとして、定期券データを抽出した場合には、利用区間情報として、路線網における定期券の有効区間内の駅と、定期券有効区間外の駅との、全ての駅についての組み合わせを作成していた。例えば、図9(A)に示すように有効区間の両端の駅がa1駅とa3駅である定期券Tiのデータを抽出した場合には、図9(B)に示すように、テスト用の利用区間情報として、鉄道会社Aの路線における定期券の有効区間内の駅と、定期券有効区間外の駅との、全ての駅についての組み合わせを作成していた。そのため、従来の方法では、a1駅〜a3駅までの3駅とa4駅〜a9駅までの6駅との組み合わせとして18通りの利用区間情報を作成していた。   FIG. 9 is a diagram for explaining a test ticket data generation procedure of a conventional test ticket generation program. Here, in the conventional test ticket generation program, when the commuter pass data is extracted as test data, as the use section information, the stations in the valid section of the commuter pass in the route network and the commuter pass valid section outside I made a combination of all stations with other stations. For example, as shown in FIG. 9 (A), when data of commuter pass Ti whose stations at both ends of the valid section are a1 and a3 stations is extracted, as shown in FIG. As the use section information, combinations of all stations of the stations in the valid section of the commuter pass on the route of the railway company A and the stations outside the commuter pass valid section have been created. Therefore, in the conventional method, 18 types of use section information are created as combinations of 3 stations from the a1 station to the a3 station and 6 stations from the a4 station to the a9 station.

これに対して、本願発明では、上記のように、定期券Tiの有効区間がa1駅〜a3駅の場合には、3通りの利用区間情報を作成して、この定期券における運賃について運賃計算プログラムの算出結果を検証する。   In contrast, in the present invention, as described above, when the valid section of the commuter pass Ti is a1 station to a3 station, three types of use section information are created and the fare calculation is performed for the fare in this commuter pass. Verify the calculation results of the program.

このように、定期券の有効区間内の任意の駅から有効区間外の代表駅までの利用区間情報を作成すると、定期券における有効区間の端の駅から有効区間外の代表駅までの運賃を精算運賃として運賃計算プログラムに算出させることになるので、運賃計算プログラムの動作確認の精度をさらに向上させることができる。   In this way, by creating usage section information from any station in the valid section of the commuter pass to the representative station outside the valid section, the fare from the station at the end of the valid section to the representative station outside the valid section in the commuter pass is calculated. Since the fare calculation program calculates the adjusted fare, the accuracy of the operation check of the fare calculation program can be further improved.

ここで、上記の説明では、利用区間情報の一方の駅として、複合券(定期券)の有効区間の端の駅としたが、有効区間内から他の路線に乗り換える乗換駅を利用区間情報の一方の駅に設定することも可能である。この場合には、定期券の有効区間内の任意の駅から乗換駅で他の路線に乗り換えて有効区間外の駅までの運賃を精算運賃として運賃計算プログラムに算出させることになるので、このような利用区間についても利用区間情報を削減して少ない情報で運賃計算プログラムの検証を行うことができる。   Here, in the above description, as one station of the use section information, it is the station at the end of the effective section of the composite ticket (commuter pass), but the transfer station that transfers from the inside of the effective section to another route is the use section information. It is also possible to set one station. In this case, the fare calculation program will calculate the fare from any station in the valid section of the commuter pass to another station at the transfer station to the station outside the valid section as the adjusted fare. It is possible to verify the fare calculation program with a small amount of information by reducing the usage zone information even for the important usage zone.

(2)次に、複合券(定期券)の有効区間情報に基づいて、この有効区間を挟んで有効区間外の駅から別の有効区間外の駅までを利用区間とする利用区間情報を生成する場合について説明する。図10は、テスト券生成プログラムの図7とは別の利用区間情報の生成手順を説明するためのフローチャートである。図11は、テスト券生成プログラムの図8とは別の利用区間情報の生成手順を説明するための図である。   (2) Next, based on the valid section information of the composite ticket (commuter pass), use section information is generated with the section from the station outside the valid section to another station outside the valid section across this valid section. The case where it does is demonstrated. FIG. 10 is a flowchart for explaining a procedure for generating usage section information different from that in FIG. 7 of the test ticket generation program. FIG. 11 is a diagram for explaining a procedure for generating use section information different from that in FIG. 8 of the test ticket generation program.

ここで、路線網によっては、定期券や複合券の有効区間を挟んで有効区間外の駅から、有効区間内の乗換駅を経由して別の有効区間外の駅までの運賃精算が必要になる場合がある。例えば、図3(A)に示した路線図において、a7駅及びa8駅が有効区間の両端駅である複合券を使用して、a9駅から乗車して、a6駅で支線L2から本線L1に乗り換えて、a4駅で降車する場合などである。   Here, depending on the route network, it is necessary to pay fares from a station outside the valid section across the valid section of the commuter pass or compound ticket to a station outside the valid section via a transfer station in the valid section There is a case. For example, in the route map shown in FIG. 3 (A), use a composite ticket in which the a7 and a8 stations are both ends of the valid section, get on from the a9 station, and go from the branch line L2 to the main line L1 at the a6 station. For example, change trains and get off at a4 station.

そこで、複合券(定期券)の有効区間情報と、この有効区間を挟んで有効区間外の駅から有効区間内の乗換駅を経由して別の有効区間外の駅までの利用区間情報と、を含むテスト券データを作成する場合について説明する。   Therefore, the valid section information of the composite ticket (commuter pass), the use section information from the station outside the valid section across the valid section to the station outside the valid section via the transfer station in the valid section, A case of creating test ticket data including the will be described.

図10に示すように、制御部11は、複合券(定期券)の有効区間を挟んで有効区間外の駅から、乗換駅を経由して有効区間外の別の駅までの運賃について運賃計算プログラムに計算させる利用区間情報を作成して、運賃計算プログラムの検証テストを開始する入力を、操作部14において検出すると(S31)、複合券または定期券Tiの有効区間情報を作成するか、またはHDD12が記憶する図示しないデータべースから複合券または定期券Tiの有効区間情報を抽出する(S32)。例えば、図11(A)に示すように、有効区間の両端の駅がa7駅とa8駅である複合券Tjのデータを抽出する。なお、ステップS32の処理が請求項5の定期券情報受付手段に相当する。   As shown in FIG. 10, the control unit 11 calculates a fare for a fare from a station outside the valid section across the valid section of the composite ticket (commuter pass) to another station outside the valid section via the transfer station. When the operating section 14 detects an input for creating the usage section information to be calculated by the program and starting the verification test of the fare calculation program (S31), it creates valid section information for the composite ticket or the commuter pass Ti, or The valid section information of the composite ticket or commuter pass Ti is extracted from a database (not shown) stored in the HDD 12 (S32). For example, as shown in FIG. 11A, data of a composite ticket Tj in which the stations at both ends of the valid section are the a7 station and the a8 station are extracted. In addition, the process of step S32 corresponds to the commuter pass information receiving means of claim 5.

制御部11は、有効区間の一端の駅であるa8駅を第1基準駅に、また有効区間内の乗換駅であるa6駅を第2基準駅にする(S33)。続いて、制御部11は、第1基準駅からの運賃が同一であるとする条件で各駅をグループ分けする(S34)。また、制御部11は、第2基準駅からの運賃が同一であるとする条件で各駅をグループ分けする(S35)。例えば、上記複合券Tjの有効区間の両端の駅がa7駅とa8駅の定期券データを抽出した場合には、図11(B)に示すように、a8駅から同一運賃となるa9駅(1区の駅)をグループG31とする。また、a6駅から同一運賃となるa5駅(1区の駅)をグループG32とし、a2駅・a3駅・a4駅(2区の駅)をグループG33とし、a1駅(3区の駅)をグループG34とする。なお、グループG31が請求項5に記載の第1のグループ群に相当し、グループG32〜G34が請求項5に記載の第2のグループ群に相当する。また、ステップS33〜S34の処理が請求項5の同一運賃グループ生成手段に相当する。   The control unit 11 sets the a8 station, which is one station of the effective section, as the first reference station, and the a6 station, which is the transfer station in the effective section, as the second reference station (S33). Subsequently, the control unit 11 groups the stations under the condition that the fare from the first reference station is the same (S34). Moreover, the control part 11 groups each station on the conditions that the fare from the 2nd reference station is the same (S35). For example, when the commuter pass data of the a7 station and the a8 station are extracted from the stations at both ends of the valid section of the composite ticket Tj, as shown in FIG. 11B, the a9 station (the same fare from the a8 station) Station 1) is group G31. Also, a5 station (1st station) that has the same fare from a6 station is group G32, a2 station, a3 station, a4 station (2nd station) is group G33, and a1 station (3rd station) is Let it be group G34. The group G31 corresponds to the first group group described in claim 5, and the groups G32 to G34 correspond to the second group group described in claim 5. Moreover, the process of step S33-S34 is equivalent to the same fare group production | generation means of Claim 5.

制御部11は、グループ分けが完了すると、各グループからひとつの駅を代表駅として抽出する。すなわち、制御部11は、前記のように、第1グループ群がG31の1つで、第2グループ群がG32,G33,G34の3つの場合には、図11(B)に示すように、例えばグループG31の代表駅としてa9駅を抽出する(S36)。また、制御部11は、グループG32の代表駅としてa5駅を、グループG33の代表駅としてa3駅を、グループG34の代表駅としてa1駅を抽出する(S37)。なお、ステップS36,S37の処理が請求項5の代表駅抽出手段に相当する。   When the grouping is completed, the control unit 11 extracts one station from each group as a representative station. That is, as described above, when the first group group is one of G31 and the second group group is three of G32, G33, and G34, as shown in FIG. For example, a9 station is extracted as a representative station of group G31 (S36). Moreover, the control part 11 extracts a5 station as a representative station of group G32, a3 station as a representative station of group G33, and a1 station as a representative station of group G34 (S37). In addition, the process of step S36, S37 is equivalent to the representative station extraction means of Claim 5.

さらに、制御部11は、定期券の有効区間を挟んで、代表駅から乗換駅を経由して別の代表駅までの利用区間情報を生成する(S38)。すなわち、制御部11は、図11(C)に示すように、a9駅とa5駅・a3駅・a1駅との組み合わせであるa9駅(グループG31)〜a5駅(グループG32)、a9駅(グループG31)〜a3駅(グループG33)、a9駅(グループG31)〜a1駅(グループG34)の3つの利用区間情報をテスト券データとして生成する。なお、ステップS38の処理が請求項5の利用区間情報生成手段に相当する。   Further, the control unit 11 generates use section information from the representative station to another representative station via the transfer station across the valid section of the commuter pass (S38). That is, as shown in FIG. 11 (C), the control unit 11 is a combination of a9 station and a5 station / a3 station / a1 station, a9 station (group G31) to a5 station (group G32), a9 station ( Three use section information of group G31) to a3 station (group G33) and a9 station (group G31) to a1 station (group G34) is generated as test ticket data. In addition, the process of step S38 corresponds to the use section information generation means of claim 5.

さらに、制御部11は、ステップS38で生成した利用区間の情報と、ステップS32で作成または抽出した定期券または複合券の情報を、テスト券データとしてHDD12に記憶させる(S39)。   Further, the control unit 11 causes the HDD 12 to store, as test ticket data, information on the usage section generated in step S38 and information on the commuter pass or compound ticket created or extracted in step S32 (S39).

続いて、制御部11は、図2に示したフローチャートのステップS2以降の処理を行う。   Then, the control part 11 performs the process after step S2 of the flowchart shown in FIG.

このように、定期券の有効区間外の代表駅から、有効区間内の乗換駅を経由して有効区間外の代表駅までの運賃について、つまり2つの区間の運賃について運賃計算プログラムに計算させることができるので、テスト券データ(利用区間情報)を大幅に削減でき、運賃計算プログラムの動作確認に必要な期間を大幅に短縮することが可能となる。   In this way, let the fare calculation program calculate the fare from the representative station outside the valid section of the commuter pass to the representative station outside the valid section via the transfer station in the valid section, that is, the fare for the two sections Therefore, the test ticket data (usage section information) can be greatly reduced, and the period required for checking the operation of the fare calculation program can be greatly shortened.

ここで、上記の説明では、定期券の有効区間外の駅から、有効区間内の乗換駅を経由して有効区間外の駅まで利用区間とする利用区間情報を生成する場合について説明したが、これに限るものではなく他の駅を基準駅として選択して利用区間情報を生成することが可能である。   Here, in the above description, a case has been described in which use section information is generated as a use section from a station outside the valid section of the commuter pass to a station outside the valid section via a transfer station in the valid section. It is not restricted to this, It is possible to select another station as a reference station and generate use section information.

例えば、定期券の有効区間内の両端の駅を第1基準駅及び第2基準駅として選択することで、乗換駅を経由せずに有効区間を挟んで有効区間外の第1代表駅から有効区間外の第2代表駅までの利用区間情報を生成することができる。   For example, by selecting the stations at both ends in the valid section of the commuter pass as the first reference station and the second reference station, it is effective from the first representative station outside the valid section across the valid section without going through the transfer station. Use section information up to the second representative station outside the section can be generated.

また、定期券の有効区間内に、他の路線に乗り換える乗換駅が2つ以上ある場合には、1つの乗換駅を第1基準駅として選択し、別の乗換駅を第2基準駅として選択することで、有効区間内の2つの乗換駅を経由する有効区間外の第1代表駅から有効区間外の第2代表駅までの利用区間情報を生成することができる。   If there are two or more transfer stations within the valid section of the commuter pass that transfer to another route, select one transfer station as the first reference station and select another transfer station as the second reference station. By doing so, it is possible to generate use section information from the first representative station outside the effective section via the two transfer stations in the effective section to the second representative station outside the effective section.

以上のように、従来のテスト券生成プログラムでは全駅から2つの駅を選んだ組み合わせについて利用区間情報を作成していたが、本発明では、基準駅からの運賃が同一となる駅をグループ化して、各グループから1つの駅を代表駅として抽出し、各代表駅を含む利用区間情報を生成するので、従来に比べて大幅に利用区間情報を削減できる。これにより、運賃計算プログラム及び検証用運賃計算プログラムに算出させる運賃や精算運賃の数量を大幅に削減することができ、テスト用の利用区間情報を必要最小限に絞り込んでいるが、運賃計算プログラムの動作を十分に確認できる。   As described above, in the conventional test ticket generation program, use section information is created for a combination of two stations selected from all stations, but in the present invention, stations having the same fare from the reference station are grouped. Thus, since one station is extracted as a representative station from each group and the use section information including each representative station is generated, the use section information can be greatly reduced as compared with the conventional case. As a result, the fare calculation program and the verification fare calculation program can greatly reduce the amount of fare and settlement fare, and the test section information has been narrowed down to the minimum necessary. Operation can be confirmed sufficiently.

なお、本実施形態では、確認プログラム等のプログラムをHDD12に記憶しているが特にこれに限定されるものではなく、本体に内蔵されるRAM等の記録媒体に記憶しても良い。   In the present embodiment, a program such as a confirmation program is stored in the HDD 12, but the present invention is not particularly limited to this, and may be stored in a recording medium such as a RAM built in the main body.

この発明の実施形態に係る運賃検証装置の構成を示すブロック図である。It is a block diagram which shows the structure of the fare verification apparatus which concerns on embodiment of this invention. 運賃検証装置の動作手順を示すフローチャートである。It is a flowchart which shows the operation | movement procedure of a fare verification apparatus. 鉄道会社の路線図及び運賃表の一例である。It is an example of a route map and a fare table of a railway company. 2駅間テーブル及び距離運賃テーブルを示す図である。It is a figure which shows the table between 2 stations, and a distance fare table. テスト券生成プログラムの利用区間情報の生成手順を説明するためのフローチャートである。It is a flowchart for demonstrating the production | generation procedure of the utilization area information of a test ticket production | generation program. テスト券生成プログラムの利用区間情報の生成手順を説明するための図である。It is a figure for demonstrating the production | generation procedure of the utilization area information of a test ticket production | generation program. テスト券生成プログラムの利用区間情報の生成手順を説明するためのフローチャートである。It is a flowchart for demonstrating the production | generation procedure of the utilization area information of a test ticket production | generation program. テスト券生成プログラムの利用区間情報の生成手順を説明するための図である。It is a figure for demonstrating the production | generation procedure of the utilization area information of a test ticket production | generation program. 従来のテスト券生成プログラムのテスト券データ生成手順を説明するための図である。It is a figure for demonstrating the test ticket data generation procedure of the conventional test ticket generation program. テスト券生成プログラムの図7とは別の利用区間情報の生成手順を説明するためのフローチャートである。It is a flowchart for demonstrating the production | generation procedure of the utilization area information different from FIG. 7 of a test ticket production | generation program. テスト券生成プログラムの図8とは別の利用区間情報の生成手順を説明するための図である。It is a figure for demonstrating the production | generation procedure of the utilization area information different from FIG. 8 of a test ticket production | generation program.

符号の説明Explanation of symbols

1−運賃検証装置
11−制御部
12−HDD(ハードディスク)
13−出力部
13a−ディスプレイ装置
14−操作部
1-Fare verification device 11-Control unit 12-HDD (hard disk)
13-Output unit 13a-Display device 14-Operation unit

Claims (8)

路線網内の2つの駅間の組合せ毎に、駅間距離を対応づけた2駅間距離テーブル、および駅間距離の範囲と、運賃とを対応づけた距離運賃テーブルを記憶する記憶手段と、
前記路線網内の駅を基準駅として選択する基準駅選択手段と、
前記記憶手段が記憶する前記2駅間距離テーブル、および前記距離運賃テーブルを用い、前記基準駅選択手段が選択した基準駅からの運賃で、前記路線網内の各駅をグループ分けする同一運賃グループ生成手段と、
前記同一運賃グループ生成手段が生成した各グループから、それぞれ1つの駅を代表駅として抽出する代表駅抽出手段と、
前記代表駅抽出手段が抽出した代表駅毎に、前記基準駅選択手段が選択した基準駅との区間を利用区間とする利用区間情報を生成する利用区間情報生成手段と、
前記利用区間情報生成手段が生成した利用区間情報毎に、その利用区間の運賃を算出する運賃算出手段と、
前記利用区間情報生成手段が生成した利用区間情報毎に、その利用区間の運賃を前記運賃算出手段とは異なるロジックで算出する検証用運賃算出手段と、
前記利用区間情報毎に、前記運賃算出手段及び前記検証用運賃算出手段が算出した運賃が一致しているか否かを判定する判定手段と、
を備えた運賃検証装置。
Storage means for storing, for each combination between two stations in the route network, a distance table between two stations that associates the distance between the stations, and a distance fare table that associates the range of the distance between the stations and the fare;
A reference station selecting means for selecting a station in the route network as a reference station,
The two stops distance table, and using said distance fare table, in fares from the reference station to the reference station selection means selects the same fare group of grouping stations in the route network to said storage means stores Generating means;
Representative station extraction means for extracting one station as a representative station from each group generated by the same fare group generation means,
For each representative station extracted by the representative station extracting means, use section information generating means for generating use section information having a section with the reference station selected by the reference station selecting means as a use section;
For each use section information generated by the use section information generating means, a fare calculation means for calculating a fare for the use section,
For each use section information generated by the use section information generation means, a verification fare calculation means for calculating the fare of the use section with a logic different from the fare calculation means,
Determining means for determining whether the fare calculated by the fare calculating means and the verification fare calculating means is the same for each use section information;
Fare verification device equipped with.
路線網内の2つの駅間の組合せ毎に、駅間距離を対応づけた2駅間距離テーブル、および駅間距離の範囲と、運賃とを対応づけた距離運賃テーブルを記憶する記憶手段と、
有効区間を含む定期券情報を受け付ける定期券情報受付手段と、
前記定期券情報受付手段が受け付けた定期券情報における有効区間内のいずれかの駅を基準駅として選択する基準駅選択手段と、
前記記憶手段が記憶する前記2駅間距離テーブル、および前記距離運賃テーブルを用い、前記基準駅選択手段が選択した基準駅からの運賃で、前記路線網内の各駅をグループ分けする同一運賃グループ生成手段と、
前記同一運賃グループ生成手段が生成した各グループから、それぞれ1つの駅を代表駅として抽出する代表駅抽出手段と、
前記代表駅抽出手段が抽出した代表駅毎に、前記定期券情報受付手段が受け付けた定期券情報における有効区間内のいずれかの駅との区間を利用区間とする利用区間情報を生成する利用区間情報生成手段と、
前記利用区間情報生成手段が生成した利用区間情報毎に、前記定期券情報受付手段が受け付けた定期券情報を用いて、その利用区間に対する精算運賃を算出する運賃算出手段と、
前記利用区間情報生成手段が生成した利用区間情報毎に、前記定期券情報受付手段が受け付けた定期券情報を用いて、その利用区間の精算運賃を前記運賃算出手段とは異なるロジックで算出する検証用運賃算出手段と、
前記利用区間情報毎に、前記運賃算出手段、及び前記検証用運賃算出手段が算出した精算運賃が一致しているか否かを判定する判定手段と、
を備えた運賃検証装置。
Storage means for storing, for each combination between two stations in the route network, a distance table between two stations that associates the distance between the stations, and a distance fare table that associates the range of the distance between the stations and the fare;
Commuter pass information receiving means for receiving commuter pass information including valid sections;
Reference station selection means for selecting as a reference station any station in the valid section in the commuter pass information received by the commuter pass information receiving means ,
The two stops distance table, and using said distance fare table, in fares from the reference station to the reference station selection means selects the same fare group of grouping stations in the route network to said storage means stores Generating means;
Representative station extraction means for extracting one station as a representative station from each group generated by the same fare group generation means,
To the representative station extraction means is extracted representative station every time, use to generate the use segment information to the district between the use section of with any of the stations within the effective period of the commuter pass information to the commuter pass information receiving means has received Section information generating means;
For each use section information generated by the use section information generating means, using the commuter pass information received by the commuter pass information receiving means, a fare calculating means for calculating a settlement fare for the use section,
Verification that uses the commuter pass information received by the commuter pass information accepting means for each used sector information generated by the used sector information generating means, and calculates the settlement fare of the used section with a logic different from the fare calculating means. Fare calculation means,
A determination unit that determines whether the fare calculation unit calculated by the fare calculation unit and the verification fare calculation unit match each use section information;
Fare verification device equipped with.
前記基準駅選択手段は、前記定期券情報受付手段が受け付けた定期券情報における有効区間の端の駅を基準駅として選択する請求項2に記載の運賃検証装置。 The reference station selection means selects as a reference station to station end of the effective section in the commuter pass information the commuter ticket information receiving unit receives, fare verification apparatus according to claim 2. 前記基準駅選択手段は、前記定期券情報受付手段が受け付けた定期券情報における有効区間内の乗換駅を基準駅として選択する請求項2に記載の運賃検証装置。 The reference station selection means selects as a reference station to transfer station within the effective period of commuter pass information the commuter ticket information receiving unit receives, fare verification apparatus according to claim 2. 路線網内の2つの駅間の組合せ毎に、駅間距離を対応づけた2駅間距離テーブル、および駅間距離の範囲と、運賃とを対応づけた距離運賃テーブルを記憶する記憶手段と、
有効区間を含む定期券情報を受け付ける定期券情報受付手段と、
前記定期券情報受付手段が受け付けた定期券情報における有効区間内の2つの駅を基準駅として選択する基準駅選択手段と
前記記憶手段が記憶する前記2駅間距離テーブル、および前記距離運賃テーブルを用い、前記基準駅選択手段が選択した一方の基準駅からの運賃で、前記路線網内の各駅をグループ分けした第1のグループ群、及び他方の基準駅からの運賃で、前記路線網内の各駅をグループ分けした第2のグループ群を生成する同一運賃グループ生成手段と、
前記同一運賃グループ生成手段が生成した前記第1のグループ群の各グループから、それぞれ1つの駅を第1の代表駅として抽出するとともに、前記第2のグループ群の各グループから、それぞれ1つの駅を第2の代表駅として抽出する代表駅抽出手段と、
前記代表駅抽出手段が抽出した第1代表駅と、第2の代表駅との組合せ毎に、その区間を利用区間とする利用区間情報を生成する利用区間情報生成手段と、
前記利用区間情報生成手段が生成した利用区間情報毎に、前記定期券情報受付手段が受け付けた定期券情報を用いて、その利用区間に対する精算運賃を算出する運賃算出手段と、
前記利用区間情報生成手段が生成した利用区間情報毎に、前記定期券情報受付手段が受け付けた定期券情報を用いて、その利用区間の精算運賃を前記運賃算出手段とは異なるロジックで算出する検証用運賃算出手段と、
前記利用区間情報毎に、前記運賃算出手段、および前記検証用運賃算出手段が算出した精算運賃が一致しているかどうかを判定する判定手段と、
を備えた運賃検証装置。
Storage means for storing, for each combination between two stations in the route network, a distance table between two stations that associates the distance between the stations, and a distance fare table that associates the range of the distance between the stations and the fare;
Commuter pass information receiving means for receiving commuter pass information including valid sections;
Reference station selection means for selecting two stations in the valid section in the commuter pass information received by the commuter pass information receiving means as reference stations ;
The two stops distance table in which the storage means stores, and using said distance fare table, in fares from one reference station to the reference station selecting means selects, first it was grouped stations within the route network 1 of groupings, and fares from other reference stations, the same fare group generating means for generating a second group set which were grouped stations within the route network,
One station is extracted as a first representative station from each group of the first group group generated by the same fare group generation means, and one station is respectively extracted from each group of the second group group. Representative station extracting means for extracting as a second representative station;
A first representative station extracted by the said representative station extracting means, for each combination of the second representative stations, the utilization interval information generating means for generating a utilization interval information between the ward and utilization interval,
For each use section information generated by the use section information generating means, using the commuter pass information received by the commuter pass information receiving means, a fare calculating means for calculating a settlement fare for the use section,
Verification that uses the commuter pass information received by the commuter pass information accepting means for each used sector information generated by the used sector information generating means, and calculates the settlement fare of the used section with a logic different from the fare calculating means. Fare calculation means,
Determining means for determining whether or not the adjusted fare calculated by the fare calculating means and the verification fare calculating means is the same for each use section information;
Fare verification device equipped with.
前記基準駅選択手段は、前記定期券情報受付手段が受け付けた定期券情報における有効区間の両端の駅を2つの基準駅として選択する請求項5に記載の運賃検証装置。 The reference station selection means selects the station across the effective section in the commuter pass information the commuter ticket information receiving unit receives the two reference stations, freight verification apparatus according to claim 5. 前記基準駅選択手段は、前記定期券情報受付手段が受け付けた定期券情報における有効区間内の端の駅と、この有効区間内の乗換駅と、を2つの基準駅として選択する請求項5に記載の運賃検証装置。 The reference station selection means selects the station end of the effective period of the commuter pass information receiving unit commuter ticket information received, the transfer station in the valid interval, as two reference stations, according to claim 5 The fare verification device described in 1. 前記基準駅選択手段は、前記定期券情報受付手段が受け付けた定期券情報における有効区間の2つの乗換駅を2つの基準駅として選択する請求項5に記載の運賃検証装置。 The reference station selection means selects the two transfer station of the effective period of commuter pass information the commuter ticket information receiving unit receives the two reference stations, freight verification apparatus according to claim 5.
JP2005344501A 2005-11-29 2005-11-29 Fare verification device Expired - Fee Related JP4857737B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005344501A JP4857737B2 (en) 2005-11-29 2005-11-29 Fare verification device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005344501A JP4857737B2 (en) 2005-11-29 2005-11-29 Fare verification device

Publications (2)

Publication Number Publication Date
JP2007148928A JP2007148928A (en) 2007-06-14
JP4857737B2 true JP4857737B2 (en) 2012-01-18

Family

ID=38210256

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005344501A Expired - Fee Related JP4857737B2 (en) 2005-11-29 2005-11-29 Fare verification device

Country Status (1)

Country Link
JP (1) JP4857737B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5023860B2 (en) * 2007-07-24 2012-09-12 オムロン株式会社 Test pattern generator for fare calculation verification
JP5902434B2 (en) * 2011-10-14 2016-04-13 株式会社 ヴァル研究所 Route search method for transportation, route search server, and computer program
JP5947596B2 (en) * 2012-03-30 2016-07-06 株式会社日立製作所 Passenger flow information generation system and passenger flow information generation method
JP6121585B2 (en) * 2016-03-10 2017-04-26 株式会社 ヴァル研究所 Route search method for transportation, route search server, and computer program
JP6793535B2 (en) * 2016-12-07 2020-12-02 共同印刷株式会社 Activity base estimation device, activity base estimation method and activity base estimation program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5275400A (en) * 1975-12-19 1977-06-24 Toshiba Corp Section identification system in automatic ticket examining apparatus
JPH09120367A (en) * 1995-10-26 1997-05-06 Nec Corp Inspection system for charge calculation system program
JP3809617B2 (en) * 1996-04-17 2006-08-16 株式会社高見沢サイバネティックス Automatic ticket vending machine
JP3419639B2 (en) * 1996-11-19 2003-06-23 日本信号株式会社 Ticketing machine fare confirmation device
JP2004030060A (en) * 2002-06-24 2004-01-29 Toshiba Corp Station service equipment development system, automatic ticket gate development system, station service equipment development method, and automatic ticket gate development method

Also Published As

Publication number Publication date
JP2007148928A (en) 2007-06-14

Similar Documents

Publication Publication Date Title
JP4857737B2 (en) Fare verification device
KR101020132B1 (en) Automated Test System and Method of Financial Business Program
JP2004030060A (en) Station service equipment development system, automatic ticket gate development system, station service equipment development method, and automatic ticket gate development method
CN109685498B (en) Transaction file generation method and related device
JPH09120367A (en) Inspection system for charge calculation system program
JP4852872B2 (en) Fare determination program confirmation device, fare determination program confirmation method, and confirmation program
JP2009064099A (en) Transfer boarding system
JP7380305B2 (en) Setting confirmation terminal, station equipment, and setting confirmation method
JP5292757B2 (en) Station service equipment, station service system
JP4857714B2 (en) Boarding fee verification system
KR20090083622A (en) Automated Quality Test Using Automatic Data Generation
JP4984599B2 (en) Failure case search system, fare calculation failure case search system, charge calculation failure case search system
JP3211167B2 (en) POS system
JP2025147287A (en) Equipment test processing device, equipment test processing method, and equipment test processing program
JP5023860B2 (en) Test pattern generator for fare calculation verification
US20250061521A1 (en) Comprehensive financial management system using enterprise resource management program
JP4570088B2 (en) Fare verification system
CN108197919A (en) A Gray Transaction Processing Method for Rail Transit Automatic Fare Collection System
JP2005135270A (en) Station service terminal equipment and station service system
JP3562654B2 (en) Automatic ticket gate method and device
Radtke Timetable management and operational simulation: methodology and perspectives
JP4570087B2 (en) Commuter pass route data confirmation system
Van Tang et al. Modeling and validating the train fare calculation and adjustment system using VDM++
KR20240163253A (en) Apparatus, method and computer readable storage medium for analyzing refuel pattern
CN108228558B (en) Method and system for processing special characters in invoice to complete copying, reporting and clearing card

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080708

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110328

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110405

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110527

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20110527

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111017

R150 Certificate of patent or registration of utility model

Ref document number: 4857737

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20141111

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees