Consistency Management in the Presence of Dynamically Scoped Adaptations
نویسندگان
چکیده
Ensuring that software can display different behavior in different use contexts requires adapting software at runtime in dynamically created scopes (e.g. in a thread, in a client session, in a collaboration). ContextOriented Programming (COP) offers dedicated language constructs for performing such dynamically scoped adaptations. COP supports powerful customizations such as concurrent customization where independent clients can concurrently customize the functionality of a shared component, and system-wide customizations that cross technical boundaries. However, like any dynamic software adaptation technique, COP hits a conceptual barrier when new variations of existing program entities are integrated into a running system: if applied uncarefully, dynamically scoped adaptations may lead to faulty behavior especially when layer activation occurs at stages where the affected system components themselves are in a transitional, inconsistent state. Inherently, the ways of managing state consistency is highly specific to the application at hand and therefore requires additional application-specific logic from the system itself. What is needed is a consistency management framework that guides the programmer in specifying this application-specific logic in a principled way. 1 Flavors of context-oriented programming Many COP languages exists to date. Althoug there may be different flavors of COP, a common goal of most COP languages is to enable activation of layers of behavior in a specific dynamic scope of the program, in parallel with other dynamic scopes of the program. For example, our research platform Lasagne [7] supports per-client request activation of aspectual layers. This allows different clients to customize the same component instance in parallel. Looking further however at the different flavors of COP, it can be seen that at least two types of dynamically scoped adaptations are supported [2]: loyal adaptations where layers, once activated, are continously activated in their current dynamic scope, versus prompt adaptations where layers can be flexibly activated and deactivated in the same dynamic scope. For instance, Lasagne is a loyal COP language. The notion of per-request activation implies that the
منابع مشابه
Identification and management of inconsistencies in dynamically adaptive software systems
Computing devices now enable access to rich information about their surrounding execution environment gathered through sensor networks or system monitors. This ability allows software systems to be conceived with context in mind, instead of being created in isolation as in traditional approaches for software development. Services provided by software systems can be adapted to sensed conditions ...
متن کاملDynamically Scoped Functions for Runtime Modification
The importance of lexically scoped variable and function definitions is acknowledged in almost all programming languages. However, there are only few languages that provide dynamically scoped variables as well in spite of their usefulness. Furthermore, dynamically scoped functions have been largely dismissed. This paper provides a new perspective on dynamically scoped functions and sketches a d...
متن کاملThe structural adaptations of Convolvulus persicus, an endangered plant in the northern coasts of Iran
The purpose of this research was to identify the structural adaptations in three populations of Convolvulus persicus L. on coastal areas in Mazandaran Province, whose populations of which are severely reducing due to the intense environmental stresses of the coastal zone. In general, annular collenchyma, isobilateral mesophyll, amphiphloic siphonostele, abundant presence of laticiferous tubes, ...
متن کاملRelating Two Semantics of Locally Scoped Names
The operational semantics of programming constructs involving locally scoped names typically makes use of stateful dynamic allocation: a set of currently-used names forms part of the state and upon entering a scope the set is augmented by a new name bound to the scoped identifier. More abstractly, one can see this as a transformation of local scopes by expanding them outward to an implicit top-...
متن کاملLocalization of Determinants of Fertility through Measurement Adaptations in Developing-Country Settings: The Case of Iran; Comment on “Analysis of Economic Determinants of Fertility in Iran: A Multilevel Approach”
Studies investigating fertility decline in developing countries often adopt measures of determinants of fertility behavior developed based on observations from developed countries, without adapting them to the realities of the study setting. As a result, their findings are usually invalid, anomalous or statistically non-significant. This commentary draws on the research article by Moeeni and co...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2009