答:动态条件执行的设计模式

M. Omori, Nobuyuki Ikeda, J. Yamamoto
{"title":"答:动态条件执行的设计模式","authors":"M. Omori, Nobuyuki Ikeda, J. Yamamoto","doi":"10.1109/TOOLS.1999.787545","DOIUrl":null,"url":null,"abstract":"We propose a new design pattern named Answerer whose purpose is to eliminate the effort of recompiling a program due to changes of run-time environments. Most programs have to behave differently to accommodate with various run-time environments. Usually the behaviors of such programs have to be specified in conditioned blocks. When the run-time environment of a program changes, these blocks need to be modified and recompiled. The Answerer pattern applies the reflection architectural pattern to take care of conditional execution. The reflection architectural pattern provides a mechanism for changing structure and behavior dynamically. Based on this idea, the Answerer pattern provides: (1) a model of conditional execution and specification rules, (2) a mechanism to structure a model dynamically from information acquired at run-time, (3) a mechanism to create and execute a conditional operation from a model created from (2). We developed the Answerer pattern with the following two steps. Firstly, we found that it is necessary for structural items of (1) to implement the following information in order to implement the Answerer design pattern based on the above model and mechanisms: (a) information about environmental factors that should be observed; (b) information about behavior that should be executed according to the factors. Secondly, we created the Answerer design pattern that implements (2) and (3). We explain how we applied and implemented the Answerer pattern with an example of Java applet of DVD authoring tool.","PeriodicalId":147966,"journal":{"name":"Proceedings of Technology of Object-Oriented Languages and Systems - TOOLS 30 (Cat. No.PR00278)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1999-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"Answerer: a design pattern for dynamical conditional execution\",\"authors\":\"M. Omori, Nobuyuki Ikeda, J. Yamamoto\",\"doi\":\"10.1109/TOOLS.1999.787545\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"We propose a new design pattern named Answerer whose purpose is to eliminate the effort of recompiling a program due to changes of run-time environments. Most programs have to behave differently to accommodate with various run-time environments. Usually the behaviors of such programs have to be specified in conditioned blocks. When the run-time environment of a program changes, these blocks need to be modified and recompiled. The Answerer pattern applies the reflection architectural pattern to take care of conditional execution. The reflection architectural pattern provides a mechanism for changing structure and behavior dynamically. Based on this idea, the Answerer pattern provides: (1) a model of conditional execution and specification rules, (2) a mechanism to structure a model dynamically from information acquired at run-time, (3) a mechanism to create and execute a conditional operation from a model created from (2). We developed the Answerer pattern with the following two steps. Firstly, we found that it is necessary for structural items of (1) to implement the following information in order to implement the Answerer design pattern based on the above model and mechanisms: (a) information about environmental factors that should be observed; (b) information about behavior that should be executed according to the factors. Secondly, we created the Answerer design pattern that implements (2) and (3). We explain how we applied and implemented the Answerer pattern with an example of Java applet of DVD authoring tool.\",\"PeriodicalId\":147966,\"journal\":{\"name\":\"Proceedings of Technology of Object-Oriented Languages and Systems - TOOLS 30 (Cat. No.PR00278)\",\"volume\":\"1 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"1999-08-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings of Technology of Object-Oriented Languages and Systems - TOOLS 30 (Cat. No.PR00278)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/TOOLS.1999.787545\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of Technology of Object-Oriented Languages and Systems - TOOLS 30 (Cat. No.PR00278)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/TOOLS.1999.787545","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

摘要

我们提出了一种名为answer的新设计模式,其目的是消除由于运行时环境的变化而重新编译程序的工作。大多数程序必须有不同的行为以适应不同的运行时环境。通常,这类程序的行为必须在条件块中指定。当程序的运行时环境发生变化时,需要修改和重新编译这些块。应答器模式应用反射体系结构模式来处理条件执行。反射体系结构模式提供了一种动态更改结构和行为的机制。基于这一思想,Answerer模式提供:(1)条件执行和规范规则的模型,(2)根据运行时获得的信息动态构建模型的机制,(3)从(2)创建的模型创建和执行条件操作的机制。我们通过以下两个步骤开发了Answerer模式。首先,我们发现,为了实现基于上述模型和机制的应答器设计模式,(1)的结构项需要实现以下信息:(a)应观察的环境因素信息;(b)根据这些因素应该执行的行为的信息。其次,我们创建了实现(2)和(3)的Answerer设计模式。我们通过DVD创作工具的Java applet示例解释了我们如何应用和实现Answerer模式。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Answerer: a design pattern for dynamical conditional execution
We propose a new design pattern named Answerer whose purpose is to eliminate the effort of recompiling a program due to changes of run-time environments. Most programs have to behave differently to accommodate with various run-time environments. Usually the behaviors of such programs have to be specified in conditioned blocks. When the run-time environment of a program changes, these blocks need to be modified and recompiled. The Answerer pattern applies the reflection architectural pattern to take care of conditional execution. The reflection architectural pattern provides a mechanism for changing structure and behavior dynamically. Based on this idea, the Answerer pattern provides: (1) a model of conditional execution and specification rules, (2) a mechanism to structure a model dynamically from information acquired at run-time, (3) a mechanism to create and execute a conditional operation from a model created from (2). We developed the Answerer pattern with the following two steps. Firstly, we found that it is necessary for structural items of (1) to implement the following information in order to implement the Answerer design pattern based on the above model and mechanisms: (a) information about environmental factors that should be observed; (b) information about behavior that should be executed according to the factors. Secondly, we created the Answerer design pattern that implements (2) and (3). We explain how we applied and implemented the Answerer pattern with an example of Java applet of DVD authoring tool.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信