In this paper, a novel approach for service substitutions based on the service type in terms of its interface type and behavior semantics is proposed. In order to analyze and verify behavior-consistent service substit...In this paper, a novel approach for service substitutions based on the service type in terms of its interface type and behavior semantics is proposed. In order to analyze and verify behavior-consistent service substitutions in dynamic environments, we first present a formal language to describe services from control-flow perspective, then introduce a type and effect system to infer conservative approximations of all possible behaviors of these services. The service behaviors are represented by concurrent behavior expressions (CBEs). Built upon the interpretation of CBEs, behavior-consistent service substitutions are defined and analyzed by subtyping technology. The correctness of the analysis approach is guaranteed by type safety theorem, which is mechanically proved in the Coq proof assistant. Finally, applications in web services show that our method is effective and feasible.展开更多
The co-occurrence of 2 similar species depends on their ability to occupy different ecological niches. Here, we compared the consistency of different aspects of foraging behavior in 2 cooccurring harvester ant species...The co-occurrence of 2 similar species depends on their ability to occupy different ecological niches. Here, we compared the consistency of different aspects of foraging behavior in 2 cooccurring harvester ant species (Messor ebeninus and Messor arenarius), under field conditions. The 2 species are active concomitantly and display a similar diet, but M. arenarius features smaller colonies, larger workers on average, and a broader range of foraging strategies than M. ebeninus. We characterized the flora in the 2 species' natural habitat, and detected a nesting preference by M. arenarius for more open, vegetation-free microhabitats than those preferred by M. ebeninus. Next, we tested the food preference of foraging colonies by presenting 3 non-native seed types. Messor arenarius was more selective in its food choice. Colonies were then offered 1 type of seeds over 3 days in different spatial arrangements from the nest entrance (e.g., a seed plate close to the nest entrance, a seed plate blocked by an obstacle, or 3 plates placed at increasing distances from the nest entrance). While both species were consistent in their foraging behavior, expressed as seed collection, under different treatments over time, M. ebeninus was more consistent than M. arenarius. These differences between the species may be expxained by their different colony size, worker size, and range of foraging strategies, among other factors. We suggest that the differences in foraging, such as in food preference and behavioral consistency while foraging, could contribute to the co-occurrence of these 2 species in a similar habitat.展开更多
Checking if the implementations conform to the requirement models is challenging. Most existing techniques for consistency checking either focus on requirement models(e.g., requirements consistency checking), or on ...Checking if the implementations conform to the requirement models is challenging. Most existing techniques for consistency checking either focus on requirement models(e.g., requirements consistency checking), or on the implementations(e.g., code-based testing) only. In this paper we propose an approach to checking behavioral consistency of implementations against requirement models directly to overcome these limitations. Our approach extracts two behavioral models represented by Labelled Transition Systems(LTS) from requirement models and implementations respectively, and checks the behavioral consistency between these two models based on behavioral simulation relation of LTS. The checking results of our approach provide evidence for behavioral inconsistency as well as inconsistent localization. A research prototype called BCCH and a case study are presented to give initial validation of this approach.展开更多
基金the National Natural Science Foundation of China(Nos.61232007 and 91118004)the Innovation Program of Shanghai Municipal Education Commission(No.13ZZ023)
文摘In this paper, a novel approach for service substitutions based on the service type in terms of its interface type and behavior semantics is proposed. In order to analyze and verify behavior-consistent service substitutions in dynamic environments, we first present a formal language to describe services from control-flow perspective, then introduce a type and effect system to infer conservative approximations of all possible behaviors of these services. The service behaviors are represented by concurrent behavior expressions (CBEs). Built upon the interpretation of CBEs, behavior-consistent service substitutions are defined and analyzed by subtyping technology. The correctness of the analysis approach is guaranteed by type safety theorem, which is mechanically proved in the Coq proof assistant. Finally, applications in web services show that our method is effective and feasible.
文摘The co-occurrence of 2 similar species depends on their ability to occupy different ecological niches. Here, we compared the consistency of different aspects of foraging behavior in 2 cooccurring harvester ant species (Messor ebeninus and Messor arenarius), under field conditions. The 2 species are active concomitantly and display a similar diet, but M. arenarius features smaller colonies, larger workers on average, and a broader range of foraging strategies than M. ebeninus. We characterized the flora in the 2 species' natural habitat, and detected a nesting preference by M. arenarius for more open, vegetation-free microhabitats than those preferred by M. ebeninus. Next, we tested the food preference of foraging colonies by presenting 3 non-native seed types. Messor arenarius was more selective in its food choice. Colonies were then offered 1 type of seeds over 3 days in different spatial arrangements from the nest entrance (e.g., a seed plate close to the nest entrance, a seed plate blocked by an obstacle, or 3 plates placed at increasing distances from the nest entrance). While both species were consistent in their foraging behavior, expressed as seed collection, under different treatments over time, M. ebeninus was more consistent than M. arenarius. These differences between the species may be expxained by their different colony size, worker size, and range of foraging strategies, among other factors. We suggest that the differences in foraging, such as in food preference and behavioral consistency while foraging, could contribute to the co-occurrence of these 2 species in a similar habitat.
基金Supported by the National Natural Science Foundation of China(91118003,61003071)the Fundamental Research Funds for the Central Universities(3101046,201121102020006)the Special Funds for Shenzhen Strategic New Industry Development(JCYJ20120616135936123)
文摘Checking if the implementations conform to the requirement models is challenging. Most existing techniques for consistency checking either focus on requirement models(e.g., requirements consistency checking), or on the implementations(e.g., code-based testing) only. In this paper we propose an approach to checking behavioral consistency of implementations against requirement models directly to overcome these limitations. Our approach extracts two behavioral models represented by Labelled Transition Systems(LTS) from requirement models and implementations respectively, and checks the behavioral consistency between these two models based on behavioral simulation relation of LTS. The checking results of our approach provide evidence for behavioral inconsistency as well as inconsistent localization. A research prototype called BCCH and a case study are presented to give initial validation of this approach.