47,647 research outputs found

    A heuristic-based approach to code-smell detection

    Get PDF
    Encapsulation and data hiding are central tenets of the object oriented paradigm. Deciding what data and behaviour to form into a class and where to draw the line between its public and private details can make the difference between a class that is an understandable, flexible and reusable abstraction and one which is not. This decision is a difficult one and may easily result in poor encapsulation which can then have serious implications for a number of system qualities. It is often hard to identify such encapsulation problems within large software systems until they cause a maintenance problem (which is usually too late) and attempting to perform such analysis manually can also be tedious and error prone. Two of the common encapsulation problems that can arise as a consequence of this decomposition process are data classes and god classes. Typically, these two problems occur together – data classes are lacking in functionality that has typically been sucked into an over-complicated and domineering god class. This paper describes the architecture of a tool which automatically detects data and god classes that has been developed as a plug-in for the Eclipse IDE. The technique has been evaluated in a controlled study on two large open source systems which compare the tool results to similar work by Marinescu, who employs a metrics-based approach to detecting such features. The study provides some valuable insights into the strengths and weaknesses of the two approache

    Experimental investigation of leading-edge thrust at supersonic speeds

    Get PDF
    Wings, designed for leading edge thrust at supersonic speeds, were investigated in the Unitary Plan Wind Tunnel at Mach numbers of 1.60, 1.80, 2.00, 2.16, and 2.36. Experimental data were obtained on a uncambered wing which had three interchangeable leading edges that varied from sharp to blunt. The leading edge thrust concept was evaluated. Results from the investigation showed that leading edge flow separation characteristics of all wings tested agree well with theoretical predictions. The experimental data showed that significant changes in wing leading edge bluntness did not affect the zero lift drag of the uncambered wings

    Structure and screening in molecular and metallic hydrogen at high pressure

    Get PDF
    A variational wavefunction is used to express the (spin restricted) Hartree-Fock energy as reciprocal lattice sums for static lattice FCC monatomic hydrogen and diatomic Pa3 molecular hydrogen. In the monatomic phase the hydrogenic orbital range closely parallels the inverse Thomas-Fermi wavevector; the corresponding energy E has a minimum of -0.929 Ryd/electron at r sub s = 1.67. For the diatomic phase E(r sub s) is similar, but the constituent energies, screening, and bond length reflect a qualitative change in the nature of the solid at r sub s = 2.8. This change is interpreted in terms of a transition from protons as structural units (at high density) to weakly interacting models (at low density). Insensitivity of the total energy to a rapid fall in the bond length suggests association with the rotational transition where the rapid molecular orientations characteristic of high pressures disappear and the molecules rotate freely at low pressure

    Two-dimensional polymer networks at a mixed boundary: Surface and wedge exponents

    Full text link
    We provide general formulae for the configurational exponents of an arbitrary polymer network connected to the surface of an arbitrary wedge of the two-dimensional plane, where the surface is allowed to assume a general mixture of boundary conditions on either side of the wedge. We report on a comprehensive study of a linear chain by exact enumeration, with various attachments of the walk's ends to the surface, in wedges of angles π/2\pi/2 and π\pi, with general mixed boundary conditions.Comment: 4 pages, Latex2e, 3 figures, Eur. Phys. J. B macro

    Dynamic delta method for trace gas analysis

    Get PDF
    Method has been developed in which measurements are made only over viscous flow range, eliminating fractionation before the molecular leak and problems due to surface elution

    Correspondence between one- and two-equation models for solute\ud transport in two-region heterogeneous porous media

    Get PDF
    In this work, we study the transient behavior of upscaled models for solute transport in two-region porous media. We focus on the following three models: (1) a time non-local, two-equation model (2eq-nlt). This model does not rely on time constraints and, therefore, is particularly useful in the short-time regime, when the time scale of interest (t) is smaller than the characteristic time (T1) for the relaxation of the effective macroscale parameters (i.e., when t ≤ T1); (2) a time local, two-equation model (2eq). This model can be adopted when (t) is significantly larger than (T1) (i.e., when t » T1); and (3) a one-equation, time-asymptotic formulation (1eq∞). This model can be adopted when (t) is significantly larger than the time scale (T2) associated with exchange processes between the two regions (i.e., when t » T2). In order to obtain some physical insight into this transient behavior, we combine a theoretical approach based on the analysis of spatial moments with numerical and analytical results in simple cases. The main result of this paper is to show that there is weak long-time convergence of the solution of (2eq) toward the solution of (1eq∞) in terms of standardized moments but, interestingly, not in terms of centered moments. Physically, our interpretation of this result is that the spreading of the solute is dominating higher order non-zero perturbations in the asymptotic regime
    • …
    corecore