[ Objective] The aim was to study the spatial distribution pattern and field sampling method of aphid population in spring wheat. [ Method] The aphid quantity in tested wheat field was calculated, the field distributi...[ Objective] The aim was to study the spatial distribution pattern and field sampling method of aphid population in spring wheat. [ Method] The aphid quantity in tested wheat field was calculated, the field distribution pattern of wheat aphid was calculated by using aggregated index method, the aggregated reason was analyzed and the field theoretical sampling number was ascertained. [ Result] The wheat aphid population showed aggregation distribution and negative binomial distribution, and such aggregation distribution was induced by interaction of its behavior and environmental factors. The field theoretical sampling number of wheat aphid was related to sample variance and permissible error; the less the sam- ple variance [ S^2 ) was, the less the permissible error [ d') was, the bigger the theoretical sampling number without replacement was; when the initial population numbers were different, the theoretical sampling numbers were also different; after the permissible error being set, the bigger the sample variance ( S^2 ) was, the bigger the theoretical sampling number was. [ Conclusion] This study supplied scientific basis for prediction and field control of wheat aphid.展开更多
Complex conditional statement is one of the bad code smells, which affects the quality of the code and design of software. In the proposed approach, two commonly-used design patterns for handling complex conditional s...Complex conditional statement is one of the bad code smells, which affects the quality of the code and design of software. In the proposed approach, two commonly-used design patterns for handling complex conditional statements are selected, and they are the factory method pattern and the strategy pattem. Two pattern-directed refactoring approaches based on the two design patterns are proposed. Each approach contains a refactoring opportunities identification algorithm and an automated refactoring algorithm. After parsing the abstract syntax tree generated from source code, the refactoring opportunities are identified effectively and automatically. Then, for candidate code, refactoring algorithms are executed automatically, which are used to simplify or remove complex conditional statements. By empirical analysis and quality assessment, the code after refactoring has better maintainability and extensibility, and the proposed approach for automated pattern-directed refactoring succeeds to reduce code size and complexity of classes.展开更多
基金Supported by National Natural Science Foundation of China(30660017)~~
文摘[ Objective] The aim was to study the spatial distribution pattern and field sampling method of aphid population in spring wheat. [ Method] The aphid quantity in tested wheat field was calculated, the field distribution pattern of wheat aphid was calculated by using aggregated index method, the aggregated reason was analyzed and the field theoretical sampling number was ascertained. [ Result] The wheat aphid population showed aggregation distribution and negative binomial distribution, and such aggregation distribution was induced by interaction of its behavior and environmental factors. The field theoretical sampling number of wheat aphid was related to sample variance and permissible error; the less the sam- ple variance [ S^2 ) was, the less the permissible error [ d') was, the bigger the theoretical sampling number without replacement was; when the initial population numbers were different, the theoretical sampling numbers were also different; after the permissible error being set, the bigger the sample variance ( S^2 ) was, the bigger the theoretical sampling number was. [ Conclusion] This study supplied scientific basis for prediction and field control of wheat aphid.
文摘Complex conditional statement is one of the bad code smells, which affects the quality of the code and design of software. In the proposed approach, two commonly-used design patterns for handling complex conditional statements are selected, and they are the factory method pattern and the strategy pattem. Two pattern-directed refactoring approaches based on the two design patterns are proposed. Each approach contains a refactoring opportunities identification algorithm and an automated refactoring algorithm. After parsing the abstract syntax tree generated from source code, the refactoring opportunities are identified effectively and automatically. Then, for candidate code, refactoring algorithms are executed automatically, which are used to simplify or remove complex conditional statements. By empirical analysis and quality assessment, the code after refactoring has better maintainability and extensibility, and the proposed approach for automated pattern-directed refactoring succeeds to reduce code size and complexity of classes.