JP5279767B2 - General program - Google Patents
General program Download PDFInfo
- Publication number
- JP5279767B2 JP5279767B2 JP2010147945A JP2010147945A JP5279767B2 JP 5279767 B2 JP5279767 B2 JP 5279767B2 JP 2010147945 A JP2010147945 A JP 2010147945A JP 2010147945 A JP2010147945 A JP 2010147945A JP 5279767 B2 JP5279767 B2 JP 5279767B2
- Authority
- JP
- Japan
- Prior art keywords
- class
- item
- program
- condition
- processing order
- 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.)
- Active
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
本発明は、コンピュータが複数のカテゴリに属するアイテムを表示して操作を受け付けるアイテム表示ギャラリーシステムを実現するための統括プログラムに関する。 The present invention relates to an overall program for realizing an item display gallery system in which a computer displays items belonging to a plurality of categories and receives operations.
近年、相互にメッセージを送りあうオブジェクトの集まりとしてプログラムを構成するオブジェクト指向プログラムが知られている。オブジェクト指向プログラムは、ソフトウェアをオブジェクトと呼ばれる機能の部品により構成するため、他のオブジェクトの内部構造や動作原理の詳細を知ることなくプログラミングが可能であり、分割開発に適している。例えば、ユーザ端末に対してアイテムを表示し、当該アイテムに関するユーザの操作(選択・購入・投稿など)を受け付けるアイテム表示ギャラリーシステムでは、ユーザ端末にアイテムを表示する機能や、ユーザの操作を受け付ける機能などの多数の機能を有するため、オブジェクト指向プログラムに適している。 In recent years, object-oriented programs that configure programs as a collection of objects that send messages to each other are known. An object-oriented program is composed of functional parts called objects, so that it can be programmed without knowing the details of the internal structure and operation principle of other objects, and is suitable for divided development. For example, in an item display gallery system that displays an item on a user terminal and receives a user operation (selection, purchase, posting, etc.) related to the item, a function for displaying an item on the user terminal or a function for receiving a user operation Therefore, it is suitable for an object-oriented program.
ところで、オブジェクト指向プログラムによるプログラミングを支援するための発明はこれまで多数知られており、例えば、特許文献1には、プログラムの構文解析を行い、構文解析結果とプログラム規約情報とを照合し、照合結果に基づいて修正したプログラムを出力するオブジェクト指向プログラム作成支援装置が開示され、特許文献2には、拡張性や再利用性の高いプログラムとなるための要件を満たしているかどうかを判断し、ユーザに指摘することができるプログラム作成支援装置が開示されている。
By the way, many inventions for supporting programming by an object-oriented program have been known so far. For example, in
しかしながら、上記プログラム作成支援装置は、所定の規約を充足するプログラムであるか、拡張性や再利用性が高いプログラムであるかといった点を、「作成されたプログラム」について照合するものであり、プログラム作成時のプログラマを支援するものではなかった。 However, the program creation support apparatus collates with respect to the “created program” whether it is a program that satisfies a predetermined rule or a program that has high expandability and reusability. It was not intended to assist the programmer at the time of creation.
オブジェクト指向プログラムによるプログラミングを困難にさせる要因の一つに、クラス間の関係性が挙げられる。従来では、クラス間の呼び出し関係などの関係性をプログラマが任意に規定していたため、例えば、あるクラス内で関数又は変数のインスタンスを生成し、他のクラス内で同じ関数又は変数のインスタンスを別に生成してしまうことがあった。その結果、生成したインスタンスが錯綜してしまい、プログラムが全体として不要に複雑になってしまう問題があった。また、このようにクラス間の呼び出し関係が任意に規定できるため、プログラマは常にプログラム全体を把握しておく必要があり、プログラムの分割開発を困難なものとしていた。 One of the factors that make programming with object-oriented programs difficult is the relationship between classes. In the past, programmers arbitrarily specified relationships such as calling relationships between classes, so for example, an instance of a function or variable is created in one class, and the same function or variable instance is separated in another class. It sometimes generated. As a result, the generated instances are complicated, and there is a problem that the program becomes unnecessarily complicated as a whole. In addition, since the calling relationship between classes can be arbitrarily defined in this way, it is necessary for the programmer to always grasp the entire program, making it difficult to divide and develop the program.
本発明は、このような問題に鑑みてなされたものであり、プログラム全体として生成したインスタンスの錯綜を防止し、プログラマによる分割開発が容易な統括プログラム(特に、上記アイテム表示ギャラリーシステムのように多数の機能を有するシステムを実現するための統括プログラム)を提供することを目的とする。 The present invention has been made in view of such a problem, and prevents the complication of instances generated as a whole program, and is a comprehensive program that can be easily divided and developed by a programmer (particularly, as in the item display gallery system described above). The purpose is to provide a general program for realizing a system having the above functions.
(1) コンピュータが複数のカテゴリに属するアイテムを表示して操作を受け付けるアイテム表示ギャラリーシステムを実現するための統括プログラムであって、前記統括プログラムは、処理順序が特定される複数の処理を前記コンピュータに実行させるためのプログラムであって、前記統括プログラムは、処理順序が特定される前記複数の処理の各々についてクラスがマッピングされ、当該マッピングされたクラスはその処理順序が先のクラスがその処理順序が後のクラスを包含して定義することにより後のクラスが先のクラスによって生成される関係を有することにより、前記コンピュータに、第2処理を規定するクラスを包含するクラスにより規定される第1処理を実行させた後に、前記第1処理を規定するクラスに包含されるクラスにより規定される第2処理を実行させる統括プログラム。 (1) An overall program for realizing an item display gallery system in which a computer displays items belonging to a plurality of categories and receives operations, wherein the overall program performs a plurality of processes in which a processing order is specified. In the overall program, a class is mapped to each of the plurality of processes for which the processing order is specified, and the mapped class has a processing order that is higher than that of the previous class. By including and defining the subsequent class, the first class defined by the class including the class defining the second process is provided to the computer by having a relationship in which the subsequent class is generated by the previous class. Classes included in the class that defines the first process after executing the process The overall program for executing the second process defined by the above.
(1)の統括プログラムによれば、処理順序が特定される第1処理と第2処理との各々は、処理順序が先の第1処理が処理順序が後の第2処理を包含するようにクラスがマッピングされる。これにより、処理順序が後の第2処理を規定するクラスでは、第1処理で生成したインスタンスを新たに生成することがなく、プログラム全体として生成したインスタンスの錯綜を防止することができる。さらに、このようなクラスの包含関係により、プログラマは、当該包含関係の一つ下位のクラスのみを把握すればよいので、分割開発を容易に行うことができる。 According to the overall program of (1), each of the first process and the second process for which the processing order is specified includes the second process in which the first process in the processing order precedes the processing order. The class is mapped. Thereby, in the class that defines the second process after the processing order, the instance generated in the first process is not newly generated, and the complication of the instances generated as the entire program can be prevented. Furthermore, such a class inclusion relationship allows the programmer to grasp only the classes one level lower than the inclusion relationship, and can easily perform divided development.
(2) 前記統括プログラムは、前記統括プログラムに含まれる全クラスを包含するプラットフォームクラスと、アイテムクラスと条件クラスを包含するサービスコネクタクラスと、取得するアイテムの条件を管理する条件クラスと、前記アイテムに関する情報を管理するアイテムクラスと、を含んで構成し、前記プラットフォームクラスは、その処理順序が最も先のクラスであり、前記サービスコネクタクラス及び前記条件クラスは、その処理順序が前記プラットフォームクラスより後のクラスであり、前記アイテムクラスは、その処理順序が前記サービスコネクタクラスより後のクラスである、(1)に記載の統括プログラム。 (2) The overall program includes a platform class that includes all classes included in the overall program, a service connector class that includes an item class and a condition class, a condition class that manages conditions of items to be acquired, and the item And the platform class is the class with the earliest processing order, and the service connector class and the condition class are later in the processing order than the platform class. The overall program according to (1), wherein the item class is a class whose processing order is after the service connector class.
(2)の統括プログラムによれば、アイテム表示ギャラリーシステムを実現するための各クラス(機能)を処理順序に沿ってマッピングしたため、アイテム表示ギャラリーシステムの分割開発が容易になる。 According to the overall program of (2), since each class (function) for realizing the item display gallery system is mapped in the processing order, the division development of the item display gallery system becomes easy.
(3) 前記アイテムの取得要求に応じて、前記プラットフォームクラスは前記条件クラス及び前記サービスコネクタクラスからの応答に基づいて前記アイテムに関する情報を返し、前記プラットフォームクラスからの要求に応じて、前記条件クラスは、取得する前記アイテムの条件を設定し、前記プラットフォームクラスからの要求に応じて、前記サービスコネクタクラスは、前記条件の内容に従って前記アイテムに関する情報を前記アイテムの実態を管理するギャラリーシステムから取得し、前記アイテムクラスに当該取得した当該アイテムに関する情報を管理させるとともに、当該取得したアイテムに関する情報を返し、前記サービスコネクタクラスからの要求に応じて、前記アイテムクラスは、要求された前記アイテムに関する情報を編集する、(2)に記載の統括プログラム。 (3) In response to the acquisition request for the item, the platform class returns information on the item based on responses from the condition class and the service connector class, and in response to a request from the platform class, the condition class Sets the condition of the item to be acquired, and in response to a request from the platform class, the service connector class acquires information on the item from the gallery system that manages the actual condition of the item according to the content of the condition. , Causing the item class to manage information about the acquired item, returning information about the acquired item, and in response to a request from the service connector class, the item class includes information about the requested item. Edit, oversee the program described in (2).
(3)の統括プログラムによれば、ユーザ端末に対してアイテムを表示し、当該アイテムに関するユーザの操作(選択・購入・投稿など)を受け付けるアイテム表示ギャラリーシステムを実現することができるとともに、プログラマが当該システムの分割開発を容易に行うことができる。 According to the overall program of (3), it is possible to realize an item display gallery system that displays items on a user terminal and accepts user operations (selection, purchase, posting, etc.) related to the items. Divided development of the system can be easily performed.
本発明によれば、プログラム全体として生成したインスタンスの錯綜を防止し、プログラマによる作成が容易な統括プログラムを提供することができる。さらに、プログラマが分割開発を容易に行うことができる統括プログラムを提供することができる。 According to the present invention, it is possible to provide a general program that prevents complication of instances generated as a whole program and can be easily created by a programmer. Furthermore, it is possible to provide a general program that allows a programmer to easily perform divided development.
以下、本発明の実施形態について図面を参照して説明する。 Embodiments of the present invention will be described below with reference to the drawings.
[プログラム1の概要]
本件発明に係るプログラム1の概要について、図1を参照して説明する。
プログラム1は、データとそれを操作する手続きとをオブジェクトと呼ばれるひとまとまりの単位として一体化し、オブジェクトの組み合わせとして作成されるオブジェクト指向プログラムである。オブジェクト指向プログラムでは、クラスを用いてオブジェクトを定義する。
図1では、オブジェクトA、オブジェクトB、オブジェクトC及びオブジェクトDを含むアプリケーションを例にとり、本件発明に係るプログラム1のクラス構成について説明する。
[Outline of Program 1]
An outline of the
The
In FIG. 1, the class configuration of the
初めに、図1(1)を参照して、オブジェクト指向プログラムにおける従来のクラス構成を説明する。従来、オブジェクトを定義するクラス間の関係(クラス構成)には何らの規定がなく、設計者により任意に構成されていた。例えば、図1(1)に示すように、夫々対等な関係に構成され、互いに相手クラスのインスタンスを生成し合うことが許可されていた。具体的には、クラスAにおいてクラスB、クラスC及びクラスDといった他のクラスのインスタンスを生成することが可能な一方で、クラスB、クラスC及びクラスDにおいても他のクラスのインスタンスを生成することが可能となっていた。 First, a conventional class structure in an object-oriented program will be described with reference to FIG. Conventionally, there is no provision for the relationship (class configuration) between classes defining an object, and it is arbitrarily configured by a designer. For example, as shown in FIG. 1 (1), each is configured in an equal relationship, and it is permitted to generate instances of the partner class with each other. Specifically, instances of other classes such as class B, class C, and class D can be created in class A, while instances of other classes are also created in class B, class C, and class D. It was possible.
このような従来のクラス構成では、相手クラスのインスタンスの生成が互いに許容されているため、各クラスを担当するプログラマの夫々は、自己の担当するクラスだけでなく他のクラスを含む全体を把握した上で、プログラムの作成を行う必要があった。 In such a conventional class configuration, generation of instances of the partner class is mutually allowed, so each programmer in charge of each class grasps not only the class that he is in charge of but also the entire class including other classes. Above, it was necessary to create a program.
また、相手クラスのインスタンスの生成が互いに許容されているため、例えば、クラスBのインスタンスを、クラスAだけでなくクラスC及びクラスDでも生成することが許容され、生成したインスタンスの錯綜が生じる原因となっていた。インスタンスの錯綜により、プログラムが全体として不要に複雑になってしまい、プログラムの確認作業に膨大な時間がかかってしまう問題もあった。また、このようにクラス間の呼び出し関係が任意に規定できるため、プログラマは常にプログラム全体を把握しておく必要があり、プログラムの分割開発が困難となる問題もあった。 In addition, since the generation of the partner class instance is mutually permitted, for example, it is permitted to generate the class B instance not only in the class A but also in the class C and the class D, which causes a complication of the generated instances. It was. Due to the complexities of instances, the program was unnecessarily complicated as a whole, and there was a problem that it took a long time to check the program. In addition, since the calling relationship between classes can be arbitrarily defined in this way, it is necessary for the programmer to always grasp the entire program, which makes it difficult to divide and develop the program.
そこで、本件発明のプログラム1では、各クラス間に包含関係を設けることで、他のクラスのインスタンスの生成に一定の制限を課したクラス構成からなるテンプレートクラスを提供する。具体的には、本件発明のプログラム1では、後述するように、コンピュータXの実行時の処理順序を開発時のクラス包含関係にマッピングしたテンプレートクラスをプラットフォーム化している。
Therefore, the
アプリケーションによっては図1(2)に示すようにコンピュータXの処理順序が特定されるものがある。例えば、図1(2)では、オブジェクトAの実行後にオブジェクトB及びオブジェクトCが実行され、オブジェクトBの実行後にオブジェクトDが実行される。本実施形態では、このように処理順序が特定されるアプリケーションについて、コンピュータXの実行時の処理順序をクラス包含関係にマッピングすることで、生成したインスタンスの錯綜が生じないクラス構成を実現している。また、このようなクラスの包含関係により、プログラマは、当該包含関係の一つ下位のクラスのみを把握すればよいので、分割開発を容易に行うことができる。 Some applications specify the processing order of the computer X as shown in FIG. For example, in FIG. 1B, the object B and the object C are executed after the object A is executed, and the object D is executed after the object B is executed. In the present embodiment, for an application whose processing order is specified in this way, a class configuration in which the generated instances are not complicated is realized by mapping the processing order when the computer X is executed to the class inclusion relationship. . In addition, with such a class inclusion relationship, the programmer only needs to grasp a class that is one level lower than the inclusion relationship, so that the divided development can be easily performed.
図1(3)に本件発明に係るプログラム1のクラス構成を示す。コンピュータXの実行時の処理順序として、オブジェクトAが、オブジェクトB及びオブジェクトCの前に実行される場合、プログラム1は、処理順序が前のオブジェクトAを定義するクラスAに包含される形で、処理順序が後のオブジェクトB及びオブジェクトCを定義するクラスB及びクラスCをマッピングする。すなわち、クラスAのメンバー変数としてクラスB及びクラスCのインスタンスを持つこととしている。同様に、オブジェクトBが、オブジェクトDの前に実行される場合、プログラム1は、処理順序が前のオブジェクトBを定義するクラスBに包含される形で、処理順序が後のオブジェクトDを定義するクラスDをマッピングする。
FIG. 1 (3) shows the class structure of the
コンピュータXは、このようにマッピングされたクラスにより規定されるオブジェクトを順次処理する。具体的には、クラスB及びクラスCを包含するクラスAを初めに実行し、クラスAに包含されるクラスB及びクラスCを次に実行し、続いて、クラスBに包含されるクラスDを実行する。すなわち、コンピュータXは、プログラム1のうち包含上位のクラスから順に実行する。
The computer X sequentially processes the objects defined by the classes thus mapped. Specifically, class A including class B and class C is executed first, class B and class C included in class A are executed next, and class D included in class B is subsequently executed. Run. That is, the computer X executes the
このようなクラス構成とすることにより、プログラム1では、包含関係にあるクラス間でのみインスタンスの生成が行われ、すなわち、包含上位のクラスで包含下位のクラスのインスタンスの生成が行われることになり、他のクラス間でのインスタンスの生成を不可能とした。具体的には、クラスDのインスタンスは、クラスDを包含するクラスBでのみ生成され、包含関係にないクラスA及びクラスCで生成されることを不可能とした。
By adopting such a class structure, in the
これにより、各クラスを担当するプログラマの夫々は、他のクラスを含む全体を把握した上でプログラムの作成を行う必要がなく、プログラムの作成が容易となる。すなわち、クラスAを担当するプログラマは、自己が担当するクラスAと、クラスAが包含するクラスB及びクラスCの外側とのみを把握すれば足り、他のクラスとの関係を把握する必要がない。また、クラスBを担当するプログラマは、自己が担当するクラスBと、クラスBが包含するクラスDの外側とのみを把握すれば足り、他のクラスとの関係を把握する必要がない。同様に、クラスCを担当するプログラマは、自己が担当するクラスCのみを把握すれば足り、他のクラスとの関係を把握する必要がなく、クラスDを担当するプログラマは、自己が担当するクラスDのみを把握すれば足り、他のクラスとの関係を把握する必要がない。その結果、インスタンスの錯綜を防止できるとともに、このようにマッピングされたテンプレートクラスを包含クラスの内と外との夫々のプログラマが継承して開発することにより、分割開発が容易となる。 Thereby, each programmer in charge of each class does not need to create a program after grasping the whole including other classes, and the creation of the program becomes easy. In other words, the programmer in charge of class A only needs to understand the class A that he / she is in charge of and the outside of the class B and class C included in the class A, and does not need to understand the relationship with other classes. . In addition, the programmer who is in charge of class B only needs to understand the class B that he / she is in charge of and the outside of class D included in class B, and does not need to understand the relationship with other classes. Similarly, the programmer in charge of class C only needs to know the class C that he / she is in charge of, and does not need to understand the relationship with other classes. It is sufficient to grasp only D, and it is not necessary to grasp the relationship with other classes. As a result, it is possible to prevent complication of instances, and divisional development is facilitated by developing the template classes mapped in this manner by inheriting and developing the respective inside and outside programmer classes.
[プログラム1のクラス構成を用いた好適なアプリケーション]
次に、プログラム1のクラス構成を用いた好適なアプリケーションの一例である、ギャラリー表示アプリケーション10について説明する。ギャラリー表示アプリケーション10は、複数のアイテムを表示するギャラリーページ100を表示するためのアプリケーションである。
[Preferred application using class structure of program 1]
Next, the
図2に、ギャラリー表示アプリケーション10により表示されるギャラリーページ100を示す。ギャラリーページ100は、表示されるアイテムの選択を受け付けるアイテム選択部101,102及び受け付けた選択に基づくアイテムを表示するアイテム表示部103を含むページである。
FIG. 2 shows a
アイテム選択部101は、表示されるアイテムの順序を変更するために選択(クリック)される。アイテム選択部101が選択されると、選択された順序に従い、アイテム表示部103の表示が切り換わる。具体的には、アイテム選択部101において「名前順」が選択されると、アイテム表示部103には50音順又はアルファベット順でアイテムが表示される。
The item selection unit 101 is selected (clicked) to change the order of displayed items. When the item selection unit 101 is selected, the display of the
アイテム選択部102は、表示されるアイテムの種別を変更するために選択(クリック)される。アイテム選択部102が選択されると、選択された種別のアイテムを表示するように、アイテム表示部103の表示が切り換わる。具体的には、アイテム選択部102において「おすすめ」が選択されると、ギャラリー表示アプリケーション10が管理するアイテムのうち、ギャラリー表示アプリケーション10の管理者のおすすめのアイテムが、アイテム表示部103に表示される。
The
このようなアイテム選択部101,102及びアイテム表示部103を備えるギャラリー表示アプリケーション10は、コンピュータXの処理順序が特定されるアプリケーションである。すなわち、ギャラリー表示アプリケーション10では、アイテム選択部101,102から受け付けた情報に基づいて「ページ表示要求」を行い、ページ表示要求に基づいて表示される「表示データを取得し」、取得した表示データを表示するための「画面生成表示」を行うという順序でコンピュータXの処理が行われる。
The
[ギャラリー表示アプリケーション10の概要]
図3及び図4を用いて、ギャラリー表示アプリケーション10の概要について説明する。図4は、ギャラリー表示アプリケーション10の構成を示す機能ブロック図であり、図4は、ギャラリー表示アプリケーション10のギャラリープラットフォームシステム22の構成を示す機能ブロック図である。
[Outline of Gallery Display Application 10]
The outline | summary of the
図3を参照して、ギャラリー表示アプリケーション10は、ギャラリー表示用システム2及びサービスギャラリーAPIシステム3を含む。
Referring to FIG. 3, the
ギャラリー表示用システム2は、アイテムを表示するギャラリーページを表示するためのシステムであり、ギャラリーページを表示するためのギャラリーページ表示ロジック21と、プログラム1を用いて作成されるギャラリープラットフォームシステム22と、を含む。
The
サービスギャラリーAPIシステム3は、ギャラリーページに表示されるアイテムを管理するためのシステムであり、ギャラリー表示用システム2からのアイテム要求に基づいてアイテムを取得するためのギャラリーアイテム取得ロジック31と、アイテムデータを管理するギャラリーデータDB32と、を含む。
The service
ギャラリー表示用システム2のギャラリープラットフォームシステム22は、図4に示すようにプラットフォームクラス221と、条件クラス222と、サービスコネクタクラス223と、アイテムクラス224と、カテゴリクラス225と、を含む。ここで、ギャラリー表示用システム2を構成するクラスの夫々は、コンピュータXの実行時において処理順序が特定される関係にある。具体的には、コンピュータXの実行時において、プラットフォームクラス221が初めに実行され、条件クラス222及びサービスコネクタクラス223がプラットフォームクラス221の後に実行される。そして、アイテムクラス224及びカテゴリクラス225などが、サービスコネクタクラス223の後に実行される。
The
プラットフォームクラス221は、他のクラス222〜226などをまとめるクラスであり、ギャラリーページ表示ロジック21とのやり取りを唯一行うクラスである。すなわち、プラットフォームクラス221は、ギャラリーページ表示ロジック21からの表示要求を受け付ける。表示要求を受け付けると、プラットフォームクラス221は、条件クラス222及びサービスコネクタクラス223からの応答に基づいて、アイテムに関する情報を返す。
The
条件クラス222は、取得するアイテムの条件を管理するクラスである。サービスコネクタクラス223は、条件に従って、サービスギャラリーAPIシステム3から情報を取得するクラスである。具体的には、条件クラス222は、プラットフォームクラス221からの要求に応じて、取得するアイテムの条件を設定し、サービスコネクタクラス223は、当該条件の無いように従ってアイテムに関する情報を亜サービスギャラリーAPIシステム3から取得し、アイテムクラス224及びカテゴリクラス225などに当該取得したアイテムに関する情報を管理させるとともにに、当該取得したアイテムに関する情報を返す。
The
そして、アイテムクラス224及びカテゴリクラス225などは、ギャラリー情報を管理するクラスである。具体的には、アイテムクラス224及びカテゴリクラス225などは、サービスコネクタクラス223からの要求に応じて、要求されたアイテムに関する情報を編集する。
The
このような各クラスを備えるギャラリープラットフォームシステム22は、コンピュータXの実行時の処理順序が特定されるものである。具体的には、プラットフォームクラス221によりページ表示要求を受けると、サービスコネクタクラス223により表示データの取得が行われ、その後、アイテムクラス224及びカテゴリクラス225などにより画面生成表示が行われる。
The
このような処理順序を本件発明のプログラム1が規定するクラス包含関係にマッピングしたクラスの包含関係を図5に示す。図5に示すように、プラットフォームクラス221は処理順序が後の条件クラス222及びサービスコネクタクラス223を包含し、サービスコネクタクラス223は処理順序が後のアイテムクラス224及びカテゴリクラス225などを包含する。
FIG. 5 shows class inclusion relationships in which such processing order is mapped to class inclusion relationships defined by the
このようなクラスの包含関係とすることにより、包含上位のクラスでのみ包含下位のクラスのインスタンスの生成が行われることになり、他のクラス間でのインスタンスの生成が不可能になる。具体的には、サービスコネクタクラス223のインスタンスはサービスコネクタクラス223を包含するプラットフォームクラス221でのみ生成され、包含関係にない条件クラス222、アイテムクラス224及びカテゴリクラス225などでは生成されない。
By making such a class inclusion relationship, an instance of a lower class of inclusion is generated only in a higher class of an inclusion, and an instance cannot be generated between other classes. Specifically, an instance of the
これにより、各クラスを担当するプログラマの夫々は、他のクラスを含む全体を把握した上でプログラムの作成を行う必要がなく、プログラムの作成が容易となる。また、包含関係にあるクラスでのみインスタンスの生成を許容し、包含関係にないクラスではインスタンスの生成を不可能としたため、プログラマは、当該包含関係の一つ下位のクラスのみを把握すればよいので、分割開発を容易に行うことができる。 Thereby, each programmer in charge of each class does not need to create a program after grasping the whole including other classes, and the creation of the program becomes easy. In addition, since the generation of instances is allowed only for classes that are in an inclusive relationship, and it is impossible to generate instances in classes that are not in an inclusive relationship, the programmer only needs to know the class one level lower than the inclusive relationship. , Split development can be done easily.
そして、このようにマッピングされたクラスを包含関係にあるクラスの内と外との夫々のプログラマが継承して開発することにより、一つの機能(例えば、画面設計)のプログラムのプログラマは、クラスの包含関係により当該包含するクラス(例えば、DB設計)の内側に包含する管理プロパティのクラスのみを用い、他の機能(例えば、システム設計)のプログラムのプログラマは、その外側のクラスのみを用いて夫々分割開発を行うことができる。 Then, the programmer of a program of one function (for example, screen design) can develop the class of the mapped class by inheriting and developing each of the inside and outside programmers in the inclusive class. Only the management property class included inside the included class (for example, DB design) by the inclusion relationship is used, and the programmer of the program of other functions (for example, system design) uses only the outer class. Divided development can be performed.
[プラットフォームクラス221のソースコードの例]
続いて、図6を参照して、条件クラス222及びサービスコネクタクラス223を包含するプラットフォームクラス221の具体的にソースコードについて説明する。図6は、プラットフォームクラス221のソースコードの一例を示す図である。
[Example of source code of platform class 221]
Next, a specific source code of the
プラットフォームクラス221では、初めにコード300において、「$gpcy=new CpConnectorEx();」と規定され、サービスコネクタクラス223のインスタンス「gpcy」が生成される。
In the
続いて、プラットフォームクラス221では、コード301において、「$condition=new GpConditionBase();」と規定し、条件クラス222のインスタンスを生成するとともに、コード302において、「$condition−>mode=GpConditionBase::MODE_ITEM;」と規定することにより、生成した条件オブジェクトとして定数「アイテムモード」を取得する。
Subsequently, in the
そして、プラットフォームクラス221では、コード303において、「$gpcy−>setCondition($condition);」と規定し、取得した条件オブジェクト「アイテムモード」をサービスコネクタクラス223のインスタンス「gpcy」に反映する。その後、インスタンス「gpcy」を実行することで、「アイテムモード」に基づく処理が行われる。
In the
また、プラットフォームクラス221では、コード304において、「$condition−>mode=GpConditionBase::MODE_CATEGORY;」と規定し、条件オブジェクトとして定数「カテゴリモード」を設定する。そして、プラットフォームクラス221では、コード305において、「$gpcy−>setCondition($condition);」と規定し、取得した条件オブジェクト「カテゴリモード」をサービスコネクタクラス223のインスタンス「gpcy」に設定する。その後、インスタンス「gpcy」を実行することで、「カテゴリモード」に基づく処理が行われる。すなわち、プラットフォームクラス221では、条件オブジェクトに設定するモード(アイテムモード、カテゴリモード)を切り換えることで、インスタンスとして生成したサービスコネクタクラス223の処理を切り換えている。
In the
このように、プラットフォームクラス221では、包含関係にある、より詳細には包含下位の条件クラス222及びサービスコネクタクラス223のインスタンスのみを生成し、包含関係にないアイテムクラス224やカテゴリクラス225などのインスタンスを生成することがない。そのため、プラットフォームクラス221のプログラマは、アイテムクラス224やカテゴリクラス225などを把握する必要がなく、プログラムの作成が容易になる。
As described above, the
以上、本発明の実施形態について説明したが、本発明は上述した実施形態に限るものではない。また、本発明の実施形態に記載された効果は、本発明から生じる最も好適な効果を列挙したに過ぎず、本発明による効果は、本発明の実施形態に記載されたものに限定されるものではない。 As mentioned above, although embodiment of this invention was described, this invention is not restricted to embodiment mentioned above. The effects described in the embodiments of the present invention are only the most preferable effects resulting from the present invention, and the effects of the present invention are limited to those described in the embodiments of the present invention. is not.
1 プログラム
X コンピュータ
1 program X computer
Claims (3)
前記統括プログラムは、処理順序が特定される複数の処理を前記コンピュータに実行させるためのプログラムであって、
前記統括プログラムは、処理順序が特定される前記複数の処理の各々についてクラスがマッピングされ、当該マッピングされたクラスはその処理順序が先のクラスがその処理順序が後のクラスを包含して定義することにより後のクラスが先のクラスによって生成される関係を有することにより、
前記コンピュータに、第2処理を規定するクラスを包含するクラスにより規定される第1処理を実行させた後に、前記第1処理を規定するクラスに包含されるクラスにより規定される第2処理を実行させる統括プログラム。 An overall program for realizing an item display gallery system in which a computer displays items belonging to a plurality of categories and receives operations,
The overall program is a program for causing the computer to execute a plurality of processes whose processing order is specified,
In the overall program, a class is mapped for each of the plurality of processes for which the processing order is specified, and the mapped class is defined by including the class whose processing order is earlier and the class whose processing order is later. By having the relationship that later classes are generated by earlier classes,
Causing the computer to execute a first process defined by a class including a class defining a second process, and then executing a second process defined by a class included in the class defining the first process Supervising program to let you.
アイテムクラスと条件クラスを包含するサービスコネクタクラスと、
取得するアイテムの条件を管理する条件クラスと、
前記アイテムに関する情報を管理するアイテムクラスと、を含んで構成し、
前記プラットフォームクラスは、その処理順序が最も先のクラスであり、
前記サービスコネクタクラス及び前記条件クラスは、その処理順序が前記プラットフォームクラスより後のクラスであり、
前記アイテムクラスは、その処理順序が前記サービスコネクタクラスより後のクラスである、請求項1に記載の統括プログラム。 The overall program includes a platform class including all classes included in the overall program,
A service connector class containing an item class and a condition class;
A condition class that manages the conditions of the items to be retrieved,
An item class that manages information about the item, and
The platform class is the class whose processing order is the earliest,
The service connector class and the condition class are classes whose processing order is after the platform class,
The overall program according to claim 1, wherein the item class is a class whose processing order is after the service connector class.
前記プラットフォームクラスからの要求に応じて、前記条件クラスは、取得する前記アイテムの条件を設定し、
前記プラットフォームクラスからの要求に応じて、前記サービスコネクタクラスは、前記条件の内容に従って前記アイテムに関する情報を前記アイテムの実態を管理するギャラリーシステムから取得し、前記アイテムクラスに当該取得した当該アイテムに関する情報を管理させるとともに、当該取得したアイテムに関する情報を返し、
前記サービスコネクタクラスからの要求に応じて、前記アイテムクラスは、要求された前記アイテムに関する情報を編集する、請求項2に記載の統括プログラム。 In response to the item acquisition request, the platform class returns information about the item based on responses from the condition class and the service connector class,
In response to a request from the platform class, the condition class sets a condition of the item to be acquired,
In response to a request from the platform class, the service connector class acquires information on the item from the gallery system that manages the actual condition of the item according to the content of the condition, and acquires the information on the item that has been acquired in the item class. And return information about the acquired item,
3. The overall program according to claim 2, wherein the item class edits information related to the requested item in response to a request from the service connector class.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010147945A JP5279767B2 (en) | 2010-06-29 | 2010-06-29 | General program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010147945A JP5279767B2 (en) | 2010-06-29 | 2010-06-29 | General program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2012014261A JP2012014261A (en) | 2012-01-19 |
| JP5279767B2 true JP5279767B2 (en) | 2013-09-04 |
Family
ID=45600655
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2010147945A Active JP5279767B2 (en) | 2010-06-29 | 2010-06-29 | General program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5279767B2 (en) |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7055132B2 (en) * | 2002-06-28 | 2006-05-30 | Microsoft Corporation | System and method for associating properties with objects |
| US7680935B2 (en) * | 2004-09-30 | 2010-03-16 | Microsoft Corporation | Entity domains |
| JP2009048404A (en) * | 2007-08-20 | 2009-03-05 | Hitachi Information Systems Ltd | Program generation execution method and system, and program thereof |
-
2010
- 2010-06-29 JP JP2010147945A patent/JP5279767B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2012014261A (en) | 2012-01-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103778178B (en) | Method and system for reconfiguring snapshot of virtual machine (VM) | |
| US9286037B2 (en) | Platform for distributed applications | |
| US8266153B2 (en) | Determining and displaying application server object relevance | |
| US9015651B2 (en) | Gateway data distribution engine | |
| US10782961B2 (en) | Analyzing components related to a software application in a software development environment | |
| KR101478134B1 (en) | File management method for mobile device and mobile device using thereof | |
| US20080010082A1 (en) | System and method for business process management | |
| US10304222B2 (en) | System and method for graphically displaying recommended mappings in an integration cloud service design time | |
| US8966442B2 (en) | Custom code innovation management | |
| US20090319951A1 (en) | Aggregating Service Components | |
| US9043755B2 (en) | Custom code lifecycle management | |
| US20120060141A1 (en) | Integrated environment for software design and implementation | |
| JP2005346722A (en) | Method and apparatus for generating form using form type | |
| MX2007015887A (en) | Data centric workflows. | |
| US20130332897A1 (en) | Creating a user model using component based approach | |
| US20080288918A1 (en) | Web service tool based on business object layer | |
| CN114090005A (en) | Vue-based visualization component access method | |
| JP6626327B2 (en) | Gantt chart generation program, Gantt chart generation device, and Gantt chart generation method | |
| CN103678687B (en) | Establishment of item method and device based on configuration system | |
| CN111124386B (en) | Animation event processing method, device, equipment and storage medium based on Unity | |
| US9268533B2 (en) | Method and apparatus for enabling layered property definition in traditional and cloud computing environments | |
| JP5279767B2 (en) | General program | |
| CN114265589B (en) | A method, device, storage medium and terminal for dynamically updating page data | |
| Malik | Appsheet vs React Native: evaluation of performance and development of Android Apps | |
| CN114064021A (en) | Hospital management platform customization method and device based on user requirements and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20120312 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120704 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120807 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20121003 |
|
| RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20121003 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20121211 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130205 |
|
| 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: 20130430 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130521 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 5279767 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |