Refactoring collections in OCL
Veröffentlichungsdatum
2021
Autoren
Zusammenfassung
The current OCL 2.4 specification organizes collections in one abstract class, Collection(T), and four concrete subclasses, namely Set(T), Bag(T), Sequence(T), and OrderedSet(T) depending on whether the collection elements are ordered or not, and whether duplicated elements are allowed or not. These four classes provide a clear and useful partition of the whole collections space, covering all relevant aspects. However, the specification of the operations associated with these classes is rather unwieldy and inefficient in the current standard: it contains duplicated descriptions, missing operations and unspecified details. In this paper, we analyze the problems with such specifications, and propose an alternative specification that avoids duplication and missing details based on the introduction of the appropriate intermediate abstract classes that capture the common features of interest of each kind of collection.
Schlagwörter
UML
;
OCL
;
Collection
;
Set
;
Bag
;
Sequence
;
OrderedSet
Verlag
RWTH Aachen
Institution
Fachbereich
Dokumenttyp
Konferenzbeitrag
Zeitschrift/Sammelwerk
STAF 2021 (Software Technologies: Applications and Foundations) = CEUR Workshop Proceedings, Band 2999
Startseite
142
Endseite
148
Zweitveröffentlichung
Ja
Dokumentversion
Published Version
Sprache
Englisch
Dateien![Vorschaubild]()
Lade...
Name
Gogolla_Burgueno_Vallecillo_Refactoring Collections in OCL_2021_published-version.pdf
Size
2.17 MB
Format
Adobe PDF
Checksum
(MD5):7122bc0975769b72b48107cb873313ed
