871 research outputs found

    Safer typing of complex API usage through Java generics

    Get PDF
    When several incompatible implementations of a single API are in use in a Java program, the danger exists that instances from different implementations may inadvertently be mixed, leading to errors. In this paper we show how to use generics to prevent such mixing. The core idea of the approach is to add a type parameter to the interfaces of the API, and tie the classes that make up an implementation to a unique choice of type parameter. In this way methods of the API can only be invoked with arguments that belong to the same implementation. We show that the presence of a type parameter in the interfaces does not violate the principle of interface-based programming: clients can still completely abstract over the choice of implementation. In addition, we demonstrate how code can be reused between different implementations, how implementations can be defined as extensions of other implementations, and how different implementations may be mixed in a controlled and safe manner. To explore the feasibility of the approach, gauge its usability, and identify any issues that may crop up in practical usage, we have refactored a fairly large existing API-based application suite, and we report on the experience gained in the process

    Matchmaking for covariant hierarchies

    Get PDF
    We describe a model of matchmaking suitable for the implementation of services, rather than their for their discovery and composition. In the model, processing requirements are modelled by client requests and computational resources are software processors that compete for request processing as the covariant implementations of an open service interface. Matchmaking then relies on type analysis to rank processors against requests in support of a wide range of dispatch strategies. We relate the model to the autonomicity of service provision and briefly report on its deployment within a production-level infrastructure for scientic computing

    Functional adaptivity for digital library services in e-infrastructures: the gCube approach

    Get PDF
    We consider the problem of e-Infrastructures that wish to reconcile the generality of their services with the bespoke requirements of diverse user communities. We motivate the requirement of functional adaptivity in the context of gCube, a service-based system that integrates Grid and Digital Library technologies to deploy, operate, and monitor Virtual Research Environments defined over infrastructural resources. We argue that adaptivity requires mapping service interfaces onto multiple implementations, truly alternative interpretations of the same functionality. We then analyse two design solutions in which the alternative implementations are, respectively, full-fledged services and local components of a single service. We associate the latter with lower development costs and increased binding flexibility, and outline a strategy to deploy them dynamically as the payload of service plugins. The result is an infrastructure in which services exhibit multiple behaviours, know how to select the most appropriate behaviour, and can seamlessly learn new behaviours

    What neonatal complications should the pediatrician be aware of in case of maternal gestational diabetes?

    Get PDF
    In the epidemiologic context of maternal obesity and type 2 diabetes (T2D), the incidence of gestational diabetes has significantly increased in the last decades. Infants of diabetic mothers are prone to various neonatal adverse outcomes, including metabolic and hematologic disorders, respiratory distress, cardiac disorders and neurologic impairment due to perinatal asphyxia and birth traumas, among others. Macrosomia is the most constant consequence of diabetes and its severity is mainly influenced by maternal blood glucose level. Neonatal hypoglycemia is the main metabolic disorder that should be prevented as soon as possible after birth. The severity of macrosomia and the maternal health condition have a strong impact on the frequency and the severity of adverse neonatal outcomes. Pregestational T2D and maternal obesity significantly increase the risk of perinatal death and birth defects. The high incidence of maternal hyperglycemia in developing countries, associated with the scarcity of maternal and neonatal care, seriously increase the burden of neonatal complications in these countries

    Hybrid applications over XML - integrating the declarative and navigational approaches

    Get PDF
    We discuss the design of a quasi-statically typed language for XML in which data may be associated with different structures and different algebras in different scopes, whilst preserving identity. In declarative scopes, data are trees and may be queried with the full flexibility associated with XML query algebras. In procedural scopes, data have more conventional structures, such as records and sets, and can be manipulated with the constructs normally found in mainstream languages. For its original form of structural polymorphism, the language offers integrated support for the development of hybrid applications over XML, where data change form to re flct programming expectations and enable their enforcement

    A grid-based infrastructure for distributed retrieval

    Get PDF
    In large-scale distributed retrieval, challenges of latency, heterogeneity, and dynamicity emphasise the importance of infrastructural support in reducing the development costs of state-of-the-art solutions. We present a service-based infrastructure for distributed retrieval which blends middleware facilities and a design framework to ‘lift’ the resource sharing approach and the computational services of a European Grid platform into the domain of e-Science applications. In this paper, we give an overview of the DILIGENT Search Framework and illustrate its exploitation in the field of Earth Science

    Three-points interfacial quadrature for geometrical source terms on nonuniform grids

    Get PDF
    International audienceThis paper deals with numerical (finite volume) approximations, on nonuniform meshes, for ordinary differential equations with parameter-dependent fields. Appropriate discretizations are constructed over the space of parameters, in order to guarantee the consistency in presence of variable cells' size, for which LpL^p-error estimates, 1p<+1\le p < +\infty, are proven. Besides, a suitable notion of (weak) regularity for nonuniform meshes is introduced in the most general case, to compensate possibly reduced consistency conditions, and the optimality of the convergence rates with respect to the regularity assumptions on the problem's data is precisely discussed. This analysis attempts to provide a basic theoretical framework for the numerical simulation on unstructured grids (also generated by adaptive algorithms) of a wide class of mathematical models for real systems (geophysical flows, biological and chemical processes, population dynamics)

    The art of video MashUp: supporting creative users with an innovative and smart application

    Get PDF
    In this paper, we describe the development of a new and innovative tool of video mashup. This application is an easy to use tool of video editing integrated in a cross-media platform; it works taking the information from a repository of videos and puts into action a process of semi-automatic editing supporting users in the production of video mashup. Doing so it gives vent to their creative side without them being forced to learn how to use a complicated and unlikely new technology. The users will be further helped in building their own editing by the intelligent system working behind the tool: it combines semantic annotation (tags and comments by users), low level features (gradient of color, texture and movements) and high level features (general data distinguishing a movie: actors, director, year of production, etc.) to furnish a pre-elaborated editing users can modify in a very simple way

    Circular polarisation frequency selective surface operating in Ku and Ka band

    Get PDF
    A double layer circular polarization (CP) frequency selective surface (FSS) for use as a dual-band quasi-optical diplexer suitable for deployment in reflector antenna systems is described. The FSS was designed to reflect Ku band signals (11.7–12.75 GHz) while transmitting Ka band signals (17.3–20.2 GHz) and conserving CP in each of these bands. The simulated/measured reflection loss over the Ku band was less than 0.05/0.1 dB for both TE and TM polarizations, while the simulated/measured axial ratio was less than 0.2/0.75 dB. Over the Ka band, the simulated/measured transmission loss for both polarizations was below 0.25/0.4 dB and the simulated/measured axial ratio was less than 0.25/0.75 dB. To the best of our knowledge, this is the first report of a metallo-dielectric FSS that simultaneously operates in CP for an oblique angle of incidence in both Ku and Ka bands
    corecore