作者: Nicolás Cardozo
关键词: Context (language use) 、 As is 、 Set (psychology) 、 Declarative programming 、 Mechanism (biology) 、 Composition (language) 、 Close relationship 、 User interface 、 Human–computer interaction 、 Computer science
摘要: Context-oriented Programming proposes a language-level technique to enable dynamic adaptations by the activation of contextual situations sensed from environment. Context triggers composition behavioral with running system. Currently, there is close relationship between contexts and environment, narrowing application these techniques systems that react data. This can also be difficulty in requiring explicit users interacting user interface. Such require uniform way express different based on set their defining properties, while minimizing interaction user. We posit declarative language, CQL, unifies mechanisms activate contexts. CQL incorporated as domain-specific language any context-oriented language. validated appropriateness two directions. First, we use expressiveness realize for context model. All existing mechanism literature are effectively implemented CQL. Second, automate many contexts, case context-driven multi-versioning application. Both validation cases Traits representative implementation.