کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
418418 681667 2011 15 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Programming with partially specified aggregates in Java
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
Programming with partially specified aggregates in Java
چکیده انگلیسی

Various forms of data aggregates, e.g., arrays, lists, sets, etc., are usually provided by programming languages, either as primitive entities or as additional features made available by standard libraries. In conventional programming languages these data structures are usually specified by completely and precisely enumerating all their constituent elements. Conversely, in (constraint) logic programming languages it is common to deal with partially specified aggregates where either some elements or some parts of the aggregate are left unknown. In this paper we consider the case where partially specified aggregates can occur in a conventional O-O programming language. Specifically, we consider partially specified lists and sets as provided by the Java library JSetL. The definition of such data structures is strongly based on the notion of logical (or constrained) variable usually provided by languages and libraries to support constraint programming. We show through simple examples using Java and JSetL how partially specified lists and sets, along with a few basic constraints over them, can be conveniently exploited in a number of common programming problems.


► We define partially specified (PS) aggregates, in particular p.s. lists and sets.
► We show how to create and use PS lists and sets in Java, using JSetL.
► The potential of PS aggregates and unification in declarative languages can be exploited as well in conventional O-O languages.
► We show a few interesting examples of set unification.
► Combining PS aggregates and constraints can be beneficial both in terms of expressiveness and efficiency.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Computer Languages, Systems & Structures - Volume 37, Issue 4, October 2011, Pages 178–192
نویسندگان
, , ,