• 検索結果がありません。

C#プログラム実行時書き換えによるコンテキスト指向プログラミングの実現

N/A
N/A
Protected

Academic year: 2021

シェア "C#プログラム実行時書き換えによるコンテキスト指向プログラミングの実現"

Copied!
1
0
0

読み込み中.... (全文を見る)

全文

(1)情報処理学会論文誌. プログラミング. Vol.8 No.1 15 (June 2015). 発表概要. C#プログラム実行時書き換えによる コンテキスト指向プログラミングの実現 谷川 郁太1,a). 小倉 信彦2. 菅谷 みどり3. 渡辺 晴美1. 2014年11月11日発表. 本発表では,コンテキスト指向プログラミング(Context Oriented Programming: COP)のための C#実 行時書き換えフレームワークを提案する.COP とはシステムを取り巻く外部環境の状況,すなわちコンテ キストに応じて実行時にソフトウェアを再構築し,振舞いを変化させるプログラミング技術である.本フ レームワークは,COP のプログラム書き換えに関する 2 つの問題を解決する.「(1) 書き換え命令がプロ グラム中に散在し振舞いを複雑にする問題,(2) システムの整合性を保つ安全な書き換えは容易ではない問 題」.(1) は書き換え処理をどこでも記述可能なため発生する.(2) は書き換え時のシステムの振舞いを予 測することが困難であることから起こる.以上の問題を解決するために,提案フレームワークは次の特徴 を持つ.(1) コンテキストの状況を判定し,書き換え指示を行う部分をコンテキスト判定プログラムとして 独立させる.(2) ベースとなるクラスとメソッドが書き換え可能かを判定する条件を C#のアノテーション を用いて記述する.我々のフレームワークでは,システムの主要な処理部分を C#プログラムで記述する が,文法的な拡張を加えず,アノテーション記述方法の規定にとどまっている.したがって,上記 2 点の 問題に加え,既存プログラムの再利用,学習の容易さが見込める.最後に適用事例により評価検討する.. A C# Framework of Dynamic Program Rewriting at Runtime for Practical Context Oriented Programming Ikuta Tanigawa1,a). Nobuhiko Ogura2. Midori Sugaya3. Harumi Watanabe1. Presented: November 11, 2014. Towards practical Context Oriented Programming (COP), we will present a framework of dynamic programming rewriting at runtime and its supporting system. Context oriented programming (COP) treats context explicitly, and provides mechanisms to dynamically adapt behavior in reaction to changes in context at runtime. We will focus on the following problems of COP: (1) behavior of system is too complex to expect, since rewriting program instructions are scattered in the program and (2) as keeping consistency and safety, dynamic program rewriting is difficult. To overcome these problems, we propose a framework with the following features: (1) supporting independent context decision part and (2) classes or methods are attached with guard conditions on C# annotation to decide to invoke program rewriting. In our framework, programmer enables to write the mainstream program of system by using C# which is not extending grammar. The point of extending original C# is limited annotation rule. Therefore, in addition to previous problems, our framework contributes to be reusing legacy program and to learn easily how to use COP. Finally, to discuss novelty and usefulness, we will apply our framework to a case study.. 1. 2. 3. a). 九州大学大学院システム情報科学府 Graduate School of Information Science and Electrical Engineering, Kyushu University, Nishi, Fukuoka 819–0395, Japan 東京都市大学メディア情報学部 Tokyo City University, Faculty of Informatics, Yokohama, Kanagawa 224–8551, Japan 芝浦工業大学工学部情報工学科 Shibaura Institute of Technology, College of Engineering, Koto, Tokyo 135–8548, Japan [email protected]. c 2015 Information Processing Society of Japan . 15.

(2)

参照

関連したドキュメント

T. In this paper we consider one-dimensional two-phase Stefan problems for a class of parabolic equations with nonlinear heat source terms and with nonlinear flux conditions on the

[11] Karsai J., On the asymptotic behaviour of solution of second order linear differential equations with small damping, Acta Math. 61

Using an “energy approach” introduced by Bronsard and Kohn [11] to study slow motion for Allen-Cahn equation and improved by Grant [25] in the study of Cahn-Morral systems, we

Furthermore, the upper semicontinuity of the global attractor for a singularly perturbed phase-field model is proved in [12] (see also [11] for a logarithmic nonlinearity) for two

The first case is the Whitham equation, where numerical evidence points to the conclusion that the main bifurcation branch features three distinct points of interest, namely a

In this work we give definitions of the notions of superior limit and inferior limit of a real distribution of n variables at a point of its domain and study some properties of

modular proof of soundness using U-simulations.. & RIMS, Kyoto U.). Equivalence

Then it follows immediately from a suitable version of “Hensel’s Lemma” [cf., e.g., the argument of [4], Lemma 2.1] that S may be obtained, as the notation suggests, as the m A