Software structure is the most important factor affecting the quality of a program.The evaluation of software structure is a foundational technique for software development.However,the traditional evaluation criteria,such as "high cohesion and low coupling",are no longer appropriate for the new web applications,which are designed with a hierarchical framework.A novel approach is proposed in this paper to evaluate software quality based on the interaction and encapsulation of methods.In particular,two criteria for high quality software,the functional and hierarchical structure,are proposed to support widely used web applications.The cohesion and coupling and layer matching ratios between methods within a software package are calculated to determine whether the package is well implemented in terms of functional or hierarchical structure.This approach enables us to quantify the quality of a software system according to the structural types of its packages.Experiments were carried out on 18 versions of Struts and six open-source software packages.Our evaluation concurs with the intuition that minor upgrades,aimed at fixing bugs and adding minor functionality quickly,reduce software quality,whereas major upgrades,which normally clean up messy code and re-construct the software,improve software quality. 相似文献
Recently many runoff models based on cellular automaton (CA) have been developed to simulate floods; however, the existing models cannot be readily applied to complex urban environments. This study proposes a novel rainfall-runoff model based on CA (RRCA) to simulate inundation. Its main contributions include a fine runoff generation process that considers 12 urban scenarios rather than a single land use type and the confluence process determined by the new transition rules considering water supply and demand (WS-WD transition rules). RRCA was compared with another CA based flood model (E2DCA). With the benchmark model, the results showed that there was good agreement, with an R-squared greater than 0.9, and that RRCA was more sensitive to waterlogging levels than E2DCA. Furthermore, the simulated vegetation interception, infiltration and drainage processes had varying degrees of impact on waterlogging. Corresponding measures can be taken in urban flood management according to the identification of areas experiencing drainage difficulties.
The Journal of Supercomputing - Sentiment analysis in Danmaku video interaction aims at measuring public mood in respect of the video, which is helpful for the potential applications in behavioral... 相似文献
Neural Computing and Applications - RNA-binding proteins play an important role in the biological process. However, the traditional experiment technology to predict RNA-binding residues is... 相似文献
The rapid growth of motion capture data increases the importance of motion retrieval. The majority of the existing motion retrieval approaches are based on a labor-intensive step in which the user browses and selects a desired query motion clip from the large motion clip database. In this work, a novel sketching interface for defining the query is presented. This simple approach allows users to define the required motion by sketching several motion strokes over a drawn character, which requires less effort and extends the users’ expressiveness. To support the real-time interface, a specialized encoding of the motions and the hand-drawn query is required. Here, we introduce a novel hierarchical encoding scheme based on a set of orthonormal spherical harmonic (SH) basis functions, which provides a compact representation, and avoids the CPU/processing intensive stage of temporal alignment used by previous solutions. Experimental results show that the proposed approach can well retrieve the motions, and is capable of retrieve logically and numerically similar motions, which is superior to previous approaches. The user study shows that the proposed system can be a useful tool to input motion query if the users are familiar with it. Finally, an application of generating a 3D animation from a hand-drawn comics strip is demonstrated. 相似文献
P2P based live streaming has been gaining popularity. The new generation P2P live streaming systems not only attract a large number of viewers, but also support better video quality by streaming the content at higher bit-rate. In this paper, we propose a novel P2P streaming framework, called Hierarchically Clustered P2P Video Streaming, or HCPS, that can support the streaming rate approaching the optimal upper bound while accommodating large viewer population. The scalability comes with the hierarchical overlay architecture by grouping peers into clusters and forming a hierarchy among them. Peers are assigned to appropriate cluster so as to balance the bandwidth resources across clusters and maximize the supportable streaming rate. Furthermore, individual peers perform distributed queue-based scheduling algorithms to determine how to retrieve data chunks from source and neighboring peers, and how to utilize its uplink bandwidth to serve data chunks to other peers. We show that queue-based scheduling algorithms allow to fully utilize peers’ uplink bandwidths, and HCPS supports the streaming rate close to the optimum in practical network environment. The prototype of HCPS is implemented and various design issues/tradeoffs are investigated. Experiments over the PlanetLab further demonstrate the effectiveness of HCPS design. 相似文献