215 research outputs found
A Simple and Practical Approach to Unit Testing: The JML and JUnit Way
Writing unit test code is labor-intensive, hence it is often not done as an integral part of programming. However, unit testing is a practical approach to increasing the correctness and quality of software; for example, the Extreme Programming approach relies on frequent unit testing. In this paper we present a new approach that makes writing unit tests easier. It uses a formal specification language\u27s runtime assertion checker to decide whether methods are working correctly, thus automating the writing of unit test oracles. These oracles can be easily combined with hand-written test data. Instead of writing testing code, the programmer writes formal specifications (e.g., pre- and postconditions). This makes the programmer\u27s task easier, because specifications are more concise and abstract than the equivalent test code, and hence more readable and maintainable. Furthermore, by using specifications in testing, specification errors are quickly discovered, so the specifications are more likely to provide useful documentation and inputs to other tools. We have implemented this idea using the Java Modeling Language (JML) and the JUnit testing framework, but the approach could be easily implemented with other combinations of formal specification languages and unit test tools
A Simple and Practical Approach to Unit Testing: The JML and JUnit Way
Writing unit test code is labor-intensive, hence it is often not done as an integral part of programming. However, unit testing is a practical approach to increasing the correctness and quality of software; for example, the Extreme Programming approach relies on frequent unit testing. In this paper we present a new approach that makes writing unit tests easier. It uses a formal specification language\u27s runtime assertion checker to decide whether methods are working correctly, thus automating the writing of unit test oracles. These oracles can be easily combined with hand-written test data. Instead of writing testing code, the programmer writes formal specifications (e.g., pre- and postconditions). This makes the programmer\u27s task easier, because specifications are more concise and abstract than the equivalent test code, and hence more readable and maintainable. Furthermore, by using specifications in testing, specification errors are quickly discovered, so the specifications are more likely to provide useful documentation and inputs to other tools. We have implemented this idea using the Java Modeling Language (JML) and the JUnit testing framework, but the approach could be easily implemented with other combinations of formal specification languages and unit test tools
Climate change and mountain water resources: overview and recommendations for research, management and policy
Mountains are essential sources of freshwater for our world, but their role in global water resources could well be significantly altered by climate change. How well do we understand these potential changes today, and what are implications for water resources management, climate change adaptation, and evolving water policy? To answer above questions, we have examined 11 case study regions with the goal of providing a global overview, identifying research gaps and formulating recommendations for research, management and policy. <br><br> After setting the scene regarding water stress, water management capacity and scientific capacity in our case study regions, we examine the state of knowledge in water resources from a highland-lowland viewpoint, focusing on mountain areas on the one hand and the adjacent lowland areas on the other hand. Based on this review, research priorities are identified, including precipitation, snow water equivalent, soil parameters, evapotranspiration and sublimation, groundwater as well as enhanced warming and feedback mechanisms. In addition, the importance of environmental monitoring at high altitudes is highlighted. We then make recommendations how advancements in the management of mountain water resources under climate change could be achieved in the fields of research, water resources management and policy as well as through better interaction between these fields. <br><br> We conclude that effective management of mountain water resources urgently requires more detailed regional studies and more reliable scenario projections, and that research on mountain water resources must become more integrative by linking relevant disciplines. In addition, the knowledge exchange between managers and researchers must be improved and oriented towards long-term continuous interaction
Topological Color Codes and Two-Body Quantum Lattice Hamiltonians
Topological color codes are among the stabilizer codes with remarkable
properties from quantum information perspective. In this paper we construct a
four-valent lattice, the so called ruby lattice, governed by a 2-body
Hamiltonian. In a particular regime of coupling constants, degenerate
perturbation theory implies that the low energy spectrum of the model can be
described by a many-body effective Hamiltonian, which encodes the color code as
its ground state subspace. The gauge symmetry
of color code could already be realized by
identifying three distinct plaquette operators on the lattice. Plaquettes are
extended to closed strings or string-net structures. Non-contractible closed
strings winding the space commute with Hamiltonian but not always with each
other giving rise to exact topological degeneracy of the model. Connection to
2-colexes can be established at the non-perturbative level. The particular
structure of the 2-body Hamiltonian provides a fruitful interpretation in terms
of mapping to bosons coupled to effective spins. We show that high energy
excitations of the model have fermionic statistics. They form three families of
high energy excitations each of one color. Furthermore, we show that they
belong to a particular family of topological charges. Also, we use
Jordan-Wigner transformation in order to test the integrability of the model
via introducing of Majorana fermions. The four-valent structure of the lattice
prevents to reduce the fermionized Hamiltonian into a quadratic form due to
interacting gauge fields. We also propose another construction for 2-body
Hamiltonian based on the connection between color codes and cluster states. We
discuss this latter approach along the construction based on the ruby lattice.Comment: 56 pages, 16 figures, published version
Road users rarely use explicit communication when interacting in today’s traffic: Implications for Automated Vehicles
To be successful, automated vehicles (AVs) need to be able to manoeuvre in mixed traffic in a way that will be accepted by road users, and maximises traffic safety and efficiency. A likely prerequisite for this success is for AVs to be able to communicate effectively with other road users in a complex traffic environment. The current study, conducted as part of the European project interACT, investigates the communication strategies used by drivers and pedestrians while crossing the road at six observed locations, across three European countries. In total, 701 road user interactions were observed and annotated, using an observation protocol developed for this purpose. The observation protocols identified 20 event categories, observed from the approaching vehicles/drivers and pedestrians. These included information about movement, looking behaviour, hand gestures, and signals used, as well as some demographic data. These observations illustrated that explicit communication techniques, such as honking, flashing headlights by drivers, or hand gestures by drivers and pedestrians, rarely occurred. This observation was consistent across sites. In addition, a follow-on questionnaire, administered to a sub-set of the observed pedestrians after crossing the road, found that when contemplating a crossing, pedestrians were more likely to use vehicle-based behaviour, rather than communication cues from the driver. Overall, the findings suggest that vehicle-based movement information such as yielding cues are more likely to be used by pedestrians while crossing the road, compared to explicit communication cues from drivers, although some cultural differences were observed. The implications of these findings are discussed with respect to design of suitable external interfaces and communication of intent by future automated vehicles
Generalized Toric Codes Coupled to Thermal Baths
We have studied the dynamics of a generalized toric code based on qudits at
finite temperature by finding the master equation coupling the code's degrees
of freedom to a thermal bath. As a consequence, we find that for qutrits new
types of anyons and thermal processes appear that are forbidden for qubits.
These include creation, annihilation and diffusion throughout the system code.
It is possible to solve the master equation in a short-time regime and find
expressions for the decay rates as a function of the dimension of the
qudits. Although we provide an explicit proof that the system relax to the
Gibbs state for arbitrary qudits, we also prove that above a certain crossing
temperature, qutrits initial decay rate is smaller than the original case for
qubits. Surprisingly this behavior only happens with qutrits and not with other
qudits with .Comment: Revtex4 file, color figures. New Journal of Physics' versio
Helicobacter pylori CagA Disrupts Epithelial Patterning by Activating Myosin Light Chain
Helicobacter pylori infection is a leading cause of ulcers and gastric cancer. We show that expression of the H. pylori virulence factor CagA in a model Drosophila melanogaster epithelium induces morphological disruptions including ectopic furrowing. We find that CagA alters the distribution and increases the levels of activated myosin regulatory light chain (MLC), a key regulator of epithelial integrity. Reducing MLC activity suppresses CagA-induced disruptions. A CagA mutant lacking EPIYA motifs (CagAEPISA) induces less epithelial disruption and is not targeted to apical foci like wild-type CagA. In a cell culture model in which CagAEPISA and CagA have equivalent subcellular localization, CagAEPISA is equally potent in activating MLC. Therefore, in our transgenic system, CagA is targeted by EPIYA motifs to a specific apical region of the epithelium where it efficiently activates MLC to disrupt epithelial integrity
Report 26: Reduction in mobility and COVID-19 transmission
In response to the COVID-19 pandemic, countries have sought to control transmission of SARS-CoV-2 by restricting population movement through social distancing interventions, reducing the number of contacts. Mobility data represent an important proxy measure of social distancing. Here, we develop a framework to infer the relationship between mobility and the key measure of population-level disease transmission, the reproduction number (R). The framework is applied to 53 countries with sustained SARS-CoV-2 transmission based on two distinct country-specific automated measures of human mobility, Apple and Google mobility data. For both datasets, the relationship between mobility and transmission was consistent within and across countries and explained more than 85% of the variance in the observed variation in transmissibility. We quantified country-specific mobility thresholds defined as the reduction in mobility necessary to expect a decline in new infections (R<1). While social contacts were sufficiently reduced in France, Spain and the United Kingdom to control COVID-19 as of the 10th of May, we find that enhanced control measures are still warranted for the majority of countries. We found encouraging early evidence of some decoupling of transmission and mobility in 10 countries, a key indicator of successful easing of social-distancing restrictions. Easing social-distancing restrictions should be considered very carefully, as small increases in contact rates are likely to risk resurgence even where COVID-19 is apparently under control. Overall, strong population-wide social-distancing measures are effective to control COVID-19; however gradual easing of restrictions must be accompanied by alternative interventions, such as efficient contacttracing, to ensure control
Spitzer Follow-up of Extremely Cold Brown Dwarfs Discovered by the Backyard Worlds: Planet 9 Citizen Science Project
We present Spitzer follow-up imaging of 95 candidate extremely cold brown dwarfs discovered by the Backyard Worlds: Planet 9 citizen science project, which uses visually perceived motion in multiepoch Wide-field Infrared Survey Explorer (WISE) images to identify previously unrecognized substellar neighbors to the Sun. We measure Spitzer [3.6]–[4.5] color to phototype our brown dwarf candidates, with an emphasis on pinpointing the coldest and closest Y dwarfs within our sample. The combination of WISE and Spitzer astrometry provides quantitative confirmation of the transverse motion of 75 of our discoveries. Nine of our motion-confirmed objects have best-fit linear motions larger than 1'' yr⁻¹; our fastest-moving discovery is WISEA J155349.96+693355.2 (μ ≈ 2.”15 yr⁻¹), a possible T-type subdwarf. We also report a newly discovered wide-separation (~400 au) T8 comoving companion to the white dwarf LSPM J0055+5948 (the fourth such system to be found), plus a candidate late T companion to the white dwarf LSR J0002+6357 at 5 5 projected separation (~8700 au if associated). Among our motion-confirmed targets, five have Spitzer colors most consistent with spectral type Y. Four of these five have exceptionally red Spitzer colors suggesting types of Y1 or later, adding considerably to the small sample of known objects in this especially valuable low-temperature regime. Our Y dwarf candidates begin bridging the gap between the bulk of the Y dwarf population and the coldest known brown dwarf
- …