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.展开更多
Mechanized construction of micro-catchments for water harvesting (WH) was successfully tested in the Badia (dry rangeland) areas in Syria and Jordan, using the "Vallerani" plow, model Delfino (50 MI/CM), manuf...Mechanized construction of micro-catchments for water harvesting (WH) was successfully tested in the Badia (dry rangeland) areas in Syria and Jordan, using the "Vallerani" plow, model Delfino (50 MI/CM), manufactured by Nardi, Italy. The plow was able to construct intermittent and continuous contour ridges, and could potentially be used to rehabilitate degraded rangelands. However, one major issue for large-scale implementation is the high cost and time required to manually identify contours for the plow to follow. Most existing auto-guiding systems, as usually used in road construction and agricultural land leveling, were expensive or impractical. The objective, therefore, was to add, adapt, and evaluate an auto-guiding system to enable a tractor to follow contours without demarcation through conventional surveying. A low-cost Contour Laser Guiding (CLG) system, with specifications that suit the contour ridging in undulating topographic conditions of dry rangelands, was chosen, adapted, mounted, and tested, under actual field conditions. The system consisted mainly of a portable laser transmitter and a tractor-mounted receiver, connected to a guidance display panel. The system was field-tested on 95 ha of land where the system capacity was determined under different terrains, slopes (1-8%), and ridge spacings (4-12 m). The easy adaptation and implementation of the CLG to the "Vallerani" unit tripled the system capacity, improved efficiency and precision, and substantially reduced the cost of constructing micro-catchments for WH. The system is recommended for large-scale rangeland rehabilitation projects in the dry areas, not only in West Asia, but worldwide.展开更多
The non linear dynamic model is set up of one type of high speed painting automizor with gas supporting system. The stability of motion and dynamic response of the gas painting automizor system are studied over a rela...The non linear dynamic model is set up of one type of high speed painting automizor with gas supporting system. The stability of motion and dynamic response of the gas painting automizor system are studied over a relatively wide range of rotating speed by numerical analytic method, the critical velocity under working condition is found, and rotate stability and critical condition are discussed in theory. Furthermore, the range of the critical parameter of the system when Hopf bifurcation occurs and the law between axis trace and bearing clearance are acquired, too.展开更多
文摘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.
文摘Mechanized construction of micro-catchments for water harvesting (WH) was successfully tested in the Badia (dry rangeland) areas in Syria and Jordan, using the "Vallerani" plow, model Delfino (50 MI/CM), manufactured by Nardi, Italy. The plow was able to construct intermittent and continuous contour ridges, and could potentially be used to rehabilitate degraded rangelands. However, one major issue for large-scale implementation is the high cost and time required to manually identify contours for the plow to follow. Most existing auto-guiding systems, as usually used in road construction and agricultural land leveling, were expensive or impractical. The objective, therefore, was to add, adapt, and evaluate an auto-guiding system to enable a tractor to follow contours without demarcation through conventional surveying. A low-cost Contour Laser Guiding (CLG) system, with specifications that suit the contour ridging in undulating topographic conditions of dry rangelands, was chosen, adapted, mounted, and tested, under actual field conditions. The system consisted mainly of a portable laser transmitter and a tractor-mounted receiver, connected to a guidance display panel. The system was field-tested on 95 ha of land where the system capacity was determined under different terrains, slopes (1-8%), and ridge spacings (4-12 m). The easy adaptation and implementation of the CLG to the "Vallerani" unit tripled the system capacity, improved efficiency and precision, and substantially reduced the cost of constructing micro-catchments for WH. The system is recommended for large-scale rangeland rehabilitation projects in the dry areas, not only in West Asia, but worldwide.
文摘The non linear dynamic model is set up of one type of high speed painting automizor with gas supporting system. The stability of motion and dynamic response of the gas painting automizor system are studied over a relatively wide range of rotating speed by numerical analytic method, the critical velocity under working condition is found, and rotate stability and critical condition are discussed in theory. Furthermore, the range of the critical parameter of the system when Hopf bifurcation occurs and the law between axis trace and bearing clearance are acquired, too.