JP2011192073A - Device and method for verifying specification request - Google Patents

Device and method for verifying specification request Download PDF

Info

Publication number
JP2011192073A
JP2011192073A JP2010058315A JP2010058315A JP2011192073A JP 2011192073 A JP2011192073 A JP 2011192073A JP 2010058315 A JP2010058315 A JP 2010058315A JP 2010058315 A JP2010058315 A JP 2010058315A JP 2011192073 A JP2011192073 A JP 2011192073A
Authority
JP
Japan
Prior art keywords
functional
request
processing time
function
power consumption
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.)
Withdrawn
Application number
JP2010058315A
Other languages
Japanese (ja)
Inventor
Mutsumi Abe
睦 阿部
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.)
Toyota Motor Corp
Toyota InfoTechnology Center Co Ltd
Original Assignee
Toyota Motor Corp
Toyota InfoTechnology Center Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toyota Motor Corp, Toyota InfoTechnology Center Co Ltd filed Critical Toyota Motor Corp
Priority to JP2010058315A priority Critical patent/JP2011192073A/en
Publication of JP2011192073A publication Critical patent/JP2011192073A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a technique of verifying whether a non-function request set as a specification is satisfied in a verification object. <P>SOLUTION: Information indicating a request related to a non-function when executing a plurality of processes is obtained by input by an input device or read from a storage medium, the value of the non-function related to the plurality of processes is obtained, and whether the value of the non-function satisfies the request related to the non-function is evaluated. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、検証対象であるシステムや装置の非機能を検証する技術に関する。   The present invention relates to a technique for verifying non-functions of a system or apparatus to be verified.

開発段階で要求仕様を検証する方法としては、UML(Unified Modeling Language)
やPromela (Process Meta Language)といったモデリング言語で要求仕様をモデル化し、
このモデルをSPINやSMLといったモデル検査ツールで検査することが知られている。
UML (Unified Modeling Language) is a method for verifying required specifications at the development stage.
And modeling required specifications in modeling languages such as Promela (Process Meta Language)
It is known to inspect this model with a model inspection tool such as SPIN or SML.

また、このようなモデル検査は、システムの開発段階で用いられており、システムの実用段階で用いられるものではなかった。   Further, such model checking is used in the system development stage, and is not used in the system practical use stage.

特開2009−075681号公報JP 2009-075681 A 特開2008−305079号公報JP 2008-305079 A 特開2009−129463号公報JP 2009-129463 A 特開2009−116815号公報JP 2009-116815 A 特開2008−112224号公報JP 2008-112224 A

従来のモデル検査は、機能要求をモデル化し、このモデルについて検査を行うので、このモデルに反映されない非機能要求については、検証することができなかった。   In the conventional model check, a function request is modeled, and the model is checked. Therefore, a non-function request that is not reflected in the model cannot be verified.

そこで、本発明は検証対象において非機能要求が満たされているか否かを検証する技術を提供する。   Therefore, the present invention provides a technique for verifying whether or not non-functional requirements are satisfied in the verification target.

上記課題を解決するために本発明では、以下の手段または処理を採用した。   In order to solve the above problems, the present invention employs the following means or processing.

即ち、本発明に係る仕様要求検証装置は、
複数のプロセスを実行する場合の非機能に係る要求を示す情報を入力装置による入力或いは記憶媒体からの読み出しによって取得する要求取得手段と、
前記複数のプロセスにかかる非機能の値を求める非機能値取得手段と、
前記非機能の値が、前記非機能に係る要求を満たしているか否かを評価する評価手段と、を備える。
That is, the specification requirement verification apparatus according to the present invention is:
Request acquisition means for acquiring information indicating a request related to a non-function when executing a plurality of processes by input from an input device or reading from a storage medium;
Non-functional value obtaining means for obtaining non-functional values for the plurality of processes;
Evaluation means for evaluating whether or not the non-functional value satisfies the non-functional requirement.

前記非機能の値は、少なくとも処理時間、消費電力、費用の何れかを含むものでも良い。   The non-functional value may include at least one of processing time, power consumption, and cost.

前記非機能値取得手段は、前記プロセスの実行結果を実測することにより前記非機能の値を取得しても良い。   The non-functional value acquisition unit may acquire the non-functional value by actually measuring the execution result of the process.

更に本発明に係る仕様要求検証方法は、
複数のプロセスを実行する場合の非機能に係る要求を示す情報を入力装置による入力或いは記憶媒体からの読み出しによって取得するステップと、
前記複数のプロセスにかかる非機能の値を求めるステップと、
前記非機能の値が、前記非機能に係る要求を満たしているか否かを評価するステップと、をコンピュータが実行する。
Furthermore, the specification requirement verification method according to the present invention includes:
Obtaining information indicating a request related to a non-function when executing a plurality of processes by input by an input device or reading from a storage medium;
Determining a non-functional value for the plurality of processes;
The computer executes a step of evaluating whether or not the non-functional value satisfies the non-functional requirement.

前記仕様要求検証方法において、前記非機能の値は、少なくとも処理時間、消費電力、費用の何れかを含むものでも良い。   In the specification requirement verification method, the non-functional value may include at least one of processing time, power consumption, and cost.

前記仕様要求検証方法において、前記プロセスの実行結果を実測することにより前記非機能の値を取得しても良い。   In the specification requirement verification method, the non-functional value may be acquired by actually measuring an execution result of the process.

なお、本発明は、上記仕様要求検証方法の各ステップをコンピュータに実行させるためのプログラムとして捉えることもできる。また、本発明は、前記プログラムをコンピュータが読み取り可能に記録した記録媒体(記憶媒体)として捉えることもできる。   In addition, this invention can also be grasped | ascertained as a program for making a computer perform each step of the said specification requirement verification method. The present invention can also be understood as a recording medium (storage medium) in which the program is recorded so as to be readable by a computer.

ここで、コンピュータが読み取り可能な記録媒体とは、データやプログラム等の情報を電気的、磁気的、光学的、機械的、または化学的作用によって蓄積し、コンピュータから読み取ることができる記録媒体をいう。このような記録媒体の内、コンピュータから取り外し可能なものとしては、例えばフレキシブルディスク、光磁気ディスク、CD-ROM、CD-R/W、DVD、DAT、8mmテープ、メモリカード等がある。   Here, the computer-readable recording medium refers to a recording medium that accumulates information such as data and programs by electrical, magnetic, optical, mechanical, or chemical action and can be read from the computer. . Examples of such recording media that can be removed from the computer include a flexible disk, a magneto-optical disk, a CD-ROM, a CD-R / W, a DVD, a DAT, an 8 mm tape, and a memory card.

また、コンピュータに固定された記録媒体としてハードディスクやROM(リードオンリーメモリ)等がある。   Further, there are a hard disk, a ROM (read only memory), and the like as a recording medium fixed to the computer.

上記手段およびステップの各々は可能な限り互いに組み合わせて本発明を構成することができる。   Each of the above means and steps can be combined with each other as much as possible to constitute the present invention.

本発明によれば、検証対象において非機能要求が満たされているか否かを検証する技術を提供できる。   ADVANTAGE OF THE INVENTION According to this invention, the technique which verifies whether the non-functional request | requirement is satisfy | filled in verification object can be provided.

仕様要求検証装置のブロック図Block diagram of specification requirement verification device 仕様要求検証方法の説明図Illustration of specification requirement verification method 検証対象の装置の説明図Explanatory drawing of the device to be verified 機能要求の説明図Functional request illustration 機能要求の説明図Functional request illustration プロセス名とプロセスの結果を対応付けて記憶したテーブルの一例を示す図The figure which shows an example of the table which matched and memorize | stored the process name and the result of the process プロセス名と非機能値を対応付けて記憶したテーブルの一例を示す図The figure which shows an example of the table which matched and memorize | stored the process name and the non-functional value 実施形態2の説明図Explanatory drawing of Embodiment 2

〈実施形態1〉
以下、本発明の実施の形態について説明する。まず、本発明の実施の形態にかかる仕様要求検証装置の構成の一例について図1を用いて説明する。
<Embodiment 1>
Embodiments of the present invention will be described below. First, an example of the configuration of the specification requirement verification apparatus according to the embodiment of the present invention will be described with reference to FIG.

この仕様要求検証装置1は、新たなシステムや製品、ソフトウェアを開発する段階で複数の機能を実行した場合に、処理時間や消費電力、コストが所定の値に収まるかといった非機能要求が満たされるか否かを検証する。   The specification requirement verification apparatus 1 satisfies non-functional requirements such as whether processing time, power consumption, and cost fall within predetermined values when a plurality of functions are executed at the stage of developing a new system, product, or software. Verify whether or not.

図1は本実施形態に係る仕様要求検証装置の概略を説明する図である。図1に示すよう
に、仕様要求検証装置1は、データの演算処理を行うデータ処理部11と、他の装置との通信を行う通信処理部12、演算処理の為のデータやソフトウェアを記憶する記憶部(ハードディスク)13、入力部14、出力部15を備えたコンピュータである。
FIG. 1 is a diagram for explaining the outline of the specification requirement verification apparatus according to this embodiment. As shown in FIG. 1, the specification request verification apparatus 1 stores a data processing unit 11 that performs data arithmetic processing, a communication processing unit 12 that performs communication with other devices, and data and software for arithmetic processing. The computer includes a storage unit (hard disk) 13, an input unit 14, and an output unit 15.

通信処理部12は、ネットワークやケーブル等の回線を介して他のコンピュータとの通信を行う。   The communication processing unit 12 communicates with another computer via a network or a line such as a cable.

記憶部13は、オペレーティングシステム(OS)やアプリケーションプログラム(仕様要求検証プログラム)を記憶している。また、記憶部13は、検証に用いるデータテーブル等も記憶している。   The storage unit 13 stores an operating system (OS) and application programs (specification request verification program). The storage unit 13 also stores a data table used for verification.

入力部14は、データ処理部11へ情報を入力する手段であり、キーボードやポインティングデバイスといったユーザインタフェースや、メモリカードやCD−ROM等の記憶媒体から情報を読み取るデバイスを有する。   The input unit 14 is a means for inputting information to the data processing unit 11, and includes a user interface such as a keyboard and a pointing device, and a device that reads information from a storage medium such as a memory card or a CD-ROM.

出力部15は、データ処理部11の処理結果を出力する手段であり、処理結果等を表示する表示装置や、データを印刷するプリンターを有する。   The output unit 15 is a unit that outputs the processing result of the data processing unit 11, and includes a display device that displays the processing result and a printer that prints data.

データ処理部11は、CPUやメインメモリを有し、前記OSやアプリケーションプログラムを記憶部13からメインメモリに読み出し、読み出したOSやアプリケーションプログラムに従ってCPUが演算処理を行う。この演算処理により、CPUは、要求取得部21や、非機能値取得部22、評価部23としても機能する。   The data processing unit 11 includes a CPU and a main memory, reads the OS and application programs from the storage unit 13 to the main memory, and the CPU performs arithmetic processing according to the read OS and application programs. Through this calculation process, the CPU also functions as the request acquisition unit 21, the non-functional value acquisition unit 22, and the evaluation unit 23.

データ処理部11のCPU、即ち要求取得部21は、検証対象に要求される機能や入力装置による入力或いは記憶媒体からの読み出しによって複数のプロセスを実行した場合の非機能に係る要求を示す情報を取得する。   The CPU of the data processing unit 11, that is, the request acquisition unit 21 stores information indicating requests related to non-functions when a plurality of processes are executed by a function required for a verification target, input by an input device, or reading from a storage medium. get.

非機能値取得部22は、前記複数のプロセスの実行によって変化する非機能の値を求める。   The non-functional value acquisition unit 22 obtains non-functional values that change due to the execution of the plurality of processes.

評価部23は、前記非機能の値が、前記非機能に係る要求を満たしているか否かを評価する。   The evaluation unit 23 evaluates whether or not the non-functional value satisfies the non-functional requirement.

図2は、本例の仕様要求検証装置1がプログラムに従って実行する仕様要求検証方法の説明図である。   FIG. 2 is an explanatory diagram of a specification request verification method executed by the specification request verification apparatus 1 of this example according to a program.

まず、仕様要求検証装置1は、機能要求を示す情報及び非機能要求を示す情報を取得する(ステップS1,S2)。例えば、仕様要求検証装置1は、ユーザが入力部14のキーボードやポインティングデバイスを操作して入力した情報、或いは他のコンピュータから送信された情報を通信処理部12を介して受信する。また、仕様要求検証装置1は、CD−ROM等のリムーバルディスクや、記憶部13、メインメモリ等の記憶媒体から非機能要求を示す情報を読み出す、或いは通信処理部12によりネットワークを介して他のコンピュータから読み出して取得しても良い。   First, the specification request verification apparatus 1 acquires information indicating a function request and information indicating a non-function request (steps S1 and S2). For example, the specification request verification apparatus 1 receives, via the communication processing unit 12, information input by the user by operating a keyboard or pointing device of the input unit 14 or information transmitted from another computer. The specification request verification apparatus 1 reads information indicating a non-functional request from a removable disk such as a CD-ROM, a storage medium such as a storage unit 13 or a main memory, or other information via the network by the communication processing unit 12. You may read and acquire from a computer.

次に、仕様要求検証装置1は、ステップS1で取得した機能要求に基づき、要求されている機能(プロセス)を実行する(ステップS3)。   Next, the specification request verification apparatus 1 executes the requested function (process) based on the function request acquired in step S1 (step S3).

そして、仕様要求検証装置1の非機能値取得部22は、プロセスを実行したことにより変化する非機能の値(以下、単に非機能値とも称する)、例えば処理時間や消費電力、コストを求める(ステップS4)。なお、非機能値を求める手法としては、プロセス毎に関
数を設定しておき、この関数で入力値を演算するものや、プロセス毎の非機能値を予めテーブルに登録しておき、このテーブルを参照して該当する非機能値を読み出すものや、ユーザや他のコンピュータ等から入力を受けるもの、プロセスの実行時に変化する値を実測するもの等が挙げられる。
Then, the non-functional value acquisition unit 22 of the specification request verification apparatus 1 obtains a non-functional value (hereinafter also simply referred to as a non-functional value) that changes as a result of executing the process, for example, processing time, power consumption, and cost ( Step S4). As a method for obtaining the non-functional value, a function is set for each process, an input value is calculated with this function, or a non-functional value for each process is registered in a table in advance. Examples include those that read out corresponding non-functional values by reference, those that receive input from a user or another computer, and those that actually measure values that change during process execution.

また、仕様要求検証装置1の評価部23は、上記で求めた非機能値がステップS2で取得した非機能要求を満たすか否かを評価する(ステップS5)。例えば、プロセスを実行したときの所要時間が所定時間以内か、プロセスを実行したときの消費電力が所定電力以下か、プロセスを実行するのに採用した機器のコストが所定値以下かといった条件を満たしているか否かを判定する。   Further, the evaluation unit 23 of the specification request verification apparatus 1 evaluates whether or not the non-functional value obtained above satisfies the non-functional request acquired in Step S2 (Step S5). For example, the time required for executing the process is within a predetermined time, the power consumption when the process is executed is less than the predetermined power, or the cost of the equipment used to execute the process is less than the predetermined value. It is determined whether or not.

〈具体例〉
次に、上記仕様要求検証装置1が実行する仕様要求検証方法について具体例を挙げて説明する。図3は、開発する車載カメラシステム、即ち検証対象を示す図である。図3の車載カメラシステムは、カメラ41、輪郭抽出部42、輪郭合成部43、表示装置44を備え、カメラ映像から道路上の物体の輪郭を抽出し、この輪郭を元画像と合成して表示装置に表示する。このとき輪郭を所定の線幅や色で描画して強調することにより、対向車のライトによって逆光になっている状況や霧が発生した状況であっても道路上の物体を明示するものである。
<Concrete example>
Next, the specification requirement verification method executed by the specification requirement verification apparatus 1 will be described with a specific example. FIG. 3 is a diagram illustrating an in-vehicle camera system to be developed, that is, a verification target. The in-vehicle camera system of FIG. 3 includes a camera 41, a contour extracting unit 42, a contour synthesizing unit 43, and a display device 44, extracts the contour of an object on the road from the camera image, and synthesizes this contour with the original image for display. Display on the device. At this time, the contour is drawn with a predetermined line width and color and emphasized to clearly show the object on the road even in the situation where the light from the oncoming vehicle is backlit or fog is generated. .

この車載カメラシステムにおいて、カメラ41は、車両の先方或いは後方の道路上を撮影し、撮影画像を輪郭抽出部42及び理輪郭合成部43に送る機能が要求される。   In this in-vehicle camera system, the camera 41 is required to have a function of photographing a road ahead or behind the vehicle and sending the photographed image to the contour extraction unit 42 and the physical contour synthesis unit 43.

また、輪郭抽出部42は、撮影画像中の画素の濃度値が急激に変化する部分を微分演算やパターンマッチングにより輪郭として抽出する機能が要求される。   Further, the contour extracting unit 42 is required to have a function of extracting a portion where the density value of a pixel in the photographed image changes rapidly as a contour by differentiation or pattern matching.

輪郭合成部43は、輪郭抽出部42で抽出した輪郭を元画像と合成する機能が要求される。   The contour synthesizing unit 43 is required to have a function of synthesizing the contour extracted by the contour extracting unit 42 with the original image.

表示装置44は、例えばカーナビゲーションシステムのディスプレイやHUDであり、輪郭合成部43で合成した画像を運転者に対して表示する機能が要求される。   The display device 44 is, for example, a display or HUD of a car navigation system, and is required to have a function of displaying an image synthesized by the contour synthesis unit 43 to the driver.

即ち、この車載カメラシステムについて図2のステップS1では、上記のように各部41〜44に要求される機能要求を示す情報が入力される。なお、この機能要求で要求される機能(プロセス内容)は、所定の論理式(例えば、LTL(Linear Temporal Logic)
:線形時相論理の論理式や、CTL(Computation Tree Logic):計算木時相論理の論理式などや、プロメラ(Promela)などの記述言語など)によって記述できる。
That is, in this vehicle camera system, in step S1 of FIG. 2, information indicating function requests required for the respective units 41 to 44 is input as described above. The function requested by this function request (process content) is a predetermined logical expression (for example, LTL (Linear Temporal Logic)
: Linear temporal logic formula, CTL (Computation Tree Logic): computational tree temporal logic formula, description language such as Promela, etc.

図4は機能要求によるモデルを示す図である。本例では、図4に示すようにカメラで画像を撮影するプロセス(撮影P1)や、撮影画像から輪郭を抽出するプロセス(プロセスP2)、元画像に輪郭を合成するプロセス(合成P3)、合成後の画像を表示するプロセス(表示P4)を有する。   FIG. 4 is a diagram showing a model based on a function request. In this example, as shown in FIG. 4, a process of taking an image with a camera (shooting P1), a process of extracting an outline from the taken image (process P2), a process of synthesizing an outline with an original image (synthesis P3), and synthesis A process (display P4) for displaying a later image is included.

図4の例では、機能要求を示す情報として、プロセス名(プロセスの識別情報)と、論理式等のプロセス内容を取得し、データ処理部11がプロセス内容に従って入力値を演算して結果を求める構成であり、従来行われていた機能要求の検証と並行して非機能要求の検証を行えるようにしている。なお、機能要求の検証と非機能要求の検証は、必ずしも並行して行わなければならないものでは無い。例えば、各プロセスの結果を前記演算によって予め求めておく或いはプロセスの結果として想定値を定めておき、このプロセスの結果とプロセス名を前記機能要求を示す情報として入力しても良い。図5は、プロセスの結果
を入力する例を示し、図6はプロセス名とプロセスの結果を対応付けて記憶したテーブルの一例を示す図である。なお、プロセス名はプロセスを識別するための情報であり、プロセス毎に固有の情報が付されている。図6では、カメラAを用いて撮影するプロセスのプロセス名がP1A、結果がVGAカラー画像(640×480×24ビット)であり、カメラBを用いて撮影するプロセスのプロセス名がP1B、結果がVGAカラー画像(800×600×24ビット)であり、カメラCを用いて撮影するプロセスのプロセス名をP1C、結果がXGAカラー画像(1024×768×24ビット)である。
In the example of FIG. 4, a process name (process identification information) and process contents such as a logical expression are acquired as information indicating a function request, and the data processing unit 11 calculates an input value according to the process contents to obtain a result. The configuration is such that the non-functional request can be verified in parallel with the verification of the functional request that has been conventionally performed. It should be noted that the verification of the function request and the verification of the non-functional request are not necessarily performed in parallel. For example, the result of each process may be obtained in advance by the calculation or an assumed value may be determined as the process result, and the process result and process name may be input as information indicating the function request. FIG. 5 shows an example of inputting a process result, and FIG. 6 shows an example of a table storing a process name and a process result in association with each other. The process name is information for identifying the process, and information unique to each process is attached. In FIG. 6, the process name of the process of shooting using the camera A is P1A, the result is a VGA color image (640 × 480 × 24 bits), the process name of the process of shooting using the camera B is P1B, and the result is It is a VGA color image (800 × 600 × 24 bits), the process name of the process of photographing using the camera C is P1C, and the result is an XGA color image (1024 × 768 × 24 bits).

図5の例では、図2のステップS3において、図6のテーブルからプロセス結果を求めて入力する。一方、図4の例では、論理式やPromela等で記述されたプロセス内容に基づ
いて図6に示すようなプロセスの結果を求める。
In the example of FIG. 5, the process result is obtained from the table of FIG. 6 and input in step S3 of FIG. On the other hand, in the example of FIG. 4, the result of the process as shown in FIG. 6 is obtained based on the process contents described by a logical expression or Promela.

また、図3の車載カメラシステムにおいて、図2のステップS2では、仕様要求検証装置1は、各プロセスにかかる非機能要求を示す情報を取得する。例えば、被写体を撮影してから輪郭を抽出して元画像と合成して表示装置に表示させるまでの処理時間、即ち遅延時間を300ms以内、消費電力を25W以内、且つ費用を5000円以内とすることを非機能要求とする。   In the in-vehicle camera system of FIG. 3, in step S <b> 2 of FIG. 2, the specification request verification device 1 acquires information indicating a non-functional request related to each process. For example, the processing time from when the subject is photographed until the contour is extracted, combined with the original image and displayed on the display device, that is, the delay time is within 300 ms, the power consumption is within 25 W, and the cost is within 5000 yen. This is a non-functional requirement.

そして、図2のステップS4では、各プロセスにかかる非機能の値を求める。図7は、各プロセスに対応する非機能の値を記憶したテーブルの一例を示す図である。図7に示すテーブルでは、各プロセスにかかる非機能要求として、処理時間、消費電力、費用を記憶している。例えば、プロセスP1Aの処理時間(受光面上に結像された像を撮像素子で電気信号に変換して出力するまでの時間)が80ms、カメラの消費電力、2.0W、カメラの費用1000円であり、プロセスP1Bの処理時間が100ms、カメラの消費電力、2.5W、カメラの費用1500円であり、プロセスP1Cの処理時間が120ms、カメラの消費電力、3.5W、カメラの費用2000円である。   In step S4 of FIG. 2, a non-functional value relating to each process is obtained. FIG. 7 is a diagram illustrating an example of a table storing non-functional values corresponding to each process. In the table shown in FIG. 7, processing time, power consumption, and cost are stored as non-functional requests for each process. For example, the processing time of the process P1A (the time until the image formed on the light receiving surface is converted into an electrical signal by the image sensor and output) is 80 ms, the power consumption of the camera, 2.0 W, and the cost of the camera of 1000 yen. Process P1B processing time 100 ms, camera power consumption, 2.5 W, camera cost 1500 yen, Process P1C processing time 120 ms, camera power consumption, 3.5 W, camera cost 2000 yen It is.

図7のプロセスP1A〜P1Cに対する非機能の値のように、予めテーブルに記憶しておき、ステップS4では、ステップS1で取得したプロセスのプロセス名と対応する値を当該テーブルから読み出す。   Like the non-functional values for the processes P1A to P1C in FIG. 7, the values are stored in advance in the table, and in step S4, the values corresponding to the process names of the processes acquired in step S1 are read from the table.

なお、非機能の値は、予めテーブルに記憶しておく構成に限らず、関数で定義しても良い。例えば、図7におけるプロセスP2D〜P2Fの処理時間のように、チップDを用いて輪郭を抽出するプロセスの画像サイズFsを1秒あたりの出力ビット数1.54×106で割る、チップEを用いて輪郭を抽出するプロセスの画像サイズFsを1秒あたりの出
力ビット数3.07×106で割る、チップFを用いて輪郭を抽出するプロセスの画像サ
イズFsを1秒あたりの出力ビット数6.14×106で割ることで処理時間を求める。
The non-functional value is not limited to the configuration stored in advance in the table, but may be defined by a function. For example, as in the processing time of processes P2D to P2F in FIG. 7, chip E is obtained by dividing the image size Fs of the process of extracting a contour using chip D by 1.54 × 10 6 output bits per second. Divide the image size Fs of the process of extracting contours by 3.07 × 10 6 output bits per second, and output the image size Fs of the process of extracting outlines using chip F per second 6. Calculate processing time by dividing by 14 × 10 6 .

ここでプロセスP1Aの結果(640×480×24ビット)を用いた場合、輪郭を抽出するプロセスの結果は、二値画像(640×480×1ビット)となる。この場合に、チップDを用いて輪郭を抽出するプロセスP2Dは、処理時間が200ms、消費電力が1.2W、費用が300円、チップEを用いて輪郭を抽出するプロセスP2Eは、処理時間が100ms、消費電力が1.5W、費用が500円、チップFを用いて輪郭を抽出するプロセスP2Fは、処理時間が50ms、消費電力が3.0W、費用が800円となる。   Here, when the result of the process P1A (640 × 480 × 24 bits) is used, the result of the process of extracting the contour is a binary image (640 × 480 × 1 bit). In this case, the process P2D for extracting the contour using the chip D has a processing time of 200 ms, the power consumption is 1.2 W, the cost is 300 yen, and the process P2E for extracting the contour using the chip E has a processing time of The process P2F for extracting the contour using the chip F is 100 ms, the power consumption is 1.5 W, the cost is 500 yen, the processing time is 50 ms, the power consumption is 3.0 W, and the cost is 800 yen.

同様に、プロセスP1Bの結果(800×600×24ビット)を用いた場合、輪郭を抽出するプロセスの結果は、二値画像(800×600×1ビット)となり、チップDを用いて輪郭を抽出するプロセスP2Dは、処理時間が313ms、消費電力が1.2W、費用が300円、チップEを用いて輪郭を抽出するプロセスP2Eは、処理時間が156
ms、消費電力が1.5W、費用が500円、チップFを用いて輪郭を抽出するプロセスP2Fは、処理時間が78ms、消費電力が3.0W、費用が800円となる。
Similarly, when the result of the process P1B (800 × 600 × 24 bits) is used, the result of the process of extracting the contour is a binary image (800 × 600 × 1 bit), and the contour is extracted using the chip D. The process P2D has a processing time of 313 ms, the power consumption is 1.2 W, the cost is 300 yen, and the process P2E to extract the contour using the chip E has a processing time of 156
ms, power consumption is 1.5 W, cost is 500 yen, and the process P2F for extracting an outline using the chip F has a processing time of 78 ms, power consumption of 3.0 W, and cost of 800 yen.

また、図7におけるプロセスP3G〜P3Iの処理時間のように、チップGを用いて輪郭を元画像に合成するプロセスの画像サイズFsを1秒あたりの出力ビット数73.7×106で割る、チップHを用いて輪郭を元画像に合成するプロセスの画像サイズFsを1
秒あたりの出力ビット数147×106で割る、チップIを用いて輪郭を元画像に合成す
るプロセスの画像サイズFsを1秒あたりの出力ビット数295×106で割ることで処
理時間を求める。
Further, as in the processing time of processes P3G to P3I in FIG. 7, the image size Fs of the process of combining the outline with the original image using the chip G is divided by the number of output bits of 73.7 × 10 6 per second. The image size Fs of the process of synthesizing the contour with the original image using the chip H is set to 1.
The processing time is obtained by dividing the image size Fs of the process of synthesizing the contour with the original image using the chip I by the number of output bits per second 147 × 10 6 by the number of output bits 295 × 10 6 per second. .

ここで元画像としてプロセスP1Aの結果(640×480×24ビット)を用いた場合、チップGを用いて輪郭を元画像に合成するプロセスP3Gは、処理時間が100ms、消費電力が0.5W、費用が100円、チップHを用いて輪郭を元画像に合成するプロセスP3Hは、処理時間が50ms、消費電力が0.8W、費用が200円、チップIを用いて輪郭を元画像に合成するプロセスP3Iは、処理時間が25ms、消費電力が1.5W、費用が300円となる。   Here, when the result of the process P1A (640 × 480 × 24 bits) is used as the original image, the process P3G for synthesizing the contour with the original image using the chip G has a processing time of 100 ms, power consumption of 0.5 W, The process P3H, in which the cost is 100 yen, and the outline is synthesized with the original image using the chip H, the processing time is 50 ms, the power consumption is 0.8 W, the cost is 200 yen, and the outline is synthesized with the chip I using the chip I. The process P3I has a processing time of 25 ms, power consumption of 1.5 W, and cost of 300 yen.

同様に、プロセスP1Bの結果(800×600×24ビット)を用いた場合、チップGを用いて輪郭を元画像に合成するプロセスP3Gは、処理時間が156ms、消費電力が0.5W、費用が100円、チップHを用いて輪郭を元画像に合成するプロセスP3Hは、処理時間が78.4ms、消費電力が0.8W、費用が200円、チップIを用いて輪郭を元画像に合成するプロセスP3Iは、処理時間が39.1ms、消費電力が1.5W、費用が300円となる。   Similarly, when the result of the process P1B (800 × 600 × 24 bits) is used, the process P3G that combines the contour with the original image using the chip G has a processing time of 156 ms, power consumption of 0.5 W, and cost The process P3H for synthesizing the contour to the original image using the chip H is 100 yen, the processing time is 78.4 ms, the power consumption is 0.8 W, the cost is 200 yen, and the contour is synthesized to the original image using the chip I. The process P3I has a processing time of 39.1 ms, power consumption of 1.5 W, and cost of 300 yen.

また、図7において、ディスプレイJに合成後の画像を表示するプロセスP4Jの処理時間(応答時間)が5ms、消費電力が15w、費用が3000円であり、ディスプレイKに合成後の画像を表示するプロセスP4Kの処理時間(応答時間)が5ms、消費電力が17w、費用が3500円であり、ディスプレイLに合成後の画像を表示するプロセスP4Lの処理時間(応答時間)が5ms、消費電力が20w、費用が4000円である。   Further, in FIG. 7, the processing time (response time) of the process P4J for displaying the combined image on the display J is 5 ms, the power consumption is 15 w, and the cost is 3000 yen, and the combined image is displayed on the display K. The processing time (response time) of the process P4K is 5 ms, the power consumption is 17 w, the cost is 3500 yen, the processing time (response time) of the process P4L for displaying the synthesized image on the display L is 5 ms, and the power consumption is 20 w. The cost is 4000 yen.

そして、図2のステップS5において、仕様要求検証装置1の評価部23は、上記で求めた非機能値がステップS2で取得した非機能要求を満たすか否かを評価する。   Then, in step S5 of FIG. 2, the evaluation unit 23 of the specification requirement verification apparatus 1 evaluates whether or not the non-functional value obtained above satisfies the non-functional requirement obtained in step S2.

例えば、ステップS1で取得した情報が示すプロセス名が、プロセスP1A,P2D,P3G,P4Jであった場合、
プロセスP1A:処理時間=80ms、消費電力=2.0W、費用=1000円
プロセスP2D:処理時間=200ms、消費電力=1.2W、費用=300円
プロセスP3G:処理時間=100ms、消費電力=0.5W、費用=100円
プロセスP4J:処理時間=5ms、消費電力=15w、費用=3000円
合計:処理時間=385ms、消費電力=18.7w、費用=4400円
である。
For example, when the process names indicated by the information acquired in step S1 are processes P1A, P2D, P3G, and P4J,
Process P1A: processing time = 80 ms, power consumption = 2.0 W, cost = 1000 yen Process P2D: processing time = 200 ms, power consumption = 1.2 W, cost = 300 yen Process P3G: processing time = 100 ms, power consumption = 0 .5W, cost = 100 yen Process P4J: processing time = 5 ms, power consumption = 15 w, cost = 3000 yen
Total: processing time = 385 ms, power consumption = 18.7 w, cost = 4400 yen.

従って、プロセスP1A,P2D,P3G,P4Jの構成は、処理時間(遅延時間)の非機能要求を満たさず、不適合である。   Therefore, the configuration of the processes P1A, P2D, P3G, and P4J does not satisfy the non-functional requirement of the processing time (delay time) and is incompatible.

また、ステップS1で取得した情報が示すプロセス名が、プロセスP1A,P2E,P3I,P4Jであった場合、
プロセスP1A:処理時間=80ms、消費電力=2.0W、費用=1000円
プロセスP2E:処理時間=156ms、消費電力=1.5W、費用=500円
プロセスP3I:処理時間=39.1ms、消費電力=1.5W、費用=300円
プロセスP4J:処理時間=5ms、消費電力=15w、費用=3000円
合計:処理時間=280.1ms、消費電力=20w、費用=4800円
である。
If the process names indicated by the information acquired in step S1 are processes P1A, P2E, P3I, and P4J,
Process P1A: processing time = 80 ms, power consumption = 2.0 W, cost = 1000 yen Process P2E: processing time = 156 ms, power consumption = 1.5 W, cost = 500 yen Process P3I: processing time = 39.1 ms, power consumption = 1.5 W, cost = 300 yen Process P4J: processing time = 5 ms, power consumption = 15 w, cost = 3000 yen
Total: processing time = 280.1 ms, power consumption = 20 w, cost = 4800 yen.

従って、プロセスP1A,P2E,P3I,P4Jの構成は、全ての非機能要求を満たし、適合する。   Therefore, the configuration of processes P1A, P2E, P3I, P4J meets and meets all non-functional requirements.

更に、ステップS1で取得した情報が示すプロセス名が、プロセスP1C,P2F,P3I,P4Lであった場合、
プロセスP1C:処理時間=120ms、消費電力=3.5W、費用=2000円
プロセスP2F:処理時間=128ms、消費電力=3.0W、費用=800円
プロセスP3I:処理時間=64.0ms、消費電力=1.5W、費用=300円
プロセスP4L:処理時間=5ms、消費電力=20w、費用=4000円
合計:処理時間=317ms、消費電力=28w、費用=7100円
である。
Furthermore, when the process names indicated by the information acquired in step S1 are processes P1C, P2F, P3I, and P4L,
Process P1C: processing time = 120 ms, power consumption = 3.5 W, cost = 2000 yen Process P2F: processing time = 128 ms, power consumption = 3.0 W, cost = 800 yen Process P3I: processing time = 64.0 ms, power consumption = 1.5 W, cost = 300 yen Process P4L: processing time = 5 ms, power consumption = 20 w, cost = 4000 yen
Total: processing time = 317 ms, power consumption = 28 w, cost = 7100 yen.

従って、プロセスP1C,P2F,P3I,P4Lの構成は、全ての非機能要求を満たさず、不適合である。   Therefore, the configuration of the processes P1C, P2F, P3I, and P4L does not satisfy all the non-functional requirements and is incompatible.

以上のように、本実施形態によれば、開発段階で検証対象の非機能要求を評価することができる。   As described above, according to this embodiment, it is possible to evaluate a non-functional requirement to be verified at the development stage.

〈実施形態2〉
前述の実施形態1では、開発段階で検証対象の非機能要求を評価する例を示したが、本実施形態2は実用段階で検証対象の非機能の値を実測し、非機能要求を評価する例である。本実施形態2は、前述の実施形態1と比べて評価内容が異なり、その他の構成は同じである。このため同一の要素には同符号を付すなどして再度の説明を省略している。
<Embodiment 2>
In the first embodiment described above, an example in which the non-functional requirement to be verified is evaluated at the development stage has been shown. However, in the second embodiment, the non-functional value to be verified is actually measured and the non-functional requirement is evaluated at the practical stage. It is an example. The second embodiment is different from the first embodiment in the evaluation contents, and the other configurations are the same. For this reason, the same elements are denoted by the same reference numerals and the description thereof is omitted.

図8は、本実施形態2の概略説明図である。本実施形態2において、要求取得部21は、機能要求としてプロセスP1A,P2E,P3I,P4Jを示す情報を取得し、非機能要求としてプロセスP2E,P3Iの処理時間が200msであることを取得する。   FIG. 8 is a schematic explanatory diagram of the second embodiment. In the second embodiment, the request acquisition unit 21 acquires information indicating the processes P1A, P2E, P3I, and P4J as a function request, and acquires that the processing time of the processes P2E and P3I is 200 ms as a non-function request.

また、非機能値取得部22は、プロセスP1Aで撮影した画像、即ち元画像と、プロセスP3Iで合成後の画像とを比較し、元画像の出力から合成後の画像の出力までにかかった時間を処理時間(遅延時間)として求める。   Further, the non-functional value acquisition unit 22 compares the image captured by the process P1A, that is, the original image with the image synthesized by the process P3I, and the time taken from the output of the original image to the output of the image after the synthesis As the processing time (delay time).

評価部23は、非機能値取得部22で取得した値が、非機能要求を満たしているか否かを判定する。プロセスP2E,P3Iの処理時間は、195.1msのため、通常は非機能要求を満たしている。しかし、チップE,Iの不具合や電圧の低下、チップE,IがプロセスP2E,P3Iと並行して処理するプロセスの増加等の問題が生じたことにより処理時間が非機能要求を満たさなくなった場合、評価部23は出力部15を介してユーザに警告を通知する。   The evaluation unit 23 determines whether the value acquired by the non-functional value acquisition unit 22 satisfies the non-functional request. Since the processing time of the processes P2E and P3I is 195.1 ms, the non-functional requirement is usually satisfied. However, when the processing time does not satisfy the non-functional requirement due to problems such as chip E and I failure, voltage drop, and an increase in processes that the chips E and I process in parallel with the processes P2E and P3I. The evaluation unit 23 notifies the user of a warning via the output unit 15.

以上のように本実施形態2によれば、実用時に非機能要求を評価でき、非機能要求を満たさなくなった場合にユーザに警告できる。   As described above, according to the second embodiment, non-functional requirements can be evaluated at the time of practical use, and a user can be warned when the non-functional requirements are not satisfied.

本実施形態2の仕様要求検証装置は、処理時間に限らず、非機能の値が実用時に実測できるものであれば良い。   The specification requirement verification apparatus according to the second embodiment is not limited to the processing time, but may be any apparatus that can actually measure a non-functional value during practical use.

1 仕様要求検証装置
11 データ処理部
12 通信処理部
13 記憶部(ハードディスク)
14 入力部
15 出力部
21 要求取得部
22 非機能値取得部
23 評価部
41 カメラ
42 輪郭抽出部
43 輪郭合成部
44 表示装置
1 Specification Request Verification Device 11 Data Processing Unit 12 Communication Processing Unit 13 Storage Unit (Hard Disk)
14 Input unit 15 Output unit 21 Request acquisition unit 22 Non-functional value acquisition unit 23 Evaluation unit 41 Camera 42 Contour extraction unit 43 Contour synthesis unit 44 Display device

Claims (6)

複数のプロセスを実行する場合の非機能に係る要求を示す情報を入力装置による入力或いは記憶媒体からの読み出しによって取得する要求取得手段と、
前記複数のプロセスにかかる非機能の値を求める非機能値取得手段と、
前記非機能の値が、前記非機能に係る要求を満たしているか否かを評価する評価手段と、
を備える仕様要求検証装置。
Request acquisition means for acquiring information indicating a request related to a non-function when executing a plurality of processes by input from an input device or reading from a storage medium;
Non-functional value obtaining means for obtaining non-functional values for the plurality of processes;
An evaluation means for evaluating whether or not the value of the non-function satisfies the requirement related to the non-function;
Specification request verification device comprising:
前記非機能の値が、少なくとも処理時間、消費電力、費用の何れかを含む請求項1に記載の仕様要求検証装置。   The specification request verification apparatus according to claim 1, wherein the non-functional value includes at least one of processing time, power consumption, and cost. 前記非機能値取得手段が、前記プロセスの実行結果を実測することにより前記非機能の値を取得する請求項1又は2に記載の仕様要求検証装置。   The specification requirement verification apparatus according to claim 1, wherein the non-functional value acquisition unit acquires the non-functional value by actually measuring an execution result of the process. 複数のプロセスを実行する場合の非機能に係る要求を示す情報を入力装置による入力或いは記憶媒体からの読み出しによって取得するステップと、
前記複数のプロセスにかかる非機能の値を求めるステップと、
前記非機能の値が、前記非機能に係る要求を満たしているか否かを評価するステップと、
をコンピュータが実行する仕様要求検証方法。
Obtaining information indicating a request related to a non-function when executing a plurality of processes by input by an input device or reading from a storage medium;
Determining a non-functional value for the plurality of processes;
Evaluating whether the non-functional value satisfies the non-functional requirement; and
A specification requirement verification method executed by a computer.
前記非機能の値が、少なくとも処理時間、消費電力、費用の何れかを含む請求項4に記載の仕様要求検証方法。   The specification requirement verification method according to claim 4, wherein the non-functional value includes at least one of processing time, power consumption, and cost. 前記プロセスの実行結果を実測することにより前記非機能の値を取得する請求項4又は5に記載の仕様要求検証方法。   The specification requirement verification method according to claim 4, wherein the non-functional value is acquired by actually measuring an execution result of the process.
JP2010058315A 2010-03-15 2010-03-15 Device and method for verifying specification request Withdrawn JP2011192073A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010058315A JP2011192073A (en) 2010-03-15 2010-03-15 Device and method for verifying specification request

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010058315A JP2011192073A (en) 2010-03-15 2010-03-15 Device and method for verifying specification request

Publications (1)

Publication Number Publication Date
JP2011192073A true JP2011192073A (en) 2011-09-29

Family

ID=44796901

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010058315A Withdrawn JP2011192073A (en) 2010-03-15 2010-03-15 Device and method for verifying specification request

Country Status (1)

Country Link
JP (1) JP2011192073A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255697A (en) * 2016-12-29 2018-07-06 卡斯柯信号有限公司 Vehicle Controller software based on SMT half formalizes requirements verification system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255697A (en) * 2016-12-29 2018-07-06 卡斯柯信号有限公司 Vehicle Controller software based on SMT half formalizes requirements verification system and method
CN108255697B (en) * 2016-12-29 2021-05-14 卡斯柯信号有限公司 SMT-based vehicle-mounted controller software semi-formalization requirement verification system and method

Similar Documents

Publication Publication Date Title
JP6868119B2 (en) Holographic anti-counterfeit code inspection method and equipment
CN109145680B (en) Method, device and equipment for acquiring obstacle information and computer storage medium
JP5629239B2 (en) Apparatus and method for testing operation of software
KR20190139938A (en) Picture-based vehicle damage estimation method and apparatus, and electronic device
EP2182469A2 (en) System and method for sensing facial gesture
US20130326465A1 (en) Portable Device Application Quality Parameter Measurement-Based Ratings
JP2008310663A (en) Specification verification program, computer-readable recording medium with its program recorded thereon, specification verification device and specification verification method
JP2020144079A (en) Road surface property measurement device, road surface property measurement system, road surface property measurement method and road surface property measurement program
CN111415336B (en) Image tampering identification method, device, server and storage medium
US20180148898A1 (en) Road state management apparatus and method
CN109115242B (en) Navigation evaluation method, device, terminal, server and storage medium
CN109784140A (en) Driver attributes&#39; recognition methods and Related product
JP6721846B2 (en) Teacher data candidate extraction program, teacher data candidate extraction device, and teacher data candidate extraction method
CN114120071A (en) Detection method of image with object labeling frame
CN109829401A (en) Traffic sign recognition method and device based on double capture apparatus
JP2011192073A (en) Device and method for verifying specification request
JP7265961B2 (en) ANNOTATION SUPPORT METHOD, ANNOTATION SUPPORT DEVICE, AND ANNOTATION SUPPORT PROGRAM
CN112287905A (en) Vehicle damage identification method, device, equipment and storage medium
CN115546743B (en) Vehicle road cooperative control method, device, equipment and medium based on adhesion coefficient
JP6678820B2 (en) Three-dimensional map generation system, three-dimensional map generation method, and three-dimensional map generation program
US10816600B1 (en) Protocol analysis and visualization during simulation
JP2020159135A (en) Road surface property measurement device, road surface property measurement method, and road surface property measurement program
CN112613257A (en) Verification method, verification device, electronic equipment and computer-readable storage medium
JP6015719B2 (en) User interface evaluation apparatus and user interface evaluation method
CN112132034B (en) Pedestrian image detection method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20130604