980 resultados para Testing aspect-oriented programs
Resumo:
Mainstream hardware is becoming parallel, heterogeneous, and distributed on every desk, every home and in every pocket. As a consequence, in the last years software is having an epochal turn toward concurrency, distribution, interaction which is pushed by the evolution of hardware architectures and the growing of network availability. This calls for introducing further abstraction layers on top of those provided by classical mainstream programming paradigms, to tackle more effectively the new complexities that developers have to face in everyday programming. A convergence it is recognizable in the mainstream toward the adoption of the actor paradigm as a mean to unite object-oriented programming and concurrency. Nevertheless, we argue that the actor paradigm can only be considered a good starting point to provide a more comprehensive response to such a fundamental and radical change in software development. Accordingly, the main objective of this thesis is to propose Agent-Oriented Programming (AOP) as a high-level general purpose programming paradigm, natural evolution of actors and objects, introducing a further level of human-inspired concepts for programming software systems, meant to simplify the design and programming of concurrent, distributed, reactive/interactive programs. To this end, in the dissertation first we construct the required background by studying the state-of-the-art of both actor-oriented and agent-oriented programming, and then we focus on the engineering of integrated programming technologies for developing agent-based systems in their classical application domains: artificial intelligence and distributed artificial intelligence. Then, we shift the perspective moving from the development of intelligent software systems, toward general purpose software development. Using the expertise maturated during the phase of background construction, we introduce a general-purpose programming language named simpAL, which founds its roots on general principles and practices of software development, and at the same time provides an agent-oriented level of abstraction for the engineering of general purpose software systems.
Resumo:
A control-oriented model of a Dual Clutch Transmission was developed for real-time Hardware In the Loop (HIL) applications, to support model-based development of the DCT controller. The model is an innovative attempt to reproduce the fast dynamics of the actuation system while maintaining a step size large enough for real-time applications. The model comprehends a detailed physical description of hydraulic circuit, clutches, synchronizers and gears, and simplified vehicle and internal combustion engine sub-models. As the oil circulating in the system has a large bulk modulus, the pressure dynamics are very fast, possibly causing instability in a real-time simulation; the same challenge involves the servo valves dynamics, due to the very small masses of the moving elements. Therefore, the hydraulic circuit model has been modified and simplified without losing physical validity, in order to adapt it to the real-time simulation requirements. The results of offline simulations have been compared to on-board measurements to verify the validity of the developed model, that was then implemented in a HIL system and connected to the TCU (Transmission Control Unit). Several tests have been performed: electrical failure tests on sensors and actuators, hydraulic and mechanical failure tests on hydraulic valves, clutches and synchronizers, and application tests comprehending all the main features of the control performed by the TCU. Being based on physical laws, in every condition the model simulates a plausible reaction of the system. The first intensive use of the HIL application led to the validation of the new safety strategies implemented inside the TCU software. A test automation procedure has been developed to permit the execution of a pattern of tests without the interaction of the user; fully repeatable tests can be performed for non-regression verification, allowing the testing of new software releases in fully automatic mode.
Resumo:
Modern software systems, in particular distributed ones, are everywhere around us and are at the basis of our everyday activities. Hence, guaranteeing their cor- rectness, consistency and safety is of paramount importance. Their complexity makes the verification of such properties a very challenging task. It is natural to expect that these systems are reliable and above all usable. i) In order to be reliable, compositional models of software systems need to account for consistent dynamic reconfiguration, i.e., changing at runtime the communication patterns of a program. ii) In order to be useful, compositional models of software systems need to account for interaction, which can be seen as communication patterns among components which collaborate together to achieve a common task. The aim of the Ph.D. was to develop powerful techniques based on formal methods for the verification of correctness, consistency and safety properties related to dynamic reconfiguration and communication in complex distributed systems. In particular, static analysis techniques based on types and type systems appeared to be an adequate methodology, considering their success in guaranteeing not only basic safety properties, but also more sophisticated ones like, deadlock or livelock freedom in a concurrent setting. The main contributions of this dissertation are twofold. i) On the components side: we design types and a type system for a concurrent object-oriented calculus to statically ensure consistency of dynamic reconfigurations related to modifications of communication patterns in a program during execution time. ii) On the communication side: we study advanced safety properties related to communication in complex distributed systems like deadlock-freedom, livelock- freedom and progress. Most importantly, we exploit an encoding of types and terms of a typical distributed language, session π-calculus, into the standard typed π- calculus, in order to understand their expressive power.
Resumo:
Recent evidence on malnutrition and poverty raise important questions on the role of food assistance policies and programs. In this review article, we examine evidence on the economic and nutritional impacts of international food assistance programs (FAPs) and policies. The returns on investments in FAPs are, on average, high but depend considerably on the targeting and cost structures as well as on food quality and role of complementary activities. We disaggregate findings into four classes of recipients. Returns to FAPs are highest for children under two. But, FAPs oriented towards early childhood interventions are less well funded than are interventions aimed at school-age children or at the broader, largely adult population even though available evidence indicates that these latter classes of interventions offer considerably lower average returns in economic, health, and nutrition terms. Nonetheless, FAP effectiveness in achieving any of several objectives varies with a range of key factors, including targeting, additionality, seasonality, timeliness, incentive effects, social acceptability and political economy considerations. (C) 2013 Elsevier Ltd. All rights reserved.
Resumo:
Cold-formed steel (CFS) combined with wood sheathing, such as oriented strand board (OSB), forms shear walls that can provide lateral resistance to seismic forces. The ability to accurately predict building deformations in damaged states under seismic excitations is a must for modern performance-based seismic design. However, few static or dynamic tests have been conducted on the non-linear behavior of CFS shear walls. Thus, the purpose of this research work is to provide and demonstrate a fastener-based computational model of CFS wall models that incorporates essential nonlinearities that may eventually lead to improvement of the current seismic design requirements. The approach is based on the understanding that complex interaction of the fasteners with the sheathing is an important factor in the non-linear behavior of the shear wall. The computational model consists of beam-column elements for the CFS framing and a rigid diaphragm for the sheathing. The framing and sheathing are connected with non-linear zero-length fastener elements to capture the OSB sheathing damage surrounding the fastener area. Employing computational programs such as OpenSees and MATLAB, 4 ft. x 9 ft., 8 ft. x 9 ft. and 12 ft. x 9 ft. shear wall models are created, and monotonic lateral forces are applied to the computer models. The output data are then compared and analyzed with the available results of physical testing. The results indicate that the OpenSees model can accurately capture the initial stiffness, strength and non-linear behavior of the shear walls.
Resumo:
The transition in Central and Eastern Europe since the late 1980s has provided a testing ground for classic propositions. This project looked at the impact of privatisation on private consumption, using the Czech experiment of voucher privatisation to test the permanent income hypothesis. This form of privatisation moved state assets to individuals and represented an unexpected windfall gain for participants in the scheme. Whether the windfall was consumed or saved offers a clear test of the permanent income hypothesis. Of a total population of 10 million, 6 million Czechs, i.e. virtually every household, participated in the scheme,. In a January 1996 survey, 1263 individuals were interviewed , 75% of whom had taken part. The data obtained suggests that only a small quantity of transferred assets were cashed in and spent on consumption, providing support for the permanent income hypothesis. The fraction of the windfall consumed grows with age, as would be predicted from the lower life expectancy of older consumers. The most interesting deviation was for people aged 26 to 35, who apparently consumed more that they would if the windfall were annuitised. As these people are at the stage in their lives when they would otherwise be borrowing to cover consumption related to establishing a family, etc., this is however consistent with the permanent income hypothesis, which predicts that individuals who would otherwise borrow money would use the windfall to avoid doing so.
Resumo:
The breeding program for beef cattle in Japan has changed dramatically over 4 decades. Visual judging was done initially, but progeny testing in test stations began in 1968. In the 1980s, the genetic evaluation program using field records, so-called on-farm progeny testing, was first adopted in Oita, Hyogo, and Kumamoto prefectures. In this study, genetic trends for carcass traits in these 3 Wagyu populations were estimated, and genetic gains per year were compared among the 3 different beef cattle breeding programs. The field carcass records used were collected between 1988 and 2003. The traits analyzed were carcass weight, LM area, rib thickness, s.c. fat thickness, and beef marbling standard number. The average breeding values of reproducing dams born the same year were used to estimate the genetic trends for the carcass traits. For comparison of the 3 breeding programs, birth years of the dams were divided into 3 periods reflecting each program. Positive genetic trends for beef marbling standard number were clearly shown in all populations. The genetic gains per year for all carcass traits were significantly enhanced by adopting the on-farm progeny testing program. These results indicate that the on-farm progeny testing program with BLUP is a very powerful approach for genetic improvement of carcass traits in Japanese Wagyu beef cattle.
Resumo:
AIM: This study compared matched samples of substance use disorder (SUD) patients in Swiss and United States (US) residential treatment programs and examined the relationship of program characteristics to patients' substance use and psychosocial functioning at a 1-year follow-up. DESIGN AND SETTING: The study used a prospective, naturalistic design and a sample of 10 public programs in the German-speaking part of Switzerland and 15 US public treatment programs. PARTICIPANTS: A total of 358 male patients in Swiss programs were matched on age, marital status and education with 358 male patients in US programs. A total of 160 Swiss and 329 US patient care staff members also participated. MEASUREMENT: Patients completed comparable inventories at admission, discharge and 1-year follow-up to assess their substance use and psychological functioning and receipt of continuing care. Staff members reported on program characteristics and their beliefs about substance use. FINDINGS: Compared to Swiss patients, US patients had more severe substance use and psychological problems at intake and although they did not differ on abstinence and remission at follow-up, had somewhat poorer outcomes in other areas of functioning. Swiss programs were longer and included more individual treatment sessions; US programs included more group sessions and were more oriented toward a disease model of treatment. Overall, length of program, treatment intensity and 12-step orientation were associated with better 1-year outcomes for patients in both Swiss and US programs. CONCLUSIONS: The sample of Swiss and US programs studied here differed in patient and treatment characteristics; however, in general, there were comparable associations between program characteristics and patients' 1-year outcomes. These findings suggest that associations between treatment processes and patients' outcomes may generalize from one cultural context to another.
Resumo:
OBJECTIVE: The aim of this study was to compare the results of tendency-oriented perimetry (TOP) and a dynamic strategy in octopus perimetry as screening methods in clinical practice. DESIGN: A prospective single centre observational case series was performed. PARTICIPANTS AND METHODS: In a newly opened general ophthalmologic practice 89 consecutive patients (171 eyes) with a clinical indication for octopus static perimetry testing (ocular hypertension or suspicious optic nerve cupping) were examined prospectively with TOP and a dynamic strategy. The visual fields were graded by 3 masked observers as normal, borderline or abnormal without any further clinical information. RESULTS: 83% eyes showed the same result for both strategies. In 14% there was a small difference (with one visual field being abnormal or normal, the other being borderline). In only 2.9% of the eyes (5 cases) was there a contradictory result. In 4 out of 5 cases the dynamic visual field was abnormal and TOP was normal. 4 of these cases came back for a second examination. In all 4 the follow-up examination showed a normal second dynamic visual field. CONCLUSIONS: Octopus static perimetry using a TOP strategy is a fast, patient-friendly and very reliable screening tool for the general ophthalmological practice. We found no false-negative results in our series.
Resumo:
We developed an object-oriented cross-platform program to perform three-dimensional (3D) analysis of hip joint morphology using two-dimensional (2D) anteroposterior (AP) pelvic radiographs. Landmarks extracted from 2D AP pelvic radiographs and optionally an additional lateral pelvic X-ray were combined with a cone beam projection model to reconstruct 3D hip joints. Since individual pelvic orientation can vary considerably, a method for standardizing pelvic orientation was implemented to determine the absolute tilt/rotation. The evaluation of anatomically morphologic differences was achieved by reconstructing the projected acetabular rim and the measured hip parameters as if obtained in a standardized neutral orientation. The program had been successfully used to interactively objectify acetabular version in hips with femoro-acetabular impingement or developmental dysplasia. Hip(2)Norm is written in object-oriented programming language C++ using cross-platform software Qt (TrollTech, Oslo, Norway) for graphical user interface (GUI) and is transportable to any platform.
Resumo:
The benefits companies achieve by implementing an ERP system vary considerably. Many companies need to adapt their ERP integration solution in the post-implementation stage. But after the completion of such a usually very complex integration project, benefits do not emerge by all means. A misfit between the organization and the IS, especially the aspect of cross-functional team collaboration, could explain these divergences. Using an initial theoretical framework, we conducted a single case study to explore the team-oriented perceptions in a post-implementation ERP integration project. To analyze the benefits and the influences in greater depth we disentangled the integration benefits into their particular parts (process, system and information quality). Our findings show that post-implementation ERP integration changes are not always perceived as beneficiary by the involved teams and that cross-functional collaboration has an important influence.
Resumo:
A tandem mass spectral database system consists of a library of reference spectra and a search program. State-of-the-art search programs show a high tolerance for variability in compound-specific fragmentation patterns produced by collision-induced decomposition and enable sensitive and specific 'identity search'. In this communication, performance characteristics of two search algorithms combined with the 'Wiley Registry of Tandem Mass Spectral Data, MSforID' (Wiley Registry MSMS, John Wiley and Sons, Hoboken, NJ, USA) were evaluated. The search algorithms tested were the MSMS search algorithm implemented in the NIST MS Search program 2.0g (NIST, Gaithersburg, MD, USA) and the MSforID algorithm (John Wiley and Sons, Hoboken, NJ, USA). Sample spectra were acquired on different instruments and, thus, covered a broad range of possible experimental conditions or were generated in silico. For each algorithm, more than 30,000 matches were performed. Statistical evaluation of the library search results revealed that principally both search algorithms can be combined with the Wiley Registry MSMS to create a reliable identification tool. It appears, however, that a higher degree of spectral similarity is necessary to obtain a correct match with the NIST MS Search program. This characteristic of the NIST MS Search program has a positive effect on specificity as it helps to avoid false positive matches (type I errors), but reduces sensitivity. Thus, particularly with sample spectra acquired on instruments differing in their Setup from tandem-in-space type fragmentation, a comparably higher number of false negative matches (type II errors) were observed by searching the Wiley Registry MSMS.
Resumo:
Consequence analysis is a key aspect of anchoring assessment of landslide impacts to present and long-term development planning. Although several approaches have been developed over the last decade, some of them are difficult to apply in practice, mainly because of the lack of valuable data on historical damages or on damage functions. In this paper, two possible consequence indicators based on a combination of descriptors of the exposure of the elements at risk are proposed in order to map the potential impacts of landslides and highlight the most vulnerable areas. The first index maps the physical vulnerability due to landslide; the second index maps both direct damage (physical, structural, functional) and indirect damage (socio-economic impacts) of landslide hazards. The indexes have been computed for the 200 km2 area of the Barcelonnette Basin (South French Alps), and their potential applications are discussed.
Resumo:
OBJECTIVES: Patients' motivation to change their substance use is usually viewed as a crucial component of successful treatment. The objective of this study was to examine whether motivation contributes to drinking outcomes after residential treatment for alcohol dependence. METHODS: Our sample included 415 Swiss patients from 12 residential alcohol treatment programs. We statistically controlled for important predictors, such as sex, employment, alcohol consumption before admission, severity of alcohol dependence, severity of psychiatric symptoms at admission, and alcohol-related self-efficacy at discharge. Abstinence, alcohol consumption, and time to first drink were used as primary outcome measures and were assessed 1 year after discharge from treatment. RESULTS: Action-oriented motivation to change substance use had a modest impact on drinking outcomes. At the 1-year follow-up, only the Taking Steps subscale of the Stages of Change Readiness and Treatment Eagerness Scale and alcohol-related self-efficacy were found to be significant predictors of abstinence and the number of standard drinks. CONCLUSIONS: The impact of action-oriented motivation at admission to residential treatment is modest but still relevant, compared with other outcome predictors. It may be useful to focus treatment on improving action-oriented motivation to reduce substance use